限定只能輸入數字:
if not(key in ['0'..'9',#13,#8]) then
key := #0;
設置edit的最大長度: Maxlength :=
限定只能輸入數字:
if not(key in ['0'..'9',#13,#8]) then
key := #0;
設置edit的最大長度: Maxlength :=
複製這段內容後打開百度網盤APP,操作更方便哦。鏈接: https://pan.baidu.com/s/1H2SxV5Ngeo_eRSEfk60cQQ 提取碼:u4ef
在dpr文件加進去: {$SETPEOSVERSION 5.0} {$SETPESUBSYSVERSION 5.0} 非原創 轉載自 QQ羣 無連接