If you run vb6 and in the immediate window type:
? Format$("0E-25", "00000") Or Format$("0B-25", "00000")
You get "00000" instead of "0E-25". If you pass in "0A-25" it works properly. I'm guessing this has something to do with the inherent casting that VB does and it considers these to be some kind of exponential or binary number. Anybody have any thoughts on a way around this? I'm using this function to ensure that what ever value is passed in that it is padded with zero's up to 5 zeros. My guess is I will have to write my own "PadZeros" function to get around this.
Thanks
dbl
? Format$("0E-25", "00000") Or Format$("0B-25", "00000")
You get "00000" instead of "0E-25". If you pass in "0A-25" it works properly. I'm guessing this has something to do with the inherent casting that VB does and it considers these to be some kind of exponential or binary number. Anybody have any thoughts on a way around this? I'm using this function to ensure that what ever value is passed in that it is padded with zero's up to 5 zeros. My guess is I will have to write my own "PadZeros" function to get around this.
Thanks
dbl