vb.net 2010中的空格,请回答以及如何替换 [英] space in vb.net 2010 please answer and how to replace

查看:62
本文介绍了vb.net 2010中的空格,请回答以及如何替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<如何在vb.net2010中将$的单词之间的空格20替换为$,请回答并
如何在相同语言的20个空白单词之间分隔空格

<how to replace space 20 blank between words to $ in vb.net2010 please answer and
how to space between words 20 blank in same language

推荐答案

在vb.net2010中,请回答并
如何在相同语言的20个空白单词之间空格
in vb.net2010 please answer and
how to space between words 20 blank in same language


使用替换"功能.

Use the Replace function.

Dim ReplaceIn as string = "Hello World"
Dim ToReplace as string = Space(1)
Dim ReplaceBy as string = "


" Dim ReplacedString as string ReplacedString = Replace(ReplaceIn,ToReplace,ReplaceBy)
" Dim ReplacedString as string ReplacedString= Replace(ReplaceIn, ToReplace,ReplaceBy)



ReplacedString应该等于Hello



ReplacedString should be equal to Hello


这篇关于vb.net 2010中的空格,请回答以及如何替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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