+ Reply to Thread
Results 1 to 3 of 3

convert textbox value from string to either single or double numeric data type

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    convert textbox value from string to either single or double numeric data type

    I have a form that takes input from the user. Its a textbox so the value is a string. But the input from the user is actually a real number. Have not decided on the actual data type as yet but i was thinking either single or double data type.

    the issue is how to convert this text box string to one of these types.............any ideas?

    i know to convert string to
    integer i use "Val"
    Long i use "Clng"

    not sure about single or double data types.
    Last edited by welchs101; 06-08-2011 at 06:40 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: convert textbox value from string to either single or double numeric data type

    Val works to convert to non-integers.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: convert textbox value from string to either single or double numeric data type

    thanks for the info.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1