🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
3 messages
3 total messages Started by sss Wed, 29 Mar 2000 00:00
i cant use Field[i] to access the data why?
#1200
Author: sss
Date: Wed, 29 Mar 2000 00:00
12 lines
890 bytes
hi,people:
i am new user of cpp builder and i wonder why i cant use as Field[0]
Field[1] to access
a table data?
the code just as :
AnsiString S=DMod1->Table1->Fields[0]->AsString;
the compiler says
:[C++ Error] Main.cpp(31): E2288 Pointer to structure required on left side
of -> or ->*.
how should i use Fields[i].
thanks.
ps:who could tell me if there is a IRC server for c++ builder?
Re: i cant use Field[i] to access the data why?
#1201
Author: Sylvain Cochepain
Date: Wed, 29 Mar 2000 00:00
5 lines
851 bytes
Hi,

If you're using Builder 4 or more, the syntax have changed:

AnsiString S=DMod1->Table1->Fields->Fields[0]->AsString;
Re: i cant use Field[i] to access the data why?
#1203
Author: Jeff Overcash (TeamB)
Date: Wed, 29 Mar 2000 00:00
25 lines
1442 bytes
Try Fields->Fields[0].  

sss wrote:
> 
> hi,people:
> i am new user of cpp builder and i wonder why i cant use as Field[0]
> Field[1] to access
> a table data?
> the code just as :
> AnsiString S=DMod1->Table1->Fields[0]->AsString;
> the compiler says
> :[C++ Error] Main.cpp(31): E2288 Pointer to structure required on left side
> of -> or ->*.
> how should i use Fields[i].
> thanks.
> ps:who could tell me if there is a IRC server for c++ builder?

-- 
Jeff Overcash (TeamB) 
      (Please do not email me directly unless  asked. Thank You) 
Maybe it was infatuation or the thrill of the chase.
Maybe you were always beyond my reach and my heart was playing safe.
But was that love in your eye I saw or the reflection of mine?
Give me time, won't you give me that time!
Welcome back to the circus.            (Fish)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads