Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable oExp.ErrorNo not found ?
Message
 
 
To
05/10/2012 14:49:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01554398
Message ID:
01554419
Views:
53
Out of desperation try

local loExp as Exception

and use loExp instead of oExp.

>The 'full' block is
>
>
>
>Try 
>  (some statement)
>Catch to oExp
>  if oExp.Errorno = 1466
>...
>
>
>oExp IS defined as an object and when I view it in the Debug window, it shows ErrorNo as a member, it is numeric and has a value. If I try to access oExp.ErrorNo, like in an 'If' statement, it generates the error in the title
>
>
>
>>Where oExp comes from?
>>
>>>
>>>In a Try/Catch block, in the Catch I've got the line
>>>
>>>If oExp.ErrorNo = 1466
>>>
>>>VFP is giving me the error of "Variable oExp.ErrorNo not found, yet there are plenty of examples where the ErrorNo is being referenced in the help files and when I look at the object in the debug window, I see a value for ErrorNo.
>>>
>>>I'm a wee bit confused here - what is VFP trying to tell me?
>>>
>>>Dorris
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform