Sample code for 30+ languages & platforms
AutoIt

Transition from Cert.GetValidFromDt to Cert.ValidFromStr

Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.

Chilkat AutoIt Downloads

AutoIt
$oCert = ObjCreate("Chilkat.Cert")

; ------------------------------------------------------------------------
; The GetValidFromDt method is deprecated:

Local $oCkdt1 = $oCert.GetValidFromDt()
If ($oCert.LastMethodSuccess = False) Then
    ConsoleWrite($oCert.LastErrorText & @CRLF)
    Exit
EndIf

; ...
; ...

; ------------------------------------------------------------------------
; Do the equivalent using the ValidFromStr property

$oCkdt2 = ObjCreate("Chilkat.CkDateTime")
$oCkdt2.SetFromRfc822($oCert.ValidFromStr)