精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>编程开发>>● VB和Basic>>〓〓....函数 DIY....〓〓>>分割字符串

主题:分割字符串
发信人: e_jie()
整理人: gzwsh(2001-07-10 09:20:44), 站内信件
【 在 suinx 的大作中提到:】
:我想用vb读一个格式化的文本文件,文件内容为
:04112 2000-12-25 1700200301 12 180.00 0.00
:04112 2000-12-25 1011203202 2 260.00 0.00
:
:我想把每一列依次读到变量a,b,c,d,e,f中,其中a,c设为string,b设为
:
:...

dim str() as string
dim sourcestr as string
sourcestr="34235 545325 2000-11-11 34535 45425 45"
str()=split(sourcestr," ")
取得的str位一个数组 下标为0



[关闭][返回]