Jump to content
Sign in to follow this  
shawnj985

capture field name into a local variable

Recommended Posts

Hello all

Is there a command to capture the field name, not its contents, into a local variable?

Share this post


Link to post
Share on other sites

Usually you would use GetFieldName ( demo::fieldName )

What do you want it for?

Share this post


Link to post
Share on other sites

I have a database with a layout with 4 fields to display images. Next to each one is a button to delete or clear out the field. Instead of using 4 different scripts based on each field, I would like to use one script but the script need to know what field name its focused on.

Share this post


Link to post
Share on other sites

Unless the cursor is in the container field, there is nothing to capture. However, you can use the script parameter to pass the name of the field associated with each button.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.