Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hashing alphanumeric string...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00829843
Message ID:
00830213
Views:
19
>I am looking for a way to convert alphanumeric string to a integer. This will be use to index a primary key on a table that have two character fields as unique ID.
>
>Ex: FldFloor = "001"
>    FldRoom  = "BT007"
>
>Any one done a function that converts the string "001BT007" into a integer?

You could run a CRC algorithm on it. You would have a probability of uniqueness but not 100% though. You would easily be able to account for collision though.
Brian Seekford
Seekford Solutions, Inc.
http://www.SeekfordSolutions.com
Internet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!
Previous
Reply
Map
View

Click here to load this message in the networking platform