string

K

kevcar40

Hi
a user is required to enter a part code this code is 14 char long
ie. Abcd-1213-45678
However some users are entering this code as without the dashes
ie Abcd12345678
How can i check this string for dashes ignoring if they are there and
puting them there if not

giving an end result of Abcd-1213-45678


thanks

kevin
 
O

oldguy

Hi kevcar40,

The example you have supplied contrasts with the rule (14 chars), but if the
structure of the partnumber is fixed, such as 4-4-6 or similar, I think you
can benefit from applying a mask, which disallows the entry of anything but
letters and digits. Search for "mask" in help.

Good luck,
Engin
 
Top