What's the code inside MyProc?
Cathy
>I am getting different results from a procedure call when a program is run as an APP and when it is run as an EXE. It works properly when compiled as an APP as I've set STEP ON above the code. I added WAIT WINDOWs so I could "watch" the values when the code is run as an EXE. I've also just used the WAIT WINDOWs when running the program as an APP.
>
>Here is the basic code I'm running:
>
>
>WAIT WINDOW "Before Procedure Call: Var1 = " + m.Var1 + ", Var2 = " + m.Var2
>
>DO MyProc WITH m.Var1, m.Var2
>
>WAIT WINDOW "After Procedure Call: Var1 = " + m.Var1 + ", Var2 = " + m.Var2
>
>
>MyProc doesn't use VERSION() and should return the same results. The variables return with the expected changes in the APP, but not with the EXE.
>
>Any ideas?
>
>Mark