I'm trying to create an alphanumeric sequence. I have a single table with 200,000 records. I want to add a alphanumeric sequence consisting of no more than 3 alpha characters and 4 numeric characters.
I've searched the forum to see if I could find something in that regards but I couldn't.
Example on a field called seq1:
1A1A1A1
1A1A1A2
1A1A1A3, etc
I've tried using sys(2015) but it gives me too many alpha characters. My client insists on only 3 alpha characters and a string no longer than 7 characters. The order of the characters doesn't matter. The 3 alphas could be in the middle of the string. The starting order doesn't matter either. The sequence can start with a 1 or 2, etc.
This is what I found in the forums:
REPLACE seq1 WITH SUBSTR(SYS(2015),1) ALL
Are there any commands that would create such a sequence or if someone could give some pointers. I'm using VFP 9.
Any help is highly appreciated.
I've searched the forum to see if I could find something in that regards but I couldn't.
Example on a field called seq1:
1A1A1A1
1A1A1A2
1A1A1A3, etc
I've tried using sys(2015) but it gives me too many alpha characters. My client insists on only 3 alpha characters and a string no longer than 7 characters. The order of the characters doesn't matter. The 3 alphas could be in the middle of the string. The starting order doesn't matter either. The sequence can start with a 1 or 2, etc.
This is what I found in the forums:
REPLACE seq1 WITH SUBSTR(SYS(2015),1) ALL
Are there any commands that would create such a sequence or if someone could give some pointers. I'm using VFP 9.
Any help is highly appreciated.