Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a table without showing an error
Message
From
05/07/2000 11:18:28
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00386523
Message ID:
00388334
Views:
14
Thanks,

Michelle

>If you need to check what kind of error you got, you can rite your own erro r handler in the same .PRG file.
>
>*myprog.prg
>FUNCTION WhatEver
>LOCAL cOldError
>cOldError = ON("ERROR")
>ON ERROR DO ErrorHandler WITH ERROR(),LINENO(),MESSAGE()
>* your code here
>ON ERROR &cOldError
>RETURN
>
>FUNCTION ErrorHandler
>LPARAMETERS nError, nLine, cMessage
>* do what ever you need to do here based on the error
>
>
>FUNCTION OthersAsNeeded
>
>*end of myprog.prg
>
>
>You can have as many functions you need to have "local" to your own .PRG as part of the .PRG. They will be available any time tha "main" function of your .PRG is called.
Previous
Reply
Map
View

Click here to load this message in the networking platform