473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Test varable for numeric value ??

How to I test a varable to see if it contains a number and not a text value
??

I want to use this to detect if people have edited my get strings in the URL
field of the browser, before it gets send to the next page

I am sure it is simple just forgot, had a search on yahoo and could not find
anything...

Cheers

Graham


Jul 19 '05 #1
2 4876
What language?

In VBScript you would use: IsNumeric()

You can get the Windows Script documentation here:
http://www.microsoft.com/downloads/d...displaylang=en
(has VBScript and JScript in it - use the Index to get functions)

Cheers
Ken
"Graham Mattingley" <gr****@technocom.com> wrote in message
news:bm*******************@news.demon.co.uk...
: How to I test a varable to see if it contains a number and not a text
value
: ??
:
: I want to use this to detect if people have edited my get strings in the
URL
: field of the browser, before it gets send to the next page
:
: I am sure it is simple just forgot, had a search on yahoo and could not
find
: anything...
Jul 19 '05 #2
and in JavaScript use: IsNaN() [is Not a number]
"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:uM**************@TK2MSFTNGP10.phx.gbl...
What language?

In VBScript you would use: IsNumeric()

You can get the Windows Script documentation here:
http://www.microsoft.com/downloads/d...displaylang=en (has VBScript and JScript in it - use the Index to get functions)

Cheers
Ken
"Graham Mattingley" <gr****@technocom.com> wrote in message
news:bm*******************@news.demon.co.uk...
: How to I test a varable to see if it contains a number and not a text
value
: ??
:
: I want to use this to detect if people have edited my get strings in the
URL
: field of the browser, before it gets send to the next page
:
: I am sure it is simple just forgot, had a search on yahoo and could not
find
: anything...

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Randell D. | last post by:
Folks, Ever since reading an interesting article in Linux Format on PHP whereby suggested code writing was made that could enhance performance on a server, I've started testing various bits of...
6
by: Kyler Laird | last post by:
I'm trying to discover if there's an efficient way to determine if all of the values of a Numeric array are the same. In C, I would search from the second value, checking each against the first...
0
by: Jussi Mononen | last post by:
Hi, I'm having problems to successfully execute the test scripts on a Compaq host ( OSF1 tr51bdev V5.1 2650 alpha ). Almost all tests end up with the following error message "PARI: *** ...
10
by: Randell D. | last post by:
Folks, I have a box that expects numeric input - I'd like to test for it (yeah, I'll have service side checks too but also want client checks). How can I test that my input is numeric - and...
6
by: M.A. Oude Kotte | last post by:
Hi All, I hope this is the correct mailing list for this question. But neither postgresql.org nor google could help me out on this subject. I did find one disturbing topic on the mailing list...
1
by: Gary | last post by:
Open the web browser at the same time, the session varable in the second broswer is disappeared. All The Session Varable is declared in the webform page load.
2
by: Suresh Kumar Rathod | last post by:
HI friends... Can any body give reason / logic behind static varable lifetime through out the process execution. i.e how does compiler maintains the static varable life through out the process...
5
by: Henrootje | last post by:
Is there a way to test wether a string contains only numbers? I have a form with some (29) comboboxes. One combobox is bound to a table with only numeric values whereas another is bound to a...
13
by: Daniel Klein | last post by:
I have a class constructor that accepts an array as the only argument. The catch is that the array MUST be an 'integer-indexed' array, not an 'associative' array, because the index position has...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.