Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting when user exits a VFP .exe improperly
Message
From
26/11/1996 07:06:32
 
 
To
25/11/1996 15:36:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00013353
Message ID:
00013511
Views:
35
Who said anything about consuming handles?
    * Form.Load()
    If File(gcUserName + ".TXT")   && Didn't get out properly
      * Perform your clean-up code
    Else
      lnHandle = FCreate(gcUserName + ".TXT")
      If lnHandle != -1
        = FClose(lnHandle)       && Notice I'm releasing it here
      EndIf
    EndIf

    * Form.QueryUnload()
    If File(gcUserName + ".TXT")  && I hope no one else erases it...
      Delete File (gcUserName + ".TXT")
    EndIf
Got it?

BTW, you put 'spice' in your coffee? :-)
Alexandre Nobre
Alpha Bytes Computer Corp.

Did you know that there are innocent people dying in East Timor?
It helps if you do...

I suppose you don't need glasses if you're able to read this line

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform