从数据库中删除whitspace [英] remove whitspace from database

查看:68
本文介绍了从数据库中删除whitspace的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家

我在sql srever创建数据库

am create database in sql srever

请问我怎么样可以从文本框中删除空格 在vb.net中填充数据集后, 

please how i can remove white space from Textbox  after fill dataset in vb.net, 

备注: - 我使用文本框绑定

Remark:- i use binding with textbox

谢谢

推荐答案

您可以轻松地在TextBox事件中执行此操作。离开事件中的CType(sender,TextBox).Trim。这不是文本中的空间,只是前导和尾随空格。如果您需要更多请详细说明

You could easily do this say in the TextBox event Leave e.g. CType(sender,TextBox).Trim in the Leave event. This is not for while space within the text, only leading and trailing white space. If you need more than please elaborate


这篇关于从数据库中删除whitspace的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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