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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top