帮助VB中的字符串操作 [英] Help on String Manipulation in VB
问题描述
我从早年回到VB需要一些帮助。
I am returning to VB from the early years need some help.
我曾经能够从一串字符中取出一个字节,如:byte( string,3,5) - 从字符串中获取char#3到char#5。
I used to be able to take a byte out of a string of characters, like: byte(string,3,5) -- getting char #3 thru char #5 from string.
类似
str1 =字节(str,3,5)
str1 = Byte(str, 3, 5)
可以你再这样做了吗?
推荐答案
我从早年回到VB需要一些帮助。
I am returning to VB from the early years need some help.
我曾经能够从一串字符中取出一个字节,如:byte(string,3,5) - 从字符串中获取char#3到char#5 。
I used to be able to take a byte out of a string of characters, like: byte(string,3,5) -- getting char #3 thru char #5 from string.
类似
str1 =字节(str,3,5)
str1 = Byte(str, 3, 5)
你不能再这样做了吗?
您好
字符串操作的许多不同方式。这是一个例子。
Many different ways for string manipulation. Here is one example.
Dim s As String = "123456789"
' get 4 char starting at position 3 (zero based)
Dim s2 As String = s.Substring(3, 4)
' s2 = "4567"
这篇关于帮助VB中的字符串操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!