Results 1 to 3 of 3

Thread: text field value to be converted to double with 2 decimal places

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2005
    Posts
    18

    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?

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  3. #3
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: text field value to be converted to double with 2 decimal places

    does your textbox bound to your data?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width