Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference

[Contents][Glossary][Index][Back][Next]

3.7 Function calls

The AIT language supports various types of API functions to carry out standard operations. The API functions can be categorized as follows:

Organization of this section
(1) Format
(2) Example of coding

(1) Format

(2) Example of coding

integer intvar1;
string Caption;
string Stringvar1, Stringvar2;
...
...
AIT_LogMessage("SAMPLE FUNCTION CALL");  // Function call
if(AIT_FocusWindow("Installable-Setup","#32770"))
        // Return value of the function is used in the expression.
   AIT_LogMessage("INSIDE Installable Software SETUP");  
        // Executed
   AIT_PlayKey("{Enter}");
endif;
        // Check for the abnormal end of the called function
Caption = "Installable Software";
intvar1    = AIT_GetSubStr(Stringvar1, Stringvar2, 50);
                                        // intvar1 is 0.
if(!intvar1)
           AIT_LogMessage(AIT_GetErrorText(AIT_GetLastError()));
endif;