SMART datagrid v.1 > Classes > DataField

Back  Forward

DataLudi.DataField.booleanFormat  property

The format string which is used when loading CSV text to data set and converting the value of nonempty string to Boolean format in the field of which dataType is ValueType.BOOLEAN

If do not specify this property value, booleanFormat of Data Set which belongs to this field will be used. If do not specify both, "false,f,0:true,t,1:0" format will be used by default. 

In the first node which is separated by colon(':'), it will separate the values which can be interpreted as false by comma, and in the second node, it will contain the values which can be interpreted as true. In the third node, if need to be case sensitive, it will set as 1 or 0

Defaults to null.

Getter
function booleanFormat(): String
Setter
function setBooleanFormat(value: String)
Code -1
    var field = dataSet.getFieldIndexEx('booleanField');
    field.setBooleanFormat("1,false:2,true:0");
See Also
datetimeFormat
DataSet.booleanFormat
Examples
Boolean Value