我想用edit控件实现maskedit的显示格式还行啊,就是以____-__-__的方式让我录入日期,(就是在录入日期时,一直有分隔符'-')用maskedit会让我有很多局限,谢谢!
解决方案 »
- Delphi
- 散分,顺便了解一下深圳的行情!
- 我的窗体不能移动了
- 如何提高查询速度????????
- 求三层设计模式的例子
- 求助:DELPHI排班控件
- 快帮帮我吧
- 使用 Createoleobject('excel.application'); usrs应包含什么文件
- 我在用DEPHIL中使用SQL进行动态查询的问题,18小时内解决送20分
- :C/S+socket在客户端TCP/IP中设置DNS后无法把本机作为服务器怎办?不设又无法使用winroute上网。
- ■远程抓屏(技术交流)■
- 控件datatimepicker的问题:为什莫出错[Pascal Error] Unit1.pas(1): Unable to invoke Code Completion due to errors in source code
if key not in[0..9,#8] then
key:=#0;
if length(edit1.text)>3 then
edit1.text:=edit1.text+'-';
…………
if (length(edit1.text)>7) and (key <> #13) then
key:=#0;
if key not in[0..9,#8] then
key:=#0;
if length(edit1.text)>3 then
edit1.text:=edit1.text+'-';
…………
if (length(edit1.text)>7) and (key <> #13) then
key:=#0;