Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > PFKEYUSAGE

 

 

Purpose

PFKEYUSAGE retrieves the usage text entered at the $CRT screen for keys that are application definable.
 

Syntax

PFKEYUSAGE(fn-key-number)
 

Operation

fn-key-number is the number of the key for which text is to be retrieved.  This is a value in the range 1 to 10.
 

Remarks

This can be used, together with PFKEYCAP, to display the use made of application-defined Function Keys within a screen.
 

Example

This example displays a keys function by displaying the keycap text and key usage as defined by the developer.

$X = PFKEYCAP(1)
$Y = PFKEYUSAGE(1)

UMSG($X + ‘ = ‘ + $Y)

This might give an output indicating the presence and usage of a pop-up window as:
"ALT+F1 = Show Prices"
 

Comment on this topic

Topic ID: 520099