Beruflich Dokumente
Kultur Dokumente
com
Public Function CreateID(nMinLen, nMaxLen)
Dim i
Dim nLen
Dim sPwd
Dim sChar
sPwd = ""
Do
sChar = RndChar
Loop While (sChar = "o") Or (sChar = "O") Or (sChar = "l") sPwd = sPwd & sChar
Next
strID = sPwd
CreateID = sPwd
End If
''
''
Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25
Case 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 ' Returns a digit 0-9
nChar = nVal + 22
Case 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 5 4, 55, 56, 57,
58, 59, 60, 61
End Select
RndChar = Chr(nChar)
End Function
Do
x = RndChar y = y & x
For QTP Realtime Scripts, visit www.ramupalanki.com
Loop until len(y) = 5 CreateDesciption = y End Function
For QTP Realtime Scripts, visit www.ramupalanki.com
Dim strCon,oCon,oRs
oCon.Open strCon
ExitTestIteration
End if
Do
checkid = false
Exit Do
End If
oRs.MoveNext
If oRs.EOF Then
checkid = True
End If
oCon.Close
End Function