dim length as long
dim a(0 to 1) as byte
dim strFile as string
strFile=app.path+"dcp\ywg.dbf"
open strFile for binary as #1
seek #1,8    '可以不要
get #1,8,a(0)  '度第八个字节
get #1,9,a(1)
length=(a(1)+1)*256+a(0)
a(0)=0
a(1)=0
put #1,4,a(0)  '写到第四个字节
put #1,5,a(1)  '写到第五个字节
'====
close