...

View Full Version : Convert String to Integer



mancerw
10-31-2003, 05:55 PM
this is my generated random number but i want to compare with my integer data....
everytime i compare it, i willl get the type mismatch

dim ticketLength,x,thisInt,k
ticketLength = 6
dim IntArr
IntArr = Array(1,2,3,4,5,6,7,8,9,0)
For x = 0 to ticketLength
RANDOMIZE
thisInt = (Int(((10 - 1) * Rnd) + 1))
totalInt = totalInt & IntArr(thisInt)
next
k = rsTicket.Fields("Ticket_no").value
if k = int(totalInt) then
.......

A1ien51
10-31-2003, 06:57 PM
See if this does the trick

hm = int(String)

Eric



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum