delphi edit.text credtcard like, 25 characters
Posted on 2010-09-15
I want a user to type 5 charcters into edit1.text but on typing the 6th charcater it them puts a - after the 5th then the user can keep on typing more, then again seperated by a - after the 10th on typing the 11th
in simple terms, i want a user to type out a 25 digit of mixed letters /numbers and seperated by - after every 5 of them.
The user doesnt type -.
Ive tried setfocus and different ways that im not too happy about.
500 points, need this answerd asap ok.