ONKEY

Contents


"Onkey" allows you to execute a process after performing a right-click on a field.

 

Syntax

[GLOBAL|LOCAL] Onkey status_id Titled title_exp instructions

 

Parameters

Element

Description

Restrictions

status_id

title_exp

Alphanumeric expression of the button title

instructions

logical_expression

 

Examples

# Tunnel to the tax rule:
Subprog AS_VACBPR(VALEUR)
Variable char     VALEUR()
...
Call texte(11495,GBOUT1) From OBJDIV
Onkey 129 Titled GBOUT1 Call B1_VACBPR(zc) From AUTBPC1
End

Subprog B1_VACBPR(VALEUR)
Variable char     VALEUR()
Call OBJET("ADI",VALEUR,"1") From GOBJET
If mkstat=99: mkstat = 0: Elsif mkstat = 0: mkstat = 2: Endif
End

# Help button able to be activated on all fields:
Enable GSTAHLP
Global
Onkey GSTAHLP Titled mess(139,124,1) Call HELP From AHLP

 

Description and Comments

"Onkey" allows you to execute a process after performing a right-click on a field; this menu option is identified by its status.

If you use Global, the process linked to the right-click menu option can be executed from all fields.

If you use Local, the process linked to the right-click menu option can only be executed on one field.

If you specify neither Local, nor Global, Local is used by default.

 

Associated Errors

Error

Description

ERDIM (55)

Number of dimensions invalid

 

Associated Keywords

    Global - Local - Status


Contents