parent.prg
Code: Select all
subroutine parent1
%path = @linepath + "child.prg"
exec %path
endsub
subroutine local parent2
%path = @linepath + "child.prg"
exec %path
endsub
wfcreate u 1 1
call parent1 ' Calls a subroutine
call parent2 ' Calls a local subroutinechild.prg
Code: Select all
subroutine local child1(string my_string)
my_string = "B"
endsub
string my_string = "A"
call child1(my_string)
@uiprompt(@wlookup("my_string", "string"))
delete my_stringThe call to parent1 works just fine and results in a dialog box reading "MY_STRING". But the call to parent2 first results in an empty dialog box and then throws an error reading 'MY_STRING is not defined in "DELETE MY_STRING" in CHILD.PRG on line 8.' Is this the intended behavior?
