Hi all,
I have text field in a table that must have six characters, which are usually but not always numbers. An example of the standard format is 088154. The first digit is necessary, and in most cases is a zero.
My problem starts when I import text from a tab delimeted text file. The data is being imported without the zero as first digit.
I need to read the text field and, if the length of the string is less than 6 characters, add a zero before the other 5 characters.
Hope this is clear!!
As I have no experience with strings (yet - I've just bought the developers handbook and am about to jump into it!), can anyone point me in the right direction of how to deal with this problem?
Thanks,
Owen
I have text field in a table that must have six characters, which are usually but not always numbers. An example of the standard format is 088154. The first digit is necessary, and in most cases is a zero.
My problem starts when I import text from a tab delimeted text file. The data is being imported without the zero as first digit.
I need to read the text field and, if the length of the string is less than 6 characters, add a zero before the other 5 characters.
Hope this is clear!!
As I have no experience with strings (yet - I've just bought the developers handbook and am about to jump into it!), can anyone point me in the right direction of how to deal with this problem?
Thanks,
Owen