March 7, 20187 yr Do not understand Get(ActiveFieldName) usage: Simple script: set variable $fieldname = Get(ActiveFieldName) 1. place cursor in desired field. 2. run script in debug mode, data viewer on 3. $firldname always null set variable $fieldname = Get(ActiveFieldName) set field (xyz) = $fieldname 1. place cursor in desired field 2. run script 3. field (xyz; text) is empty What am I doing wrong? Same problem with Get(ActiveFieldContent) Other Get(Active***) all appear to work as I would expect.
March 7, 20187 yr Where is your actual script? How are you triggering the script? Can you show us your file or a simple example file? There will need to be a second step in the script so you can stop in debugger and look at the variable contents before the script ends. Since you are using a script variable ( single $ variable) it will always be empty after the script runs. While this is something you should be able to do successfully - in real life, what do you want to do with $fieldName?
March 9, 20187 yr Author Thanks for the response BruceR and sorry for the 4PM shout out. As you suspected, I was maligning the script step by stepping out of the layout and back before executing the step. Brain was running in standard knucklehead mode. Moved get(active....) in front of unrelated layout in/out housekeeping and it functions as expected. Once again, thanks for the advice.
Create an account or sign in to comment