Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is wrong with the following code?
Message
From
24/09/1998 01:45:13
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
To
23/09/1998 18:53:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00140095
Message ID:
00140226
Views:
29
>Hi,
> In the click event procedure of a command button, Iam trying to launch a modal form (custfind.scx) and see couple of properties of custfind object once the launched form is closed.
>
>Right after the "do form.." line, Iam getting an error saying "dlgFind" is not object.
>
>What am I doing wrong?
>
>Iam giving below the code.
>
>Thanks
>Puri
>
>======The code==================
>local dlgFind
>do form findcust.scx name dlgFind linked ;
> with thisform.txtCustomer.Value
>if m.dlgFind.m_nCustId <> -1
> ? "The customer id is " + Str(dlgFind.m_nCustId)
> ? "The customer name is "+m.dlgFind.m_sCustName
> thisform.txtCustomer.Value = m.dlgFind.m_sCustName
>endif
>
>=============================

I took another approachwhich may or mat not work for you. In the modal form, I did a thisform.hide() and then added a dlgfind.release() after I got the dat out of it.HTH
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Previous
Reply
Map
View

Click here to load this message in the networking platform