Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2007, 01:04 PM
Registered User
 
Join Date: Jun 2007
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?

 
Old June 26th, 2007, 06:55 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

You need to examine the value of Common.UserLevel.

This seems to be overly verbose code, BTW.
Code:
    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).)





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.