Timer in a Toolbar intercepting a Form's return value?
Hello,
I've just recreated a self-managing toolbar that was described in the Nov.
'97 issue of FoxPro Advisor. Basically, it uses a timer instantiated in a
property on the toolbar to manage the enabled property of the buttons on
the toolbar. I've set the interval property of the timer to be 250 (4 times
a second).
On a form in my app, I have a situation where I need to get a return value
from another form, my syntax is this...
DO FORM "MyForm" TO l_cReturnCode
In the UnLoad event of "MyForm", I have the statement
RETURN THIS.SomeProperty
The problem is that the Timer method of the timer on the toolbar intercepts
the return value of "MyForm" and when the original procedure that called
"MyForm" resumes, it acts as if "MyForm" didn't return a value at all.
I didn't know that other methods/code could intercept a return value. Seems
strange.
Does anyone know how to get around this?
One idea I have is to send an object reference to "MyForm" and have
"MyForm" set a property on that object reference before it is destroyed,
then use that property as the return value of "MyForm"
Thanks for the help...
--
William Fields
US Bankruptcy Court
Phoenix, AZ