AFTER BUILD Statement |
The AFTER BUILD statement may be used to execute a statement (or block of statements) after the Alchemy build has completed and all files have been closed.
AFTER BUILD statements may be placed anywhere in an Alchemy script. After the Alchemy build is complete each AFTER BUILD statement will be executed in the order that they were encountered as the Alchemy script was processed.
AFTER BUILD statement;
statement | A single Alchemy statement (or a statement block) to be executed after the Alchemy script has completed |
The following code snippet will open the 'custom.cam' file (using Verizon Connect GeoBase WorkBench) after the build has completed.
CREATE FUNCTION openChameleon BEGIN System.Diagnostics.Process.Start("custom.cam"); return 0; END; AFTER BUILD BEGIN ? "WorkBench will now open the custom CAM file..."; openChameleon(); END