๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5541

RE: getting a value from a cell

#5541
From: 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
>
>
Technical Details
Message-ID: <3ad1c950_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!dnews
References: <3ad1a44c_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,93420b9685d5a884
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-04-09 07:42:02 PST
Reply-To: "Jorge Bustos" <jbustos@teleline.es>
From: "Jorge Bustos" <jbustos@teleline.es>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3ad1a44c_1@dnews>
Subject: RE: getting a value from a cell
Date: Mon, 9 Apr 2001 16:38:55 +0200
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 62.175.104.196
Message-ID: <3ad1c950_2@dnews>
X-Trace: dnews 986827088 62.175.104.196 (9 Apr 2001 07:38:08 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!dnews