Article View: borland.public.cppbuilder.database.ado
Article #791GetEnumName with C++Builder
From: Rainer Welzel
Date: Sun, 24 Apr 2005 07:17
Date: Sun, 24 Apr 2005 07:17
23 lines
1538 bytes
1538 bytes
Hi,
I get a Delphi CodeSample:
"Navigating and Editing a ClientDataSet" by Cary Jensen
http://community.borland.com/article/0,1410,29122,00.html
I failed to convert the following delphi Statement to C++Builder:
GetEnumName(TypeInfo(TDataSetState),
Ord(ClientDataSet1.State));
My Code is:
PPropInfo PropInfo =
GetPropInfo(PTypeInfo(ClassInfo(__classid(TADOTable))),"State");
if (PropInfo){
StatusBar1->Panels->Items[1]->Text =
"State = " + GetEnumName(*(PropInfo->PropType),
int(ADOTable1->State));
}
thx for your help
Rainer
Technical Details
Message-ID:
<426b481c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,836a61d51ca53eb8 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Rainer Welzel" <master@fgg-welzel.de> Newsgroups: borland.public.cppbuilder.database.ado Subject: GetEnumName with C++Builder Date: Sun, 24 Apr 2005 09:17:55 +0200 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 84.154.219.79 Message-ID: <426b481c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114327068 84.154.219.79 (24 Apr 2005 00:17:48 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail