GetCodeByIndex Method



 
The GetCodeByIndex method returns a code by index.


Syntax

    [obj=] SiteCafe.Server.Codes.GetCodeByIndex(codeIndex)
    
Parameters
    codeIndex Long value that specifies the code index.
Return Value
    Returns a Code object representing the specified code.
Remarks
    None.
Examples
    The following example displays the name of the first code.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    code = SiteCafe.Server.Codes.GetCodeByIndex(1);
    alert(code.Name);
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top