Sample code for 30+ languages & platforms
PowerBuilder

Get Version of Chilkat

Demonstrate how to find out the version of Chilkat at runtime.

Chilkat PowerBuilder Downloads

PowerBuilder
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
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
li_rc = loo_Json.ConnectToNewObject("Chilkat.JsonObject")

Write-Debug loo_Json.Version


destroy loo_Sftp
destroy loo_Json