Home > ASP Development > simple one

simple one



hi,



i have a number stored in a variable strnumber



i want to check if this strnumber is between 83 and less then 99 then append 19 before it



and anything from 00 to 83 append 20 before it



so here is the code


Code:



if strnumber= 83 and strnumber > 99 then
strnumber="19" & strchop
elseif strnumber >= 00 then
strnumber="20" & strchop
End if

c




i want between 83 and 99



any clue

thanks,



belord

    
Guest



Code:



if strnumber >= 00 and strnumber < 83 then
strnumber="20" & strchop
elseif strnumber >= 83 and strnumber <= 99 then
strnumber="19" & strchop
End if



Was this answer helpful ? Yes No   
Guest



Code:


if strnumber= 83 and  strnumber > 99  then
			 strnumber=CInt(19 & strchop)
		elseif strnumber >= 00  then
			 strnumber=CInt(20 & strchop)
		 End if




Hi Belord, is this working?
in any case, just use the CInt() or CDbl() functions.

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved