VB 保存数组文字

来源:百度知道 编辑:UC知道 时间:2024/07/04 08:03:02
for i = 0 to 47
请保存 B(i).caption的文字
保存到程序所在的文件夹,并写出读取的代码

b(i).caption?这个是数组还是LABEL控件数组?
保存数据,保存到哪?文件还是什么地方,说的不清不楚的!就你说的这个问题
open "c:\temp.txt" for input as #1
for i=0 to 47
print #1,b(i).caption
next i
close #1

dim a(0 to 47) as string
for i=0 to 47
a(i)=B(i).caption
next i

Save:
for i = 0 to 47
open app.path & "\1.txt" for append as #1
print #1,b(i)
close 1
next i

Open:
你自己搜一下吧 不想打了