Can I use more than one .add in an application
Thanks
Joe
ADS DICTIONARY - CAN I USE MORE THAN ONE IN APP
Re: ADS DICTIONARY - CAN I USE MORE THAN ONE IN APP
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'
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.