SendKey Method

RAMP-NL

SendKey Method


Emulates the pressing of a function key.

Syntax

Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)

#myscreen_wrapper.SendKey Key(#myscreen_wrapper.<key property>)

Parameters

Key

Property – Required

The property of #myscreen_wrapper that resolves to the desired key.

For a list of these properties See the SENDKEY Names in Function Key Names for SENDKEY Function in lansa049.chm.

 

Return Value

ReturnScreen

Char 256 – Optional

String that contains the name of the screen wrapper 5250 screen after the key was sent.

Examples

Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)

#myscreen_wrapper.Sendkey Key(#myscreen_wrapper.KeyEnter)