(PureBasic) Get Version of Chilkat
Demonstrate how to find out the version of Chilkat at runtime.
IncludeFile "CkJsonObject.pb"
IncludeFile "CkSFtp.pb"
Procedure ChilkatExample()
; 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:
sftp.i = CkSFtp::ckCreate()
If sftp.i = 0
Debug "Failed to create object."
ProcedureReturn
EndIf
chilkatVersion.s = CkSFtp::ckVersion(sftp)
Debug chilkatVersion
; Most other Chilkat classes also have the Version property
; For example:
json.i = CkJsonObject::ckCreate()
If json.i = 0
Debug "Failed to create object."
ProcedureReturn
EndIf
Debug CkJsonObject::ckVersion(json)
CkSFtp::ckDispose(sftp)
CkJsonObject::ckDispose(json)
ProcedureReturn
EndProcedure
|