Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

INT to base 31 and back

$
0
0
INT to base 31 and back
FoxPro Programming
INT to base 31 and back
08/06/2012
02:29:41 PM
3KF0V2JET Show this entire thread in new window
Gratar Image based on email address
From:
Michael Hogan
To:
All 
Attachments:
None
I'm needing to convert to and from an INT value to a mix of characters [0123456789ABCDEFGHJKLQRSTUVWXYZ] (note that a few letters are missing to prevent confusion - oh and I, for example).

I'm thinking I just want to do some form of Base31 conversion (there are a total of 31 characters) but I cannot find an easy way of doing this in VFP. I suppose I could use AT() to assign a value to each character but at that point I'm into unfamiliar mathematics.

Has anyone already tackled this kind of problem?


Viewing all articles
Browse latest Browse all 10393

Trending Articles