Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the name of the active form?
Message
 
To
11/11/1998 11:08:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00156604
Message ID:
00156618
Views:
25
>Hello
>Can anyone tell me how to retrieve the name of the active form from within a procedure (not using thisform)?

Jeff,

Object's have tow types of names, one is the contents of their Name property, the other is a variable that holds an object reference to them. If you need an object reference to the currently active form you can;
* Check to see if there is a form active right now
IF TYPE("_SCREEN.ActiveForm.Name") = "C"
   * If there is, then store a reference to it in the variable loForm
   loForm = _screen.activeform
ELSE
   * If there is no active form, do whatever you need to do about that situation
   * No form is active
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform