August 3, 200025 yr Is there any method of importing Scripts into ScriptMaker via text files. I am creating scripts that are very repetitive and need a search & replace function to edit them in a timely manner. Thanks, Graham Sprague
August 4, 200025 yr quote: Originally posted by spragueg: Is there any method of importing Scripts into ScriptMaker via text files. I am creating scripts that are very repetitive and need a search & replace function to edit them in a timely manner. Thanks, Graham Sprague FMP 5 allows you to import scripts from other files, but that is the best you can do. ------------------ =-=-=-=-=-=-=-=-=-=-=-=-= Kurt Knippel Senior Filemaker Developer http://www.database-resources.com mailto:[email protected] =-=-=-=-=-=-=-=-=-=-=-=-=
August 4, 200025 yr Author Ok, so I can't import text scripts. Fine. How about simplifying my scripts. I have 30 fields all need to be setto a certain value using an if statement. Is there a way to use one field to hold the name of another. Then set a value to a field containing that name. Then I could write one script only and just set the name of the field before I run the script so it can be generic. Follow? Any one who can help? Thanks, Graham
August 4, 200025 yr quote: Originally posted by spragueg: Ok, so I can't import text scripts. Fine. How about simplifying my scripts. I have 30 fields all need to be setto a certain value using an if statement. Is there a way to use one field to hold the name of another. Then set a value to a field containing that name. Then I could write one script only and just set the name of the field before I run the script so it can be generic. I would recommend the following: Break your scripts up into as many pieces as possible. Then you can simply link those peices together into bigger scripts. Put each of the SetFields into thier own script and such. ------------------ =-=-=-=-=-=-=-=-=-=-=-=-= Kurt Knippel Senior Filemaker Developer http://www.database-resources.com mailto:[email protected] =-=-=-=-=-=-=-=-=-=-=-=-=
August 9, 200025 yr Author That's what I have done. My frustration lies in that it seems I can't define a variable within a script that defines the name of a field. So my question is still unanswered... Is there a way to use one field to hold the name of another? Can I then set a value to a field containing that name? Any help would be great. Thanks, G
August 9, 200025 yr You could try this is your script: Go to Field (the field whose name you want to capture) Set Field (FieldCapture, Status(CurrentFieldName) FieldCapture is just the name I used for the second field you'd need to make this happen. If I read your post right that should accomplish what you want. As always, I hope this helps. [This message has been edited by WBlanchard (edited August 09, 2000).]
August 9, 200025 yr Author The "Goto Field" step dosent alow you to specify the name of a field, only the field itself. Sothe following ... Go to Field (the field whose name you want to capture) ...results in the intended variable field being the result returned. I guess it can't be done. Thanks anyway, G
August 24, 200025 yr You could use a loop and Go to Field next script steps... use the Status(CurrentFieldName) function to compare the current field to the one you want, looping through with Go to Field Next until you find it, then proceeding with the rest of the script. Awkward perhaps, but it should work.
Create an account or sign in to comment