Crag Posted July 6, 2004 Posted July 6, 2004 Is there a way to cut-n-paste script steps? I know i can duplicate a whole script. i want to copy pieces of one script into another script. Thanks..
MoonShadow Posted July 7, 2004 Posted July 7, 2004 You can create several smaller scripts and chain them so you can re-use certain ones within other scripts. Many here swear by this method (of chaining and reusing). It makes me nervous. I find it more difficult to properly manage them - particularly now in vs. 7.
Fenton Posted July 7, 2004 Posted July 7, 2004 You can duplicate a script, then remove the parts you don't need. You can select and delete multiple lines of a script at once. I'm beginning to agree more with MoonShadow, that with version 7 there's less reason to modularize scripts quite so much. There were several steps in 6 that I tended to want to put in their own script; Sort, Import, Page Setup, etc., partly 'cause some of them could only have 1 instance per script, others (Import) which would bug you with a "Do you want to Replace" every time you closed the script. 7 is a real pleasure to script in compared to that. I still tend to modularize some Print routines, because several reports call the same one. That's the criteria, whether a substantial portion of several scripts is identical (and/or is going to be for future scripts), and would be better as a separate script and identity. This simplifies the original scripts, and, in some cases provides a single point to change setups (prints). There also the fact that with 7 you'll likely have the scripts for more than 1 table in the same file's scripts list. I'm starting to assign more single-step scripts directly to buttons; many more steps can be done that way in 7. You can also Import a script from one file to another. But it doesn't sound like that's what you're doing. If you do that in 7 you have to retarget the fields, because the table prefix breaks the names. (If you're sneaky you can temporarily change one of the table names to match, import the script, then change it back; beats retargeting a bunch of fields.)
Recommended Posts
This topic is 7448 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