troubleshooting Question

converting 2 int32 numbers into int64

Avatar of mackbest
mackbest asked on
Visual Basic Classic
6 Comments2 Solutions771 ViewsLast Modified:
This is a trade number we are given from an exchange, as you can see it's 18-digits: 819180418000200000

Now for some reason (to do with int64) our developers can't store that trade number directly in 1 field of a table in the database. hence it's broken into 2 and stored as 2 numbers, high & low:

TransOrderNumLow: -2035937983
TransOrderNumHigh: 190730303

My question is how do i get these 2 numbers (low & high) and convert it back into the original number? I'm not a developer so please try and explain as much as possible so i can take it to my developer.

Also it has to be in Visual Basic 6.

Hope i've explained my problem clearly. basically my developer doesn't know how to take the low number (-2035937983) + high number (190730303) and get the whole number (819180418000200000).

here's another example:

trade number: 819180416000200000
low: 964062019
High: 190730304
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros