RF> I don't have it on this machine, but if I remember well:
RF> strncpy(Table.Title, Edit1->Text.c_str(), sizeof(Table.Title
RF> should work quite well... don't forget that the 'Text' member of Ed
RF> is a 'AnsiString' class, thus requires a conversion to be used like
RF> 'normal' C null-terminated char array.
Note that strncpy in general does *not* zero-terminate its target.
Thomas
---
þ MM 1.0 #0113 þ Can I blame all of my spelling on line noise?
---------------
* Origin: McMeier & Son BBS (2:301/138)
|