Article View: borland.public.cppbuilder.database.ado
Article #4683ADO adCurrency to Currency Problem
From: David Harper
Date: Tue, 30 Oct 2001 22:51
Date: Tue, 30 Oct 2001 22:51
19 lines
1483 bytes
1483 bytes
Hello,
I was hoping somebody may be able to help me. I'm using ado via Variants,
and everything is fine except for when the ado field type is adCurrency. I
can't
seem to convert it to a Currency field. ie.
Variant V = rs.Exec(PropertyGet("Fields")).Exec(PropertyGet("Item") <<
column);
int AdoFieldType = V.Exec(PropertyGet("Type"));
Currency Amount;
if (AdoFieldType == adCurrency)
Amount = V.VCurrency; // *** Problem is here, don't know
what to do ***
I have no probs with any other field types, just the adCurrency.
If anybody could help, I would be very grateful
Technical Details
Message-ID:
<3bdf2f06_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,d94502c5054cafa9,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-10-30 14:57:03 PST From: "David Harper" <harper@handisoft.com.au> Newsgroups: borland.public.cppbuilder.database.ado Subject: ADO adCurrency to Currency Problem Date: Wed, 31 Oct 2001 06:51:28 +0800 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 203.57.110.206 Message-ID: <3bdf2f06_1@dnews> X-Trace: dnews 1004482310 203.57.110.206 (30 Oct 2001 14:51:50 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews