VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

(Updated Again) Check for duplicates in an array

Arthur Chaparyan3  (2 Submissions)   String Manipulation   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

I've been looking around for this code and no one could provide it. So finally I wrote it. It checks for duplicates in an array and returns true if there are any.

Inputs
The only input required is the array

Assumes
You could use this code to generate lottery numbers or check if more than one record of the same name is present...

Returns
Returns True if there are any duplicates and false otherwise

Side Effects
If used with LARGE (and I mean LARGE as in arrays with hundreds or thousands of items) it will slow down. USE WITH ONE DIMENSIONAL ARRAYS

Rate (Updated Again) Check for duplicates in an array (9(9 Vote))
(Updated Again) Check for duplicates in an array.bas

(Updated Again) Check for duplicates in an array Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters