Template
Class
Name
Applykey()
Category
TBrowse Method
Oneliner
Evaluates an code block associated with an specific key
Syntax
ApplyKey(<nKey>) --> nResult
Arguments
<nKey> An valid Inkey code
Returns
<nResult> Value returned from the evaluated Code Block.
See Table Below :
Value Meaning -1 User request for the browse lost input focus 0 Code block associated with <nkey> was evaluated 1 Unable to locate <nKey> in the dictionary,Key was not processed
Description
This method evaluate an code block associated with <nkey> that is contained in the TBrowse:SetKey() dictionary.
Examples
DO WHILE .T. oTb:forceStable() IF oTb:applykey( Inkey( 0 ) ) == -1 EXIT ENDIF ENDDO
Pingback: TBrowse Functions | Viva Clipper !