12-08-2009 07:06 PM
Is there a way throught the SDK to get the current database name, location, and ACT version? If so, can someone give the method used and namespace. An example would be nice also.
formerly CD Consulting Group, Inc.
12-10-2009 07:23 AM
Here is one possible way of doing what you want. I've written it without intellisense available so apologies for any typos etc.
ActFramework oFram = new ActFramework();oFram.Logon(...); //enter the relevant logon params.MessageBox.Show(oFram.CurrentDatabase); //returns string of current dB you are logged into.MessagBox.Show(oFram.ActDatabaseManager.DatabasePath); //returns string of current dB Path.MessageBox.Show(oFram.ActDatabaseManager.SchemaVersion); //returns string of schema version of dB.
Caldere Associates Ltd.