Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling - need to pass the name of the current fo
Message
From
03/07/2006 00:05:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/07/2006 22:56:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01133347
Message ID:
01133357
Views:
12
From the help:

Syntax

SYS(1271, oObjectName)


>Thank you for the help, and from reading the Help on that function, it looks like that oughta help. But when I include it in the parameters I'm passing with:
>
>
>on error do form errorlog with date(), time(), sys(1271), program(), lineno(), error(), message(), dbf(), tag()
>
>
>I get the error message:
>
>
>Funtion argument value, type or count is invalid
>
>
>Am I missing something here?
>
>>Try SYS(1271, oObjectName)
>>
>>>Hi all,
>>>
>>>I've got an error-handling routine set up, and want to pass the name of the current form to it. The VFP Help file says to use the "program()" function to do this, but when I pass that value to my error-handling routine, I don't get the name of the form I was in when the error happened...I get the name of a control. For example, when I click a command button to do something in customers.scx, and an error is generated, "program()" passes "form1.cmgsave" instead of "customers.scx." How do I get "customers.scx" to be passed to the error routine? There's probably something simple here, but I'm just not finding in my own.
>>>
>>>Thanks very much,
>>>
>>>John
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform