本文介绍了如何禁止文本框中的撇号(输入掩码?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了防止未来的撇号错误和错误,

禁止撇号进入文本字段是不是更简单?例如,

不能爱丽丝的餐厅改为Alices Restaurant

在数据输入过程中自动和编程?当我将字符串基于

查询时,这将消除我的连续字符串产生错误。认为这是Dreaded Apostrophe Bug的一个例子。如果我输入一个双撇号,我仍然会在StrSQL中得到错误。另外,它是
在字段中显示为双撇号,比丢失的

撇号更难。


这是一本简单的电话簿。想法?我应该发布代码吗?


谢谢。

Rich Hollenbeck

To prevent future apostrophe bugs and errors, isn''t it just simpler to
forbid an apostrophe from being entered into a text field? For example,
couldn''t "Alice''s Restaurant" be changed to "Alices Restaurant" etc.
automatically and programmatically during data entry? This would eliminate
my concatinated strings from producing errors when I base the string on a
query. Think this is an example of the "Dreaded Apostrophe Bug." If I
enter a double apostrophe I still get the error in the StrSQL. Also, it
appears in the field as a double apostrophe which is uglier than a missing
apostrophe.

This is for a simple phone book. Ideas? Should I post the code?

Thanks.
Rich Hollenbeck

推荐答案









这篇关于如何禁止文本框中的撇号(输入掩码?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 06:00