Version... example for Visual J++

This example puts the version information into a string and displays the string in a message box.

String strLevel = "";
if( LEAD1.getVersionLevel() == LTOCXU.VersionLevelConstants.VERSIONLEVEL_EXP )
   strLevel = "Document/Medical";
else
   strLevel = "Professional Edition";

String strMsg = LEAD1.getVersionProduct() + "\n" + strLevel + "\n";
strMsg += "Version: " + LEAD1.getVersionMajor() + ".";
strMsg += LEAD1.getVersionMinor() + "\n";
strMsg += "Date produced: " + LEAD1.getVersionDate() + "\n";
strMsg += "Time produced: " + LEAD1.getVersionTime() + "\n";

// Display the message box
MessageBox.show( strMsg, "Version Info", MessageBox.OK );