Raybaudi Posted September 16, 2005 Posted September 16, 2005 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
Kent Searight Posted September 16, 2005 Posted September 16, 2005 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.
Raybaudi Posted September 16, 2005 Author Posted September 16, 2005 ofcourse... but the intriguing thing is the possibility of grab the field name... just what we searched for your topic about evaluate()
Kent Searight Posted September 17, 2005 Posted September 17, 2005 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.
Raybaudi Posted September 17, 2005 Author Posted September 17, 2005 Right. That is the strange thing... I think that this "feature" can help for something more complex !
comment Posted September 17, 2005 Posted September 17, 2005 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.
-Queue- Posted September 17, 2005 Posted September 17, 2005 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.
Kent Searight Posted September 17, 2005 Posted September 17, 2005 Ahhh, interesting...then I stand corrected. Thanks comment and -Queue- for setting the record straight!
Recommended Posts
This topic is 7008 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now