Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Emulate TRY CATCH in VFP6
Message
From
14/02/2019 07:24:48
 
 
To
13/02/2019 14:26:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP3
Application:
Desktop
Miscellaneous
Thread ID:
01666266
Message ID:
01666379
Views:
108
>>>>>>Hi all
>>>>>>
>>>>>>Is there a way to closely emulate the try...catch feature of later FoxPro in VFP6? I would prefer not to have to re-do the error handling of a utility, or at least reduce the re-work.
>>>>>>
>>>>>>Thanks
>>>>>
>>>>>In addition to Borislav Borissov's link, see also this one with some updated code to allow nesting:
>>>>>
>>>>>https://www.foxite.com/archives/trycatch-for-vfp6-0000405838.htm
>>>>
>>>>Right away I find a bug. In the TRY procedure there is PUBLIC gnTRYNestingLevel and the next line is g O, not n, TRYNestingLevel = 0
>>>
>>>If you are able to correct it, post the correction code to Foxite. You might also contact Victor and see if he has an updated version. I assume he used it at some point for VFP6.
>>
>>I informed Victor on foxite and as expected get crap from Koen about reviving a 2 year old thread. People should mind their business.
>
>2019 - 2014 = 5 years. FWIW I agree with Koen, rules should be followed, both written and unwritten.

Tore,

Sorry I dont agree.
In this particular case Mike corrected a code. To make a correction, even if the code is >4 years old, is always a good thing to do.

Regards,
Koen
Previous
Reply
Map
View

Click here to load this message in the networking platform