(PowerBuilder) Get Version of Chilkat
Demonstrate how to find out the version of Chilkat at runtime.
integer li_rc
oleobject loo_Sftp
string ls_ChilkatVersion
oleobject loo_Json
// 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:
loo_Sftp = create oleobject
// Use "Chilkat_9_5_0.SFtp" for versions of Chilkat < 10.0.0
li_rc = loo_Sftp.ConnectToNewObject("Chilkat.SFtp")
if li_rc < 0 then
destroy loo_Sftp
MessageBox("Error","Connecting to COM object failed")
return
end if
ls_ChilkatVersion = loo_Sftp.Version
Write-Debug ls_ChilkatVersion
// Most other Chilkat classes also have the Version property
// For example:
loo_Json = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_Json.ConnectToNewObject("Chilkat.JsonObject")
Write-Debug loo_Json.Version
destroy loo_Sftp
destroy loo_Json
|