--- In [email protected], Boy band <[EMAIL PROTECTED]> wrote:
> 
> hi... friends
> I would like to ask some thing about vb programming :
>  1. How can I make some randomize number with VB (ex :
>  for 

     This routine generates an 8 character password made up of alpha 
numeric characters:

====

Private Function GetPassword() As String

Randomize

For X = 1 To 8
redo:
    jj = CInt(CLng(Rnd(90) * 100))
    If (jj < 48 Or jj > 90) Or (jj >= 58 And jj <= 64) Then GoTo redo
        Char = Chr(jj): PW = PW & Char
            
            
Next X
GetPassword = PW

End Function






'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to