Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables and memory space problem

Status
Not open for further replies.

n2ckb

Programmer
Jun 8, 2001
65
GB
Hi Guys,

I have written a program that creates a huge number of variables, which I currently save in a string array. separating numbers like so 01*10*06*03
(Each number represents a different individual)

Strings take up a lot more memory than number-based ones, so my question is if i have 10 two digit numbers in a string that I want to separate when required, is there any way to store the info in a less memory dependent variable, and then extract the info when required?

Thanks in advance

N2CKB
 
Unless I'm wildly out on what you want I would store the numbers in an integer array. Then when retrieving the number do a Format(arrayName(x), "0#") on it to make 01, etc...
You could also dynamically chnage the size of the array depending on how many numbers you have...

Hope that helps...
Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top