Number Types

Results 1 to 2 of 2

Thread: Number Types

  1. #1
    Peter Piotti Guest

    Default Number Types

    I need a component or components that will check an expression or variable and return whether it is an integer, whole number, decimal, etc. Something like IsNumeric, but I need to know more. I tried: <BR>If IsNumeric then<BR> If CInt(var) &#060;&#062; CDbl(var) then<BR> Response.Write "Not an integer"<BR> End If<BR>End If<BR>-but this blows up with an overflow if I try to CInt on an Integer. Any help is appreciated.

  2. #2
    Join Date
    Dec 1969

    Default RE: Number Types

    Using TypeName() would probably be the way to go - just from VBScript<BR><BR>VBScript language reference available to the left of this page<BR><BR>j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts