# GetCodeGroupByIndex Method The GetCodeGroupByIndex method returns a code group by index. Syntax
    [obj=] SiteCafe.Server.Codes.GetCodeGroupByIndex(groupIndex)
Parameters
groupIndex | Long value that specifies the group index.
Return Value Returns a CodeGroup object representing the specified code group. Remarks None. Examples The following example displays the name of the first code group.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    codeGroup = SiteCafe.Server.Codes.GetCodeGroupByIndex(1);
    alert(codeGroup.Name);
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top