如何设置特定列仅接受字符串而非数字值。 [英] How Can I Set A Particular Column Accepts Only String Not Numeric Values.

查看:76
本文介绍了如何设置特定列仅接受字符串而非数字值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快点。我需要以简单的格式回答。

make it quick.please i need answer in simple format.

推荐答案

尝试:

Try:
^[^\d]+






快速。

简单。

Works - 在你的VB应用程序中实际使用它的代码的版本取决于你,因为你在原始问题中非常粗鲁。



Quick.
Simple.
Works - the version with the code to actually use it in your VB app is up to you, since you were so rude in the original question.


为此你可以在将表单提交到服务器之前写一些javascript函数来验证

或者可以在服务器端使用常规expresession如



for that you can write some javascript function to validae that before submiting the form to server
or can use regular expresession on the server side like

function isString(s)
{
  return s.match("^[a-zA-Z\(\)]+


这篇关于如何设置特定列仅接受字符串而非数字值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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