$stripattributes

Return the result of removing character attributes, frames, and rulers from a string.

$stripattributes (String)

Parameters

Parameters
Parameter Data Type Description
String String String, field, variable, or a function that evaluates to a string.

Return Values

String with character attributes, frames, and ruler removed.

Use

Allowed in all component types.

Description

The $stripattributes function returns the result of removing character attributes (bold, italic, and underline), frames, and rulers from String.

Note:  Characters that are not known in the target character set are not stripped from the string, unlike the behavior in Uniface 8 in which they were stripped.

Stripping Character Attributes from a Field

The following ProcScript example shows how you can strip character attributes from a Unifield, so the text can be used in field EDITBOX:

MYFIELD = "aaabbb"
EDITBOX = $stripattributes(MYFIELD) ; EDITBOX contains "aaabbb"
History
Version Change
9.1.01 Characters that are not known in the target character set are not stripped from the string (in contrast to Uniface 8).

Related Topics