随机文件的打开问题
在C盘下建立一个test.dat文件,要求在此文件中存文本框输入的考生,考号和成绩。部分代码如下;
type record
name as string*8
ID as string*8
score as integer
end type
name=text1.text
ID =text2.text
score =100
open "c:\test.dat" for random as #1 len=len(record)
为什么系统总提示“编译错误,无效内部过程“?好象是在type record 里出现了错误,请教各位大虾,这是怎么回事?还有哪位高手能给我介绍以下如何对随机文件进行存取和读出?另外,name as string*8 ,"*8"是怎么回事?请各位指教,