VD中的字符串截断 [英] string truncation in vd
本文介绍了VD中的字符串截断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个需要将字符串调整为长度50的代码.感谢
HI All,
I have a code where i need to tuncate a sting to the length 50 . thanks
推荐答案
尝试:
Dim shorter As String = longString.SubString(0, 50)
使用诸如Substring
,Length
,Left
之类的字符串函数 您还可以设置文本框的最大长度
Use string functions likeSubstring
,Length
,Left
Also you can set max length for textboxes
这篇关于VD中的字符串截断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文