I have always used a field for phone numbers with chr(12) as the width, so data is stored as such: 313-555-1212
I moved my data to SQL server (still experimenting) and i decided to make the field char(10), and saved it like this: 3135551212 (basically saving 2 characters per record..)
Now on the Grid, i list all the phone number search and i want to display the data like this: 313-555-1212, though data saved is: 3135551212
I played with the Column's inputmask (999-999-999 and ###-###-####) and the Format.. but, it's eating up the characters..
it displays it like this: 313-55-212 (etc..) basically where the - is, its taking over the number..
is there a way around this? or do i have to "stuff" the "-" (dashes) in my SQL stored procedure just before i return the cursor to add the dashes?
Ez Logic
Michigan
I moved my data to SQL server (still experimenting) and i decided to make the field char(10), and saved it like this: 3135551212 (basically saving 2 characters per record..)
Now on the Grid, i list all the phone number search and i want to display the data like this: 313-555-1212, though data saved is: 3135551212
I played with the Column's inputmask (999-999-999 and ###-###-####) and the Format.. but, it's eating up the characters..
it displays it like this: 313-55-212 (etc..) basically where the - is, its taking over the number..
is there a way around this? or do i have to "stuff" the "-" (dashes) in my SQL stored procedure just before i return the cursor to add the dashes?
Ez Logic
Michigan