I'm wondering if there is a way to make a program wait mid sub for a return of data. For example
Sub main()
run code
if statement
call function
End if
more code...
end sub
^^^ THis is easy, But what I'm looking to do is....
Sub main()
run code
if statement
Load second form (collect data from user)
Return data/use it in code
End if
more code...
end sub
Whats hapenneing is when I load the second form the program is just finishing out the sub main code, it's not waiting for the data to come back from the second form to finish it's code.
Is there a way to make it wait?
Thanks
Nendail
Sub main()
run code
if statement
call function
End if
more code...
end sub
^^^ THis is easy, But what I'm looking to do is....
Sub main()
run code
if statement
Load second form (collect data from user)
Return data/use it in code
End if
more code...
end sub
Whats hapenneing is when I load the second form the program is just finishing out the sub main code, it's not waiting for the data to come back from the second form to finish it's code.
Is there a way to make it wait?
Thanks
Nendail