How can I check a value to see if it an integer? Is there an integrated function to check this that will return true or false?
would help if you said which language, but <BR><BR>IsNumeric() for VBscript<BR><BR>isNaN for JScript<BR><BR>should do the trick
ASP....got it, thanx.
isnumeric(<number>)<BR>will return True or false for all numbers e.g. 5.7<BR>INT() will truncate to an integer
a language. It's a technology.<BR><BR><BR>VBScript is the most commonly used language for ASP, but you could use JScript or Python or ....<BR><BR>
right? Or am I missing the point?<BR><BR>if x = (Int(x)) Then<BR> 'it's an integer
If vartype(variable) = vbLong Then<BR> 'it's an integer<BR><BR><BR><BR>VBScript will always use Long values when testing, I think...