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)