[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=
[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectionByName(ThisSessionName)
REM This line calls the macro subroutine
subSub1_
sub subSub1_()
Dim value As String
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
value = autECLSession.autECLPS.GetText(1, 5, 60)
MsgBox(value)
end sub
LANGUAGE=VBSCRIPT
DESCRIPTION=
[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectionByName(ThisSessionName)
REM This line calls the macro subroutine
subSub1_
sub subSub1_()
Dim value As String
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
value = autECLSession.autECLPS.GetText(1, 5, 60)
MsgBox(value)
end sub
When I run this macro on emulator I always get an error at line "Dim value as String": End of statement expected. If I define value variable as "Dim value" without "As String" script runs fine, but I need to define the type of each variable. Any ideas? Thanks.