🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ADOX Syntax

#5060
From: Tony
Date: Fri, 10 Aug 2001 12:47
21 lines
1392 bytes
Does anyone have some example code for getting user and group information
using ADOX and Builder? This is what I would like to do but I am getting
compile errors.

TCOM_Catalog Cat;
Cat = CoCatalog::Create();
Cat->set_ActiveConnection(ConnectString);

int i, j;
String Name;

// show user groups
for (i = 0; i < Cat->Users->Count; i++)
{
        Name = Cat->Users[i].Name;  <<< ERROR HERE. Does not like the
Users[i]. "Ambiguity ..."
        for (int j = 0; j < Cat->Users.Groups.Count; j++)
            Name = Cat->Users[i]->Groups[j]->Name;<<< ERROR HERE. Does not
like the Users[i]. "Ambiguity ..."

}
Technical Details
Message-ID: <3b73d7c2_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,48d0e5ff0cb72d06,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-08-10 06:05:11 PST
From: "Tony" <hse@hill-soft.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: ADOX Syntax
Date: Fri, 10 Aug 2001 08:47:18 -0400
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 209.244.90.10
Message-ID: <3b73d7c2_2@dnews>
X-Trace: dnews 997447618 209.244.90.10 (10 Aug 2001 05:46:58 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews