|
||||||
| Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
vb Code:
If it is not a number myNumber will equal 0.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
|
|||
|
But what if it is 0 ?
Why doesn't this work ? Code:
If Text1.Text <> Val(Text1.Text) Then
scl = 1 'if it's not a number , it's 1
ElseIf Text1.Text = Val(Text1.Text) Then
scl = Val(Text1.Text) 'if it's a number , even 0
End If
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Floating Point random number generator | Paradine | PHP Tutorials | 0 | 08-26-2007 02:09 PM |
| Number Cloning | Ronin | Java Help | 3 | 12-21-2006 07:23 AM |
| I need to generate a random number in PHP | dirkfirst | PHP Forum | 7 | 07-05-2006 09:58 PM |
| Number of Lines on a RichText Box | Lop | Managed C++ | 3 | 06-16-2006 05:19 PM |
| Number of files and directories in folder | dirkfirst | PHP Forum | 4 | 05-30-2006 10:06 AM |
| Xav | ........ | 1357.94 |
| MeTh0Dz|Reb0rn | ........ | 1081.85 |
| WingedPanther | ........ | 919.18 |
| marwex89 | ........ | 906.86 |
| morefood2001 | ........ | 903.18 |
| John | ........ | 902.37 |
| Brandon W | ........ | 789.89 |
| chili5 | ........ | 312.39 |
| Steve.L | ........ | 264.99 |
| dcs | ........ | 240.34 |
Goal: 100,000 Posts
Complete: 83%