Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Data binding classes > DataType.setTypedValue() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
dataTypeObject.setTypedValue(newTypedValue)
newTypedValue A TypedValue object value to set in the field.
For more information about TypedValue objects, see TypedValue class.
An array of strings describing any errors that occurred while attempting to set the new value. Errors can occur under any of the following conditions:
"abc" cannot be converted to Number).|
NOTE |
|
The actual text of an error message varies depending on the data type, formatters, and encoders that are defined in the field's schema. |
Method; sets a new value in the field, using the information in the field's schema to process the field. This method behaves similarly to DataType.setAnyTypedValue(), except that it doesn't try as hard to convert the data to an acceptable data type. For more information, see DataType.setAnyTypedValue().
The following example creates a new TypedValue object (a Boolean value), and then assigns that value to a DataType object named field. Any errors that occur are assigned to the errors array.
import mx.data.binding.*; var bool:TypedValue = new TypedValue (true, "Boolean"); var errors: Array = field.setTypedValue (bool);
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00002704.html