Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where Is the best place to place code for returning to F
Message
 
To
19/04/1999 12:16:42
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00209678
Message ID:
00209711
Views:
26
>I removed some code that I had placed in the activate of the original form and placed a return (I did not have one) in the second form unload event. Since I am passing a Global, It worked. I still am having a problem if I try to Delete something on the second form it is deleting the master not the child record. Thank you for being patient with a beginner.

I need more information here. You say about 'deleting' the master, not the child - what do you mean by this? My previous reply didn't come out correct. It should have read DO FORM "formname" TO "variable" where variable is the receiving variable which the child form passes back to. In the unload event, you say RETURN "returnvalue", this is what is returned to "variable".

Example: DO FORM testform TO lnTestFormReturn

in testform.Unload you put RETURN -1

lnTestFormReturn will then equate to -1 (return value).

Without more explanation of your situation, I don't know if this is what you want.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform