Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON ERROR Identify Calling FOMR
Message
 
 
To
22/11/2005 12:05:31
Bly Beach
Discovery Unlimited, Inc.
Arnoldsville, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01071208
Message ID:
01071216
Views:
25
>I have a client who is having problems -- yet fails to contact us with errors. Our error handling routine
>is now emailing us with diagnostics through ON ERROR. However, I have not been successful in capturing the name
>of the form currently in use. The PROGRAM() parameter returns ERROR (the error .prg) not the calling form.
>
>All is triggered by one ON ERROR command in our startup program.

Try
IF TYPE("_SCREEN.Activeform.Name") = C
   lcFormName = _SCREEN.Activeform.Name
ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform