Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stonefield REPAIR with MaxFrame app ??
Message
 
 
To
25/08/2000 11:23:32
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00409204
Message ID:
00409271
Views:
19
That's close but you would use DODEFAULT() or CTRAPP::SETUPTABLES instead of the function call because you are putting this code in the SetUpTables method of your application object subclass.
IF !CTRAPP.SETUPTABLES()
   IF TYPE("oMeta") = "O"
      lRepair = oMeta.Repair("ALL")
      IF ! lRepair
         *--- tell user tables have problems
         RETURN .f.
      ELSE
         IF CTRAPP.SETUPTABLES()
            RETURN .t.
         ELSE
            *--- couldnt open after repair;
            *---   tell 'em
            RETURN .f.
         ENDIF
      ENDIF
   ENDIF
ENDIF
>Larry:
>
>thanks for the help.
>
>Would you typically call REPAIR with an "ALL" clause if the SETUPTABLES failed? I have not poured over VMPs setuptable code that much. Where would you place code to make a follow up call to SETUPTABLES? Does something like the following make sense?
>
>IF ! SETUPTABLES()
> IF TYPE("oMeta") = "O"
> lRepair = oMeta.Repair("ALL")
> IF ! lRepair
> *--- tell user tables have problems
> RETURN .f.
> ELSE
> IF SETUPTABLES()
> *---
> ELSE
> *--- couldnt open after repair;
> *--- tell 'em
> RETURN .f.
> ENDIF
> ENDIF
> ENDIF
>ENDIF
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform