AMChangeDir Example

 

Option Explicit

Sub Main

Dim intReturn As Integer

 

Dim varDirectory As Variant

 

 varDirectory = "c:\My Documents\"

 

 intReturn = Action2.AMChangeDir (varDirectory)

 

 If intReturn = 0 Then

  MsgBox "Failure"

  MsgBox( Action2.GetLastError )

 ElseIf intReturn = 1 Then

  MsgBox "Success"

 End If

 

End Sub