Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 22nd, 2007, 01:04 PM
Registered User
Join Date: Jun 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default IsNumeric Bug

I have implemented my first VB.Net 2005 application and it works fine on my machine but on another machine the IsNumeric function is return a false when it should be returning a true.

Common.UserLevel = 0

If Not IsNumeric(Common.UserLevel) Then
   IsUser = False
End If

Does anyone know of a reason why IsNumeric is working on one machine but not on another?

Reply With Quote
  #2 (permalink)  
Old June 26th, 2007, 06:55 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

You need to examine the value of Common.UserLevel.

This seems to be overly verbose code, BTW.
    IsUser = IsNumeric(Common.UserLevel)
seems like it would accomplish the same thing. (The code you offered only changes IsUser when IsNumeric() is False, but the apparent desire is to store the state of InNumeric(Common.UserLevel).)
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IsNumeric Query rsm42 ASP.NET 1.0 and 1.1 Basics 3 June 13th, 2007 02:40 PM
Bug or no to bug learning C using VS.Net to compil tesh All Other Wrox Books 0 February 14th, 2007 01:06 PM
IsNumeric ? Berggreen C# 1 June 21st, 2006 07:05 PM
ISNUMERIC function ram2098 SQL Server 2000 2 November 3rd, 2003 03:58 PM
Bug happens guoqi BOOK: ASP.NET Website Programming Problem-Design-Solution 0 October 13th, 2003 01:35 PM

All times are GMT -4. The time now is 06:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.