Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error on a CATCH statement
Message
From
07/01/2009 17:33:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01371894
Message ID:
01371900
Views:
18
Thanks, that did it. I recent was refactoring the code and added several missing "m.". This problem was the result of usimg te find/replace all to much.

>Remove m. from CATCH TO m.loException, use just CATCH TO loException.
>
>Little problem (bug?) here. Was either discussed here before or I got this problem too, don't recall.
>
>>While adding a new driver to my Query.app utility, I started throwing an error on the CATCH statement; try/catch/finally/endtry mismatch or error. Here the try/catch block...
>>
>>	TRY
>>		THIS.Support.Convert2Cursor(tcSQL)
>>	CATCH TO m.loException
>>		THIS.SaveError( m.loException, "Error occurred during Convert2Cursor method." )
>>	ENDTRY
>>
>>
>>After returning from the Convert2Cursor function, the error occurs on the Catch. I have step through the entire and found no error and no other Try block.
>>
>>Any suggestion in how to stop this error would be helpful.
>>
>>Thanks
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform