(DataFlex) Get Version of Chilkat
Demonstrate how to find out the version of Chilkat at runtime.
Use ChilkatAx-win32.pkg
Procedure Test
Handle hoSftp
String sChilkatVersion
Handle hoJson
String sTemp1
// Most Chilkat classes include a Version property.
// To find the version of Chilkat, such as "9.5.0.94",
// instantiate the object and examine the Version property.
// For example:
Get Create (RefClass(cComChilkatSFtp)) To hoSftp
If (Not(IsComObjectCreated(hoSftp))) Begin
Send CreateComObject of hoSftp
End
Get ComVersion Of hoSftp To sChilkatVersion
Showln sChilkatVersion
// Most other Chilkat classes also have the Version property
// For example:
Get Create (RefClass(cComChilkatJsonObject)) To hoJson
If (Not(IsComObjectCreated(hoJson))) Begin
Send CreateComObject of hoJson
End
Get ComVersion Of hoJson To sTemp1
Showln sTemp1
End_Procedure
|