SetUnicode Method
9.6A, PLBCMP GUI Only
The SetUnicode method transfers raw Unicode (UTF-16) data directly to an EDITTEXT or RICHEDITTEXT object. The method uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. An EDITTEXT or RICHEDITTEXT object that is accessed.
return
Optional. A Numeric variable that returns the results for the execution of the method.
string
Required. A Character String variable that contains the Unicode (UTF-16) data to be transferred to the EDITTEXT object.
flags
Optional. A Numeric Variable or decimal number that controls operational behaviors for this method.
Flags Affected: EOS, OVER, ZERO
Note the following:
The ZERO flag is set when the {return} value is zero.
The OVER flag is set if the value returned is too big to be stored into the {return} variable.
The EOS flag is always cleared.
The bit mask definitions for the {flags} parameter are currently not defined.
The CONVERTUTF instruction performs UTF conversions to and from UTF-16 formatted data strings.
The {return} Numeric variable is set to a value of zero when data has been transferred to the object. If there is no data transferred using this method, the {result} returns a value of one.
This method ignores a leading Unicode identifier of '0xFFFE' or '0xFEFF' in the first two bytes of the input data. (9.6C)
Support for the RICHEDITTEXT objects was added in 9.6C.
The 'SetUnicode' method cannot set the object text when the object has the READONLY propertyenabled. In this case, the user program must set the object READONLY property off before the Unicode string can be transferred to the object.
See Also: GetUnicode Method, Method Syntax, EDITTEXT Methods, RICHEDITTEXT Methods
![]() |