preceding zero truncated

  • Thread starter Thread starter saengpole
  • Start date Start date
S

saengpole

Hi all,

I'm a newbie in VB2005. I have a trouble getting text from textbox and
combobox.SelectedValue. The values reside on two controls are text.
But they are in numeric text eg. product code '006700'. When I got
these texts, the preceding zero was truncated to '6700'. How can I get
the text '006700'.

Thank you in advance.
Krung
 
I'm a newbie in VB2005. I have a trouble getting text from textbox and
combobox.SelectedValue. The values reside on two controls are text.
But they are in numeric text eg. product code '006700'. When I got
these texts, the preceding zero was truncated to '6700'. How can I get
the text '006700'.

By getting it as a string and keep it that way. If you convert it to a
number, leading zeroes will be lost.
 
Back
Top