TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BRYAN JOYCE
from: JOHN RICHARDSON
date: 1998-02-03 18:13:00
subject: Builder C++

Hi Bryan,
 >      struct Table
 >      {
 >         char Title[30];
 >         char SubTitle[35];
 >         char Info1[40];
 >         char Info2[40];
 >      };
 > 
 > Then.....
 > 
 >     Table.Title=Edit1->Text;      (this
line does not work )
 >                                    (neither does using strcpy)
You have not declared your variable. What you have done using struct is to 
define the nature of the structure 'Table'. You then need to declare a 
different identifier as type struct Table eg:
struct Table{
    [...]
};
then...
struct Table    table;
then...
    table.Title = Edit1->Text;
This quite confusing I know but hopefully you will understand what I mean.
John.
--- JetMail 0.99beta23
---------------
* Origin: The Dysfunctional Refrigerator (fidonet 2:2502/60)

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™.