I know I have asked this before, but I can't find it, so maybe I after I write this it will pop up! I want to develop a script that checks for a host of data conditions and returns a pass-fail result to the calling primary script. I will name the script that checks for the database conditions "database_gatekeeper()". This will provide a process for me to allow-disallow continuation through the primary script or not. Each primary action script has a reference number. That reference number is set as a variable first thing in the script. What I would like to have is the gatekeeper script have a parameter using that reference number, and the script proceed to a specific section of code in the gatekeeper based upon the reference number as the director. The calling script and the called gatekeeper script would look something like below. I just don't know what the code (red) for making the GOTO dynamic using the incoming parameter. Anyone have syntax that can make GOTO dynamic?
Primary script:
The Called script
LATER: OK, It popped up, so I'm good to go, or more like give up.
Primary script:
Code:
FUNCTION import_art_files() 'This script sequences through importing art files to the Art_Library table dim vscript_ref_no as C="ART.00001" dim shared vgatekeeper as C 'call the gatekeeper script database_gatekeeper(vscript_ref_no) if vgatekeeper="deny" end else '>>> continue on through this script end if END FUNCTION
Code:
FUNCTION database_gatekeeper as C (script_ref_no as C) 'This script looks at data and files being present to allow or deny continuing the parent script 'The incoming parameter triages to the script region to perform the needed checks [COLOR="#FF0000"] EVALUATE_TEMPLATE("GOTO "+script_ref_no)[/COLOR] end ART.00001: '>>>Check for this and that about importing art and other things and vgatekeeper ="allow" or "deny' end ART.00002: '>>>> check this and that about art sizing and vgatekeeper ="allow" or "deny' end ART.00003: '>>>> check this and that about art templating and vgatekeeper ="allow" or "deny' end END FUNCTION
LATER: OK, It popped up, so I'm good to go, or more like give up.
Comment