getRegisteredFormKeys

getRegisteredFormKeys(array: IntegerArray);

The getRegisteredFormKeys method of the Form class populates an array of the form keys that are in effect for the form of the receiver. This array contains entries only if the registerFormKeys method of the Form class has been called.

The method in the following example returns whether the Tab key is registered for any control on the form.

isTabRegistered():Boolean
vars
    aray : IntegerArray;
    ky   : Integer;
begin
    create aray transient;
    getRegisteredFormKeys(aray);
    foreach ky in aray do
        if ky = 9 then
            return true;
        endif;
    endforeach;
    return false;
epilog
    delete aray;
end;