| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | BUILDER C++ |
BJ> struct Table
BJ> {
BJ> char Title[30];
BJ> char SubTitle[35];
BJ> char Info1[40];
BJ> char Info2[40];
BJ> };
BJ>
BJ> Then.....
BJ>
BJ> Table.Title=Edit1->Text; (this line does not work )
BJ> (neither does using strcpy)
Table is not an instantiated variable, only the name of a struct
(comperable to "record" in Pascal). You need to do something like:
struct Table foo;
foo.Title = Edit1->Text;
* KWQ/2 1.2i *
--- FLAME v1.1
---------------
* Origin: Port Chicago's Loading Dock - 510-676-5359 (1:161/204) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.