本人在開發一個系統的時候,遇到一個觸摸屏的問題,就是模擬一個數字鍵盤,
我做了幾個按鈕,比如:1,2,3,4.。。。來模擬,但是設定了文本框以后,我的文本框為editmask
,但是怎么都輸不進去,真的不知道怎么處理了,請各位高速賜教。。。。。。
按鈕的代碼為:
if flag=1 or flag_3=1 then
em_6.text=""
em_6.text=em_6.text+this.text
flag=0
flag_3=0
else
em_6.text=em_6.text+this.text
end if
uj5u.com熱心網友回復:
因為你的EM_6.text是null值,所以怎么加都是Null值。你可以判斷一下if len(trim(em_6.text)) > 0 then em_6.text = em_6.text + this.text else em_6.text = this.textuj5u.com熱心網友回復:
代碼里這么寫if len(em_6.text) >0 then
em_6.text += this.text
else
em_6.text = this.text
end if
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/19600.html
標籤:基礎類
