stripattributes
Remove character attributes, frames, and rulers from Source and put the result in Target.
stripattributes Source, Target
Example:
stripattributes MYFIELD, EDITBOX
Parameters
Source, Target—string, or a field (or indirect reference to a field), a variable, or a function that evaluates to a string.
Return Values
Note: The $status values can be logically OR'd to determine a combination of the results.
Value | Meaning |
---|---|
0
|
Nothing stripped |
1
|
Attributes stripped. |
4
|
Frames stripped. |
8
|
Rulers stripped. |
Use
Allowed in all component types.
Description
stripattributes removes character attributes (bold, italic, and underline), frames, and rulers from Source and puts the result in Target.
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.
Using stripattributes
The following ProcScript example shows how character attributes are stripped from field UNIFIELD, so the text can be used in field EDITBOX:
MYFIELD = "aaabbb" stripattributes MYFIELD, EDITBOX ; EDITBOX contains "aaabbb" and the value of $status is 1.