Paolo Posted November 12, 2003 Posted November 12, 2003 i've a script that performs a find/replace... using the values stored in two globals: gFind and gReplace. the find/repl is performed on every record in the current found set on only one field. It works ok, but sometimes 1 record is left out from the find/replace... operation. In other words it does the find/replace on all records in the found set except one.: when this happens, that record is selected and the cursor is in the field. Any idea? Thanks!
BobWeaver Posted November 12, 2003 Posted November 12, 2003 Is this a multiuser solution? If so, it could be that someone else is editing the record when you run the script. In that case the record would be locked and the replace would skip it.
Lee Smith Posted November 13, 2003 Posted November 13, 2003 [color:"green"] >> i've a script that performs a find/replace... [color:"blue"]> what do you mean? Your Script Steps.
John Caballero Posted November 13, 2003 Posted November 13, 2003 Hi Paolo. I think Lee is asking for you to show us the script in question by pasting (can you actually paste the script steps, Lee?) for all to see. Look around at some other threads for an example - it's often helpful if we can see what your script steps are.
Paolo Posted November 13, 2003 Author Posted November 13, 2003 Ah! GoToField [select/Perform, "description" ] Perform Find/Replace[No dialog, "gFind","gReplace","Replace All"] The complete settings for Perform Find/Replace are: Perform: Replace All Find What: Field Value -> gFind Replace With: Field Value ->gReplace Direction: All Match case: NO Match whole words only: NO Search across: All records/requests Search within: Current field
Paolo Posted November 13, 2003 Author Posted November 13, 2003 Btw: >How about pasting your script? I would really love to be able to copy/paste script steps!!!
Lee Smith Posted November 13, 2003 Posted November 13, 2003 There are utilities that will let you Print to Text, which in turn you can then copy and paste in your post. Take a look what is available here: http://www.fmfiles.com/dev12.html The Print2Pict is excellent for this and a very useful development tool. If you are on a Windows machine, there is an equivalent, but I don't remember it's name. Lee
Recommended Posts
This topic is 7684 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