![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hey all- This question is kind of a stylistic/aesthetic one, rather than a right/wrong, but here goes. Since the introduction of script parameters it has become possible to create single script "libraries" that run different script steps based on the parameter sent to it. E.g. a Script called "Contact Library" that takes parameters like "add", "remove", etc., then uses a big If,Else If structure to figure out what to do. Now my question: Is this a good practice? Is it making things easier by centralizing scripts and reducing the total number, or making things more difficult? What are people's opinions on this? |
#3
| |||
| |||
|
|
NScheffey wrote: Hey all- This question is kind of a stylistic/aesthetic one, rather than a right/wrong, but here goes. Since the introduction of script parameters it has become possible to create single script "libraries" that run different script steps based on the parameter sent to it. E.g. a Script called "Contact Library" that takes parameters like "add", "remove", etc., then uses a big If,Else If structure to figure out what to do. Now my question: Is this a good practice? Is it making things easier by centralizing scripts and reducing the total number, or making things more difficult? What are people's opinions on this? I did this on one of my projects and, though it makes it easier in the sense that I only need to go to one script for all my navigational needs, I have found it more difficult to work within that script because it is so long and I have to scan through it to find the section I want. In the end, I think it is easier to have separate scripts for different functions. Since you can copy and paste scripts between files, there is little benefit to having everything in one script versus multiple scripts. And if FileMaker is ever able to give us the capability to categorize or otherwise organize script steps, then navigating large collections of scripts will be made even easier. |
#4
| |||
| |||
|
|
Hey all- This question is kind of a stylistic/aesthetic one, rather than a right/wrong, but here goes. Since the introduction of script parameters it has become possible to create single script "libraries" that run different script steps based on the parameter sent to it. E.g. a Script called "Contact Library" that takes parameters like "add", "remove", etc., then uses a big If,Else If structure to figure out what to do. Now my question: Is this a good practice? Is it making things easier by centralizing scripts and reducing the total number, or making things more difficult? What are people's opinions on this? Thanks, Nate |
![]() |
| Thread Tools | |
| Display Modes | |
| |