๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages Started by Jonne Kats Mon, 09 Apr 2001 11:56
getting a value from a cell
#5540
Author: Jonne Kats
Date: Mon, 09 Apr 2001 11:56
7 lines
939 bytes
Hello,
Can anyone tell me how to get a certain cell from a table and use the value
from it in a variable??

Regards,

Jonne Kats
RE: getting a value from a cell
#5541
Author: Jorge Bustos
Date: Mon, 09 Apr 2001 14:38
21 lines
1480 bytes
Be more specific. A cell from a table? A cell in a DBGrid? What do you mean?
If it's the selected value in a DBGrid just read the value of the field in
the dataset of the datasource of the current record in the dbgrid

AnsiString value;
value=DBGrid1->DataSource->DataSet->FieldByName("NameOfTheField")->AsString;

I hope this helps. If not, try to be more specific.

Jonne Kats <jonne2k@hotmail.com> escribi๏ฟฝ en el mensaje de noticias
3ad1a44c_1@dnews...
> Hello,
> Can anyone tell me how to get a certain cell from a table and use the
value
> from it in a variable??
>
> Regards,
>
> Jonne Kats
>
>
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