Tuned Listener
Posts: 35
Country: Australia
How to tell which version of Act a plugin is hosted by?

Is this the easiest way to discover the version of Act?

 

void ACTAPP_AfterLogon(object sender, EventArgs e) {

 

   string s = System.Reflection.Assembly.GetEntryAssembly().GetName().ToString();

 

   int p = s.IndexOf("Version="); p += 8; int p2 = s.IndexOf(",", p);

   Debug.WriteLine(String.Format("Version = " + s.Substring(p, p2 - p)));

Reece harper

Act! Certified Consultant Australia
http://www.databasepartners.com.au