Jump to content

Pass the fieldname of a SET FIELD command as a parameter in a script


This topic is 5778 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I would need to create a small script where the field name (1st argument) in a Set Field command in the script would be passed by a parameter when calling the script. Something like: SET FIELD [ Get (ScriptParameter); 0) ]

I can pass the 2nd argument (value) as a parameter and it works ok, but I can't figure out how to do it for the field name. Is this possible ?

For the moment, I'm passing the field name as a parameter, and doing a CASE with a SET FIELD for each possible field I'm going to need, but I'm hoping there is probably a "cleaner" way of doing this.

Thanks

Link to comment
Share on other sites

This topic is 5778 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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