The problem is that from Delphi 2009 onwards strings are now Unicode, wheas AnsiStrings are not.

You are getting this error because if you assign a unicode string to an ansi string you might get a data loss.

If i were you i'd change my code to use plain old strings to avoid this error

On Mon, Apr 4, 2011 at 5:27 PM, Eva Kimathi <evakimathi@gmail.com> wrote:
Nope, its 2011 Delphi XE



On Mon, Apr 4, 2011 at 5:22 PM, Conrad Akunga <conradakunga@gmail.com> wrote:
What version of Delphi? Are you by any chance using 2009?

On Mon, Apr 4, 2011 at 5:11 PM, Eva Kimathi <evakimathi@gmail.com> wrote:
Hi,

I have a piece of code designed to pick information (a name) from one table in my database and input that string into another table on user action. My code picks the string from the first table but only enters a truncated version of the string into the second table. On compilation, I get the warning
      '[DCC Warning] Main.pas(229): W1058 Implicit string cast with potential data loss from 'string' to 'AnsiString' '
I googled this but didnt get anything I could use . Any help out there?

--
Eva Kimathi



_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke


_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



--
Eva Kimathi



_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke