B bettle Unregistered / Unconfirmed GUEST, unregistred user! 2000-05-17 #1 问题1:在FORM上有一个TEDIT构件,怎样在程序中判断输入的是字母还是数字呢? 问题2:在DBASE表中,怎样才能做到记录的值不重复?
C cmldy Unregistered / Unconfirmed GUEST, unregistred user! 2000-05-17 #2 在keyPress里 if Key in ['0','9'] then begin do you event ; end ; DBASE表里设唯一关键字
X xueminliu Unregistered / Unconfirmed GUEST, unregistred user! 2000-05-17 #3 同意cmldy, 设置关键字时要注意设置的标准,不能乱设 必须根据需要设置在实际应用中绝对不会重复的字段
W wjlenjiancn Unregistered / Unconfirmed GUEST, unregistred user! 2000-05-17 #4 在keyPress事件中 if Key in ['0'..'9'] then begin 语句 end else begin if ((key in [a..z]) and (key in [A..Z])) begin 语句 end end;
在keyPress事件中 if Key in ['0'..'9'] then begin 语句 end else begin if ((key in [a..z]) and (key in [A..Z])) begin 语句 end end;