Version 6.3.8 for Windows
 —  Dialog Component Reference  —

INPUT-SET-TEXT Action

This document covers the following topics:


Description

Replaces text in an Edit Area Control or in an Input Field Control (from position to position).

Top of page

Parameters

Name/Data Type Explanation
HANDLE OF EDITAREA or

INPUTFIELD

Input

Specifies an Edit Area Control or an Input Field Control.

Position-from (I4) Input

Position of the first character to be replaced. If you specify "0" the text is appended to the text already present in the dialog element.

Position-to (I4) Input/Output

Position of the last character to be replaced. If you specify "0", the index of the last character in the dialog element will be returned.

Text length (I4) Input/Output

The number of characters to be inserted before Position-to starting from the first character of "Line text". If you specify "-1", the "Line text" string will be inserted into the new line, trailing blanks will be removed and the number of copied characters will be returned.

Text (A253) Input

This text string replaces the old one.

Response (I4) Output

Natural error (if applicable).

Example:

   #POSITION-FROM := 8 
   #POSITION-TO := 24 
   #TEXT-LENGTH := 16 
   #TEXT := 'Insert this text' 
   PROCESS GUI ACTION INPUT-SET-TEXT WITH #EA-1 #POSITION-FROM #POSITION-TO 
   #TEXT-LENGTH #TEXT GIVING #RESPONSE 

Top of page