Textfiled.restrict() problems

Hi guys,

Im trying to using the retrict function of textfield to allow numbers, the alphabet and the @ and . (fullstop). Essentially its for a login page im creating where users login using their email address.

For some reason I cant get it to allow fullstops (.), and the backspace key doesnt work to delete stuff in the field.

Here’s what I have:


username_txt.restrict="a-zA-Z0-9@\\.";

Anyone got any clues?

Ahah I figured it out! For some **** reason because the text field was set to italics the . wasnt showing…weird!?

Anyway whateva :stuck_out_tongue:

username_text.restrict=“a-z A-Z 0-9 @ \.”;

worked like a charm.

sam

Yer true, it works… it was just that silly italics thing, dont think font outlines were working to well in the font I was using :frowning:

yea, thats goofy.

oh well, glad it is working!

cya man.

sam