473,698 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

check whether a given number is an integer

Hi,

How to check whether a given number is an integer

Thanks,

Reddy
Nov 18 '05 #1
2 2707
how about using the ranger validation control or regular expression
validation control

--

Regards,

HD
"Reddy" <an********@NO. JUNK.MAIL> wrote in message
news:ex******** ********@tk2msf tngp13.phx.gbl. ..
Hi,

How to check whether a given number is an integer

Thanks,

Reddy

Nov 18 '05 #2
Hi,

I am trying to validate whether the entered text is an integer or not on the
server side. I am using a custom validator because I need validate this
control's text when one of the items in the dropdown menu is selected

Thanks,

Reddy
"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message
news:ui******** ******@tk2msftn gp13.phx.gbl...
how about using the ranger validation control or regular expression
validation control

--

Regards,

HD
"Reddy" <an********@NO. JUNK.MAIL> wrote in message
news:ex******** ********@tk2msf tngp13.phx.gbl. ..
Hi,

How to check whether a given number is an integer

Thanks,

Reddy


Nov 18 '05 #3

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

Similar topics

3
3931
by: Amy | last post by:
Hi, I have 6 If Then Else statements I was supposed to write. I did so but I know that they have to be wrong because they all look the same. Could someone take a look at them and point me in the right direction about what I am not doing correctly? 1.. Write an If Then Else statement that displays the string "Pontiac" in the CarMakeLabel control if the CarTextBox control contains the string "Grand Am" (in any case).
4
1665
by: Craig G | last post by:
i have a small routine which i used in VB6 to check whether or not a field is off numeric input but im having a problem when trying to change this over to .NET what do i use instead of KeyAscii = 0 at the end of the routine? or how can i modify it to work in .NET?? Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress IsNumericInput(TextBox1, 2,...
5
11874
by: Eli | last post by:
Hi, I want to check whether a value is a scalar. A scalar can be: - None (null) - string - number (integer, float) - boolean How can I validate a value is one of these types? I care about the value only, and not its class methods.
6
2204
by: tommaso.gastaldi | last post by:
Hi, does anybody know a speedy analog of IsNumeric() to check for strings/chars. I would like to check if an Object can be treated as a string before using a Cstr(), clearly avoiding the time and resource consuming Try... Catch, which in iterative processing is totally unacceptable. -tom
2
1615
by: NEMA | last post by:
How can i check the String letters? i have a textbox and will filled with numbers. i want to check if the number contain a '0' in font of the numbers, e.g. '090',i would like to cut the 1st '0', that will change to '90'. and i want to check whether it has a space there and return an error message. e.g. '0 9 0', then it will return an error. i really dont know how to do it? please give me some guidliance, thanks.
5
15616
by: André | last post by:
Hello, I need to know whether the result of a division is a integer or not. dim x =60 dim y = 3 if x/y is a integer then .... else ....
44
10201
by: user | last post by:
Hi, Let's say I have 2 dates in the b/m format: Date 1 and date 2 How do I check whether Date2 is later than Date 1? Date1. 21-Nov-2006 09:00:00 PM
7
2869
by: geliangwei | last post by:
The 32-bit float number is defined by IEEE 754. Given a float variable, f, how to check whether each of the 32 bits is '1' or '0'? One possible solution is access f as a 32-bit int. That is define an integer i that accesses the same memory address where f is stored. Then, I can right shift i by one bit for 32 times and check whether the least significant bit is '1' or '0'. But how to let i and f share the same memory address? Thank...
10
4533
by: Matthias | last post by:
Dear newsgroup. I want to write a template function which accepts either integer or floating point numbers. If a certain result is not a whole number and if the template parameter is an integer, it should return false, but it should work normally if the parameter is a float. To illustrate this, I attached a minimal example.
0
8604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9028
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7728
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.