%TRIM Function

%TRIM built-in function returns the given string less any leading and trailing blanks.

%TRIM (String) 
        

Parameters

String

Required. Can be character, graphic, or UCS-2 data. When specified as a parameter for a definition specification keyword, the string parameter must be a constant.

Example


BEGSR Trim_Ex
    DclConst Name(String) Value(" This is a test string. ")
    ioField1.Text = %Trim (String)
ENDSR

See Also

Built-in Function Overview

%TRIML Function

%TRIMR Function