访问输入掩码错误消息 [英] Access Input Mask error messages

查看:96
本文介绍了访问输入掩码错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一些代码可用于更改用户在输入输入掩码的无效条目时获得的错误消息。


而不是技术术语,我''希望用户得到一条通用消息,说他们输入了[Field1]的错误信息。


我该怎么做呢?

解决方案

表单有一个名为On Error的事件处理程序

基本上你用它来添加你自己的错误消息


你需要设置响应,否则默认msg仍然出现

例如

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | <跨度class =codeDivider> | 行号



是否有一些代码可用于更改用户在输入输入掩码的无效条目时获得的错误消息。


而不是它技术术语,我希望用户得到一条通用消息,说他们输入了[Field1]的错误信息。


如何进行此操作?



将以下代码放入Form'的Error()事件中:

展开 | 选择 | Wrap | 行号

展开 | 选择 | Wrap | 行号


Is there some code that I can use to change the error message a user gets when they input an invalid entry for an input mask.

Instead of it being technical jargon, I''d like the user to get a generic message saying that they entered the incorrect information for [Field1].

How do I go about doing this?

解决方案

The form has a event handler called On Error
basically u use that to add in your own error messages

You need to set the Response as well otherwise default msg still appears
eg

Expand|Select|Wrap|Line Numbers


Is there some code that I can use to change the error message a user gets when they input an invalid entry for an input mask.

Instead of it being technical jargon, I''d like the user to get a generic message saying that they entered the incorrect information for [Field1].

How do I go about doing this?

Place the following code in your Form''s Error() Event:

Expand|Select|Wrap|Line Numbers


Expand|Select|Wrap|Line Numbers


这篇关于访问输入掩码错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆