Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alphabetic numbering system
Message
From
09/01/1999 06:40:18
 
 
To
08/01/1999 12:44:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174074
Message ID:
00174322
Views:
24
I would store the the data as an integer and just convert to base26 for display purposes.

If you want I can send you a routin to do it, it's not difficult just a few lines of code.

Peter


>>Do you have a copy of Codebook? I'm pretty sure there's a Base36 function in there that could be adapted to what you want.
>
>Yeah, I do. I have looked in the book, because I thought I remembered something like that, but I didn't find it. I also did a search of my codebook projects (using my nifty SearchString tool :-)) and came up with nothing. Do you remember what the function is called?
>
>
>>Otherwise just take the rightmost char, use asc() to convert it to a number, increment it, if goes over "Z" set it to A and increment the next digit to the left.
>
>I started laying out logic to do exactly this and it got pretty hairy. That's why I was looking for some other creatice solutions...
>
>Thanks for your help.
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform