Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Distribution Function Administration Guide


18.7.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;