Jump to content

How to change the contents of a field

Recommended Posts

I am sure this is going to seem like a very stupid question, but.....

I need to write a script that

          (1) goes to a particular field (2) removes any content in that field (3) replaces it with a single letter "y"

Can some kind person please tell me the script steps to achieve this, as I cannot seem to figure it out for myself.

Link to post
Share on other sites

Why not simply:

Set Field [ YourTable::YourField ; "y" ]

There is no need to go the field or remove its content beforehand. However, depending on when and why you're doing this you may want to follow this with Commit Records.


Link to post
Share on other sites

Thank you, comment. Once again you save the day for me!

Being an amateur, I tend to think "what steps do I want to do, which script-steps acheive that".  I never use "Set" outside of scripts, so I don't tend to think of it.

Thanks again

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
  • Create New...

Important Information

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