deadyankee
Technical User
Hi all,
I have three text boxes in my form which allocate three different parts of an ID automatically. The three parts are numeric and have the following format:
Part 1: 1234 (4 characters)
Part 2: 123 (3 characters)
Part 3: 123 (3 characters)
If the number of characters are less than this, then they are padded with leading zeros. This is easy to achieve by changing the format property of each of the text boxes. However, these three parts then need to be put together connected by hyphens to allocate a new full ID but when I do this they lose the leading zeros, e.g. 0124 001 002 in the three text boxes becomes 124-1-2. My problem is that I need to retain the leading zeros in the final ID.
Any suggestions gratefully recieved!
I have three text boxes in my form which allocate three different parts of an ID automatically. The three parts are numeric and have the following format:
Part 1: 1234 (4 characters)
Part 2: 123 (3 characters)
Part 3: 123 (3 characters)
If the number of characters are less than this, then they are padded with leading zeros. This is easy to achieve by changing the format property of each of the text boxes. However, these three parts then need to be put together connected by hyphens to allocate a new full ID but when I do this they lose the leading zeros, e.g. 0124 001 002 in the three text boxes becomes 124-1-2. My problem is that I need to retain the leading zeros in the final ID.
Any suggestions gratefully recieved!