I have a strange result coming from some big math & have no clue as to why I'm getting a different answer from vb.net vs python.
Here are the quick snippets & results:
VB.NET
Dim MSB As UInt32 = 3067297518
Dim LSB As UInt32 = 1439785590
Dim sqln As UInt64 = MSB * (2 ^ 32) + LSB
Python:
sqln = msb * (2 ** 32) + lsb
Python Result: 13173942528351756918
VB RESULT: 13173942528351756288
Note: I also tries declaring sqln as a ULong and a Double (same answer) The MSB and LSB are a match in both debuggers - !! ??
Any Ideas? =+ My thanks
Outstanding Jon - very eloquent & it works! One little follow up could you suggest a fix for the final piece? I believe the same sort of thing is happening even though you got my sqln straightened out :)
python says: = bdntyxtax2smq
vb.net says: = bfpuzytbx3s00
VB.NET
Dim sqlid As String = ""
Dim alphabet As String = "0123456789abcdfghjkmnpqrstuvwxyz"
For iCount = 0 To 12
sqlid = alphabet((sqln / (32 ^ iCount)) Mod 32) + sqlid
Next
Python:
for i in range(0, 13):
sqlid = alphabet[(sqln / (32 ** i)) % 32] + sqlid