ADS DICTIONARY - CAN I USE MORE THAN ONE IN APP

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

ADS DICTIONARY - CAN I USE MORE THAN ONE IN APP

#1 Post by unixkd »

Can I use more than one .add in an application

Thanks

Joe

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

Re: ADS DICTIONARY - CAN I USE MORE THAN ONE IN APP

#2 Post by rdonnay »

Yes, you simply create 2 DacSessions().

Example:

oSession1 := DacSession():new("DBE=ADSDBE;SERVER=F:\server\myDict1.Add")

oSession2 := DacSession():new("DBE=ADSDBE;SERVER=F:\server\backup\myDict2.Add")

USE invoices VIA (oSession1) NEW ALIAS 'INVOICE1'

USE invoices VIA (oSession2) NEW ALIAS 'INVOICE2'
The eXpress train is coming - and it has more cars.

Post Reply