September 16, 200520 yr Hi while playng with Get(ActiveFieldName), I found that this function can be used in a custom function and gives back the name of the field specified as parameter of the function itself. Look at the attachment. It launch a script too, but you have to have the S4HU plugin Validate.zip
September 16, 200520 yr You can do the same thing much more easily with Field Validation, your calculation, an auto-enter calc in field Validate, and without S4HU Plug-in or script.
September 16, 200520 yr Author ofcourse... but the intriguing thing is the possibility of grab the field name... just what we searched for your topic about evaluate()
September 17, 200520 yr Right. Without the plug-in, Get (ActiveFieldName) returns the name of the last field you were in, not the current one. It's almost as if FM, Inc. created Get(ActiveFieldName) with the S4HU plug-in in mind.
September 17, 200520 yr Author Right. That is the strange thing... I think that this "feature" can help for something more complex !
September 17, 200520 yr Get (ActiveFieldName) returns the name of the last field you were in, not the current one. I am afraid that is incorrect. Get (ActiveFieldName) returns the name of the field currently containing the cursor. "Currently" means at the time of the evaluation.
September 17, 200520 yr That is why it returns the previously activated field when used in a field definition; the field is not re-evaluated until it is exited.
September 17, 200520 yr Ahhh, interesting...then I stand corrected. Thanks comment and -Queue- for setting the record straight!
Create an account or sign in to comment