我正在尝试验证用户在 MaskedEdit 控件中的输入,以确保它包含 10 个数字字符(用于电话号码)。我该如何申请这样的条件?
我当前的代码只检查属性是否为空。
<Publish Dialog="InstitInfoDlg" Control="Next" Event="SpawnDialog" Value="InstitInfoDlgError" Order="1">((INSTITUTIONNAME = "") OR (INSTITUTIONTEL = "")) OR (INSTITUTIONTEL = " - - ")</Publish>
<Publish Dialog="InstitInfoDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="2">(NOT (INSTITUTIONNAME = "") AND NOT (INSTITUTIONTEL = "")) AND NOT (INSTITUTIONTEL = " - - ")</Publish>
提前致谢。