Hello
I'm trying to get a value back from a sub program (nme$). I compile the sub program (pbc -cu inputit), which creates inputit.pbu
I then compile the main program pbc test
When the main program prints nme$ its always empty.
What am i doing wrong?
Thanks
main program (test):
100 link$ "inputit.pbu"
110 declare sub inputit(single, single single)
120 call inputit(25,10,20)
130 print nme$
140 end
sub program (inputit):
100 sub inputit(lgth,row,col) public
110 blah blah blah
120 nme$="hello world"
130 end sub
I'm trying to get a value back from a sub program (nme$). I compile the sub program (pbc -cu inputit), which creates inputit.pbu
I then compile the main program pbc test
When the main program prints nme$ its always empty.
What am i doing wrong?
Thanks
main program (test):
100 link$ "inputit.pbu"
110 declare sub inputit(single, single single)
120 call inputit(25,10,20)
130 print nme$
140 end
sub program (inputit):
100 sub inputit(lgth,row,col) public
110 blah blah blah
120 nme$="hello world"
130 end sub
Comment