text field value to be converted to double with 2 decimal places
Hi,
I have a text field and would like to convert this to a double value with 2 decimal places. I have this field defined as a variant - is this ok or should it be defined as double?
Re: text field value to be converted to double with 2 decimal places
If you might put alphanumeric data into the textbox, then it should be String, but if it is only going to be numberic, then you should use Double.
You can use this to format it to two decimal places.
Re: text field value to be converted to double with 2 decimal places
does your textbox bound to your data?