We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[67] Number Functions

Last post 04-28-2003 2:25 PM by loquin. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [67] Number Functions

    This thread is for discussions of Number Functions.

    • Post Points: 0
  • 04-01-2003 9:42 PM In reply to

    I made view 10000

    Anywho, the last page is a bit wasteful, don't you think?
    [edit] O_o I went there again and it had gone back to 9999! Hehe, I did it twice!
    • Post Points: 0
  • 04-28-2003 2:25 PM In reply to

    • loquin
    • Not Ranked
    • Joined on 04-28-2003
    • New Member
    • Points 5

    Incorrect Code

    Dim sNum As String
    sNum = "Year: 2000, date: 12"
    ' Text1 will contain 200012
    Text1.Text = Val(sNum)

    This code is flat-out wrong.

    The VAL function searches the source string, converting the string to a numeric value until it reaches the first non-numeric character. Since this example BEGINS with a non-numeric character, the returned value will be zero (0).
    • Post Points: 0
Page 1 of 1 (3 items)