轻微伤拒不赔偿医药费:VB中如何将ListBox的内容保存到文本中

来源:百度文库 编辑:高校问答 时间:2024/04/29 04:43:42
VB中如何将ListBox的内容保存到文本中 一个item为一行

public sub savelist(byval list as listbox,byval outfile as string)
dim fn as integer,i as integer
fn=freefile
open outile for output as fn
for i=0 to list.listcount-1
print#fn,list.list(i)
next
close fn
end sub

以上就是保存内容的过程。