TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: BRYAN JOYCE
date: 1998-02-01 11:04:00
subject: Builder C++

Can anyone help with a Builder C++ problem?  It seems quite simple, but
its causing me hassle and my tutors in college can't help.  Trouble is,
I bought the student version and don't have any mannuls.
All I'm trying to do is dump the contents of an edit box into the field
of a table, but I get the compiler error that a Lvalue is needed.
Here is a simpleyfied example of my code:-
        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)
I know that the editbox contains an ANSI string, but don't know how to
convert it to my table structure chars.
It doesn't help matters that I don't have a Builder book, but neither
does the college.
--- PPoint 1.88
---------------
* Origin: You Do The Best With What Ya Got! (2:258/3.21)

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