number/text variable woes

Results 1 to 2 of 2

Thread: number/text variable woes

  1. #1
    Join Date
    Dec 1969

    Default number/text variable woes

    Is there a difference between calling a numberic variable like this?<BR><BR>=a<BR>and this?<BR>=(a)<BR><BR>I am having some problems with the asp calling any number between 20 and 99 greater than a number between 100 and 199 simply because 2 is greater and 1! I&#039m even using the format number tool, like this:<BR>&#060;%a = FormatNumber(request("to"),0)%&#062;&#060;%b = FormatNumber(request("count"),0)%&#062;<BR>Any thoughts?<BR><BR>Thanks<BR>Tom

  2. #2
    Join Date
    Dec 1969

    Default RE: number/text variable woes

    CInt() or CDbl() your text/numeric variables before comparison. format number doesn&#039t do the job<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