Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business rule against a form property
Message
From
08/12/2001 18:50:33
 
 
To
08/12/2001 18:41:55
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00590665
Message ID:
00591735
Views:
24
SNIP

>Sound good? Is there a property or easy way to get the form's name?

_screen.activeform.name

will return the current active form's name. You can then reference it by the form's object name. Or you can do:

loform=_screen.activeform.name

and then you can reference the form by 'loform' from that point on.

Additional note added:

Since that property PROBABLY(?) only exists on a specific form, I would check to make sure it IS the active form with something like:

IF _screen.activeform.name="MYFORM"
**your code here
ENDIF

Also don't forget about multiple instance forms adding the instance number to the end of the form name.

Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform