Forum Moderators: open

Message Too Old, No Replies

Yet another code question

How to change this code....

         

Blelisa

2:44 pm on Sep 21, 2005 (gmt 0)

10+ Year Member



to give me a numberic output instead of a alpha?

<%
Dim intCounter, intDecimal, strTicket

For intCounter = 1 To 6
Randomize
intDecimal = Int((26 * Rnd) + 1) + 64

strTicket = strTicket & Chr(intDecimal)

Next
%>

Also if I remove the word randomize, will it give me the numbers in consecutive order?

chronic

3:08 pm on Sep 21, 2005 (gmt 0)

10+ Year Member



...
Next
%>
... becomes ...

Next

strTicket = int(strTicket)
%>
...

Blelisa

7:46 pm on Sep 21, 2005 (gmt 0)

10+ Year Member



I tried that and it did not work.

mrMister

10:51 pm on Sep 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



strTicket = strTicket & cstr(intDecimal)