On (02 Feb 98) Robert La Ferte wrote to Bryan Joyce...
BJ> I know that the editbox contains an ANSI string, but don't know how to
BJ> convert it to my table structure chars.
RL> I don't have it on this machine, but if I remember well:
RL> strncpy(Table.Title, Edit1->Text.c_str(), sizeof(Table.Title));
RL> should work quite well... don't forget that the 'Text' member of Edit1
RL> is a 'AnsiString' class, thus requires a conversion to be used like a
RL> 'normal' C null-terminated char array.
It works great! Thanks. My college project had come to a standstill
cause none of the tutors had ever used Builder and had no info on it.
Can you recomend a good book on it?
--- PPoint 1.88
---------------
* Origin: You Do The Best With What Ya Got! (2:258/3.21)
|