Input Mask - IP Address

J

Jai_Friday

Good morning,

I am trying to creat an input mask for an ip address field in a customer
database I am running, so it forces the full stops inbetween the numbers for
easier user entry

I have tried creating one 000.000.000.000;;_ but of course the issue arises
where by it is expecting it to be filled out with three digits when the ip
address may conitain 1 or 2 in each part.

Is there a way of getting around this or is there possibly other input mask
pluggins I can download?

thanks in advance

Jai
 
A

Allen Browne

Use 4 fields of type Number, size Byte.

On your form/report, place the 4 text boxes side-by-side, with just a dot in
the labels between them.

An IP address is a 4-byte value (perhaps 6 in the future), so that's the
simplest way to interface four unsigned bytes.
 
A

Alan Moseley

Have you tried 099.099.099.099

It doesn't perform any vaildation (eg no octet greater than 255) so Allen
Browne's answer is probably better, but it should work nevertheless.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top