I hope this makes sense. If I define a variable in one proc (ie integer TaskId) can I call that same variable in a subsequent proc either within the original proc or external to it?
Example:
proc start_task
integer TaskId
run notepad.exe TaskId
end proc
proc change_window
winfocus TaskId
end proc
proc main
call start_task
run excel.exe
call change_window
end proc
Thanks.
Mike
Example:
proc start_task
integer TaskId
run notepad.exe TaskId
end proc
proc change_window
winfocus TaskId
end proc
proc main
call start_task
run excel.exe
call change_window
end proc
Thanks.
Mike