procedure TForm2.Edit1Change(Sender: TObject); var str:string; i:integer; begin str:=''; str:=Edit1.Text; if (Length(str)>0) then if (not((str[Length(str)])in['0'..'9','A'..'Z',#8]))or(Length(str)>6) then begin Edit1.Text:=LeftStr(Str,Length(str)-1); end; Edit1.SelStart:=Length(Edit1.Text); if Length(str)>=6 then Edit2.SetFocus; end;ûÓУ¬·½·¨Í¬Â¥Ö÷ ¿´À´Ã»ËµÇå³þ£¬ÎÒµÄÒâ˼ÊÇEdit2ChangeÕâ¸öʼþ²»ÓÃдҲ¿ÉÒÔʵÏÖ£¬¼´ÓÃEdit1ChangeµÄʼþÖ±½Óµ÷Óã¬Ó¦¸ÃÔõô¸Ä Ö»ÄÜÕâÑùÅжÏÿ¸ö×Ö·ûºÍ³¤¶È,È»ºóÉèÖÃÆäËû¿Ø¼þµÄ½¹µã
³ýÁË×ÔÔöEDIT¿Ø¼þ£¬»¹ÓÐͨ¹ýÁ½¸öRadiobuttonÀ´¿ØÖÆËùÓÐ×ÔÔöµÄEdit¿Ø¼þµÄReadonlyÊôÐÔ£¬°ÝÍиßÊÖÃÇÌæÎÒÕâ¸ö²ËÄñ½â´ð£¬²»Éõ¸Ð¼¤ sorry, Do not understand what you said!