Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling - need to pass the name of the current fo
Message
 
 
To
02/07/2006 21:51:18
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:
01133355
Views:
12
John

thisform.Name

You can also send an argument to the program() function to find all of the names on the current stack.

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform