General information
Category:
Coding, syntax & commands
>>How can I capture a return value from an .app or .prg with the DO PROGRAM without passing parameters? I can't find anything in the flavor of DO SCREEN TO MYVAR to capture a return value.
>
>George & David have the right answer about PRGS/Functions returning a value, but is your 'DO SCREEN' referring to a form instead of a program? If so, the called form needs to be modal, but it will return a single value to the calling form.
Actually this was asked of me by another developer (honestly :-). I should have thought it through before posting the question to the UT. After looking at his problem I found out that he had a function call that was crashing in an app (turns out he didn't have it included in the build) so he replaced it with a DO pROGRAM and a hard coded path. He didn't want want to modify the function to pass the parameters, that's how he ended up with the DO program.
My bad. I'll know better to think more about a question before posting it.
Thanks for your time.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only