HIDE_CURRENT_FORM Function

RAMP-NL

HIDE_CURRENT_FORM Function


Hides the current form and displays an optional message.

This function is used to hide the current 5250 screen from the users and to prevent them from manually interacting with it.

For example, a script that performed a 5250 sub-file search and failed to find an expected product number might do this:

 

HIDE_CURRENT_FORM("Product number", strProductNumber, "could not be found. You may not be authorized to view it.");

 

This presents an error message to the user and hides the current 5250 form, which can then only be interacted with by other script controlled actions.         

Syntax

HIDE_CURRENT_FORM([sMessageText1] [, sMessageText2] ... [, sMessageTextN])

Parameters

sMessageText1

Optional. String that contains the first message to be issued. 

sMessageText2 -> N

Optional. Strings that are to be concatenated with the previous message text (a separator space is added). 

Return Value

None

Example

 

HIDE_CURRENT_FORM("Inventory item ", objListManager.AKey1[0] , "was deleted.");