MSI Factory 2.3

Application.ExitScript

Application.ExitScript

This is the first topic This is the last topic  

Application.ExitScript

This is the first topic This is the last topic  

OverviewExamples

Application.ExitScript (

)

Example 1

Application.ExitScript();

Terminates the currently running script.

Example 2

if (bTerminateScript) then

   -- The script should be terminated.

   Application.ExitScript();

end

If the boolean variable "bTerminateScript" is set to true, then the script is terminated.

Example 3

-- Get the CRC value from the 'secret' file.

SecretCRC = File.GetCRC("C:\\secret_directory\\secret_file.ext");

 

-- Check the returned CRC value against the expected value.

if (SecretCRC ~= 123456789) then

   -- The values didn't match, terminate the script.

   Application.ExitScript();

end

Checks the CRC value of a 'secret file'.  If the returned value does not match the expected value, the script is terminated.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us