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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format textbox

Status
Not open for further replies.

M626

Programmer
Mar 13, 2002
299
I have two textbox equal to eachother....

text1 = text2

except I need for text2 to always being 6 digits

so if i enter 23 in text 1

text2 should display 000023 or 1 should display 000001
any ideas?
 

[tt]
text2.text = format(text1.text, "000000")
[/tt]

good luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top