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"