Newbies Mel P Posted March 26, 2009 Newbies Posted March 26, 2009 Is it possible to create a new script by finding and replacing fields in a current script?
mr_vodka Posted March 26, 2009 Posted March 26, 2009 (edited) no. Edit: Perhaps this tool can help you search for certain text in your scripts. http://www.dracoventions.com/products/gap_filler/ Edited March 26, 2009 by Guest added Link
aldipalo Posted March 26, 2009 Posted March 26, 2009 Welcome to the Forum. It's possible to call different scripts based on certain criteria. With creative uses of variables and If Statements and script parameters your possibilities are pretty endless. Exactly what are you trying to accomplish? Please give us a more information.
Newbies Mel P Posted March 27, 2009 Author Newbies Posted March 27, 2009 I’ll attempt to explain what I’m trying to do. I’ve just started using variables and they’re great. I don’t think that I’ve come anywhere close to using them to their full potential. In any case here goes… Basically I have a calculation script with multiple find requests that allows schools within a jurisdiction to generate reports on their own data based on a variable code unique to each school upon login. The variable code is matched with the “schcode” field in all find requests throughout the script. I also want to do a district report for (all schools). The variable code for the district would have to be matched to a different field “jurcode.” The only way that I can see doing that at present is to create a new script by duplicating the current script and by replacing the Set Field (Schcode) with Set Field (Jurcode) in all the find requests throughout the script. Consequently, I would like to do a find/replace on the text in a script to replace all occurrences of Set Field [schcode] with Set field [JurCode]. Better still, I would prefer keeping one script if there was a way to use the“If function” to change all occurrences of Set Field [schcode] to Set field [Jurcode] within the script depending on the specific variable code that is entered. In a nutshell, the variable code for the district would trigger the Set Field in all find requests to be changed from “schcode” to “jurcode.” This option if possible, would enable me to use the same script for any number of reports (i.e a unique code that would generate a report for a segment of the population for two or three schools combined). Thx Mel
Recommended Posts
This topic is 5721 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