VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Almost Unique ID

by alexK (9 Submissions)
Category: VB function enhancement
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Fri 5th February 2021
Rating: (1 Votes)

Generates an alpha based ID number.

Rate Almost Unique ID

Function AlmostUniqueID()
  Randomize 
  for iCtr = 1 to 8
sChar = Chr(Int((90 - 65 + 1) * Rnd) + 65)
   sID = sID & sChar
  Next
AlmostUniqueID = sID
End Function

Download this snippet    Add to My Saved Code

Almost Unique ID Comments

No comments have been posted about Almost Unique ID. Why not be the first to post a comment about Almost Unique ID.

Post your comment

Subject:
Message:
0/1000 characters