ADS Table Handles

This forum is for general support of Xbase++
Post Reply
Message
Author
Josh-Ferrus
Posts: 8
Joined: Wed Aug 18, 2010 11:07 am

ADS Table Handles

#1 Post by Josh-Ferrus »

So, I am working on getting some Advantage Database Server integration into our program. I have followed the document that Roger wrote on the subject (at http://www.sybase.com/files/White_Paper ... ide_wp.pdf) and have succeeded in getting to a place where I am easily connecting to an ADS data dictionary using a DacSession, opening databases using just dbusearea(.t., AdsSession(), cDbf, cAlias), and manipulating that data. Hurray!

My question is: Is there a way to obtain the handle to the table that is open? I can obtain the connection handle easily enough (AdsSession():getConnectionHandle()) but I'm not seeing any way to get the individual table handles. They are necessary if I want to use a lot of the ACEFUNCTION's that Roger has defined, so I assume they are obtainable. Is there just something I'm missing?

Specifically, I'm looking to add an ACEFUNCTION for the AdsGetLastAutoInc() ace function, which requires a table handle.

Thanks!

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: ADS Table Handles

#2 Post by rdonnay »

AdsGetTableHandle( cAlias, @nTableHandle )
The eXpress train is coming - and it has more cars.

Josh-Ferrus
Posts: 8
Joined: Wed Aug 18, 2010 11:07 am

Re: ADS Table Handles

#3 Post by Josh-Ferrus »

It works!

I feel silly for not finding that function earlier. Thanks Roger.

Post Reply