Guidance
指路人
g.yi.org
software / rapidq / examples / GUI / Edit & Richedit / edit validation without mask.bas

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
' rename find replace : edtMyEdit

     DECLARE SUB OnKeyPress_edtMyEdit (key AS BYTE)

     SUB OnKeyPress_edtMyEdit (key AS BYTE)
      DEFSTR sFileAcceptedChar = "abcdefghijklmnopqrstuvwxyz" _
       & "ABCDEFGHIJKLMNOPQRSTUVWXYZ" _
       & "#!$&().0123456789=@[]_}{~"

      IF INSTR (sFileAcceptedChar,CHR$(Key)) THEN
       SHOWMESSAGE (CHR$(Key))
      ELSE
       IF Key = &H0D THEN edtMyEdit.Text = TIME$
      END IF
     END SUB

     CREATE edtMyEdit AS QEDIT
      Left = 5
      Top = 5
      Width = 60
      Height = 20
      Font.Size = 8
      Font.Bold = True
'ShowHint = True
'Hint = "Ti Text"
      Text = "22523"
      OnKeyPress = OnKeyPress_edtMyEdit
     END CREATE
'------------------------------------------------------------
'Jacques
掌柜推荐
 
 
¥900.00 ·
 
 
¥430.00 ·
 
 
¥1,580.00 ·
 
 
¥1,015.00 ·
 
 
¥750.00 ·
 
 
¥890.00 编辑
© Mon 2024-11-25  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2013-06-19 07:48:03