🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

DBText string to Int?

#2300
From: Denis L. Menezes
Date: Sun, 10 Aug 2003 10:44
15 lines
1520 bytes
Hello friends.

I have a progressbar called progressbar1 on a form.
On the same form I have a dbtext which is providing the number of records in
a dataset using (select count (*) ....etc etc.)

I want to use the value in this dbtext(e.g. 73) as the position setting for
the progresPosition=sbar. So I wrote as follows :

ProgressBar1->Position=StrToInt(DBText1->DataField)

This dopes not work. Can someon please help?

thanks
Denis
Technical Details
Message-ID: <3f362213$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed.icl.net!newsfeed.fjserv.net!news-out1.nntp.be!propagator2-sterling!In.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,7a6a33d8c1024c92,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-08-10 04:07:31 PST
From: "Denis L. Menezes" <menezesd@singnet.com.sg>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: DBText string to Int?
Date: Sun, 10 Aug 2003 18:44:36 +0800
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 203.125.45.11
Message-ID: <3f362213$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060512275 203.125.45.11 (10 Aug 2003 03:44:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed.icl.net!newsfeed.fjserv.net!news-out1.nntp.be!propagator2-sterling!In.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail