以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  字符串分隔符数组的问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=149019)

--  作者:vimin
--  发布时间:2020/4/21 14:00:00
--  字符串分隔符数组的问题
帮助文件中:

分割字符可以是一个数组,例如:

Dim Value As String = "foxtable|access/foxpro|excel/egrid"
Dim
 sps() As Char = {"|","/"}
Dim
 Names() As String  = Value.Split(sps)
For
 Each name As String In Names
    
Output.Show(Name)
Next


请问这个“char”是什么意思?

我用普通的数组定义就不行,dim sps() as string ={}


--  作者:有点蓝
--  发布时间:2020/4/21 14:03:00
--  
char是指的单字符