editonchange事件中 执行
if (pos('0',(sender as tedit).text)=1) and (length((sender as tedit).text)>1) then
if pos('.',(sender as tedit).text)<>2 then
begin
(sender as tedit).text:=copy((sender as tedit).Text,2,length((sender as tedit).Text)-1);
end;
如第一字符输入0,第二字符输入9
光标自动移动到第一字符前,我要将它移到最后一个字符后.