Hi Guys,

I have some ASCII arrays of [5] left justified and I need to convert them to Longs. I'm not sure how to go about doing that and I think the left justification complicates things. Any suggestions?

Here are a few examples..

mydata[0] = 6 (h36)
mydata[1] = 4 (h34)
mydata[2] = 2 (h32)
mydata[3] = 3 (h33)
mydata[4] = space character (h20)

So the number to go into my long Var would be 6423

mydata[0] = 3 (h33)
mydata[1] = 7 (h37)
mydata[2] = 1 (h31)
mydata[3] = space character (h20)
mydata[4] = space character (h20)

would be 371

Thanks in advance!
TR