Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incrementing Alphabet
Message
 
To
28/04/1998 19:32:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00094857
Message ID:
00096465
Views:
18
>>Today's Quiz. I want to maximize the number of choices I can assign to a group of records so I choose to use the alphabet through a three character field. How do I programatically increment the next assigned alphabetic character (i.e. AAA, AAB, AAC. .. AAZ then ABA, ABB, etc.)
>>
>>do I do this with ascii character (chr()) assignments or is there an easier way?
>>
>you got several answers on how to increment a character field so I won't go into that
>but a point to think about
>if you are using VFP you may want to consider Integer fields
>they are 4 bytes long and give you 2147483648 positive option or twice from that including negative numbers
>the advantage this is that this is the fastest data type (for joins etc.)
>
>Arnon

That is a neat idea but after I have built this table with integer numbers, how does a user know what number to next assign when they want to add another choice to the file through the program?

TIA,

Bill
CySolutions, Medical Information Technology
You're only as good as your last
success, so . . .If it works. . .don't fix it!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform