PASSPORT Knowledge Base
Macros

Date Published: April 23, 2004
Date Updated: February 27, 2008

Title

Erase Data in Current Field then Move to Next Field

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

Users need the ability to hit a single key on the keyboard that will erase all the data in the current field, then move to the next unprotected field on the screen.

Solution

This can be accomplished by recording or writing a macro, then assigning the new macro to the appropriate keyboard key.

Example

Below is a sample macro:

 

Sub ZMain()

Dim Text, ret

SendHostKeys ("<ERASEEOF>")

SendHostKeys ("<TAB>")

End Sub

More Information

Keywords

erase, clear, field, data, move, unprotected, key