Since I've started working with different config.fpw for different
environments, and different foxuser tables for each, I've added the
following procedure call to my developer menu. It helps when something goes
weird in the foxuser table:

Procedure ClearFoxUser
   Local lnOk, lcResource, lcSafety
   lnOk = Messagebox("This process will clear the FoxUser table of this VFP
Instance.";
        + Chr(10) + "Are you sure you want to do
this?",4+32+256,_Screen.Caption)
   If lnOk = 6
      lcResource = Sys(2005)
      lcSafety   = Set("Safety")
      Set Resource Off
      Set Safety Off
      Try
         Use (lcResource) In Select("FoxUser") Exclusive
         Zap In Select("FoxUser")
         Use In Select("FoxUser")
      Catch
         Messagebox("Failed to clear the FoxUser table.",48,_Screen.Caption)
      Endtry
      Set Safety &lcSafety
      Set Resource On
   Endif
Endproc

Tracy


> -----Original Message-----
> From: James E. Harvey
> Sent: Tuesday, September 05, 2006 8:36 AM
> Subject: VFP9 Environment Manager problem
>
>
> I tried deleting the foxuser.dbf in the working folder but
> that hasn't helped.  I notice that a new foxuser.dbf is not
> being re-created in the working folder when I reload VFP...?
>




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to