Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I abort a form from the Init method?
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01286760
Message ID:
01286831
Views:
26
One more idea - we had a similar problem with MereMortals framework when form refused to be released. We had to add thisform.Destroy() (or Cleanup()) before calling return .F.

>Naomi,
>
>That didn't work either. Here is my Init code now (I decided that I really didn't need the ASSERT command):
>
>
>PARAMETERS nProjectID
>LOCAL nGrpCount, llResult
>
>llResult = INDEXSEEK(nProjectID, .T., 'Projects', 'ProjectID')
>IF NOT llResult
>	MESSAGEBOX('Project not found in Projects table')
>	RETURN .F.
>ENDIF
>
>
>Jim
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform