为了账号安全,请及时绑定邮箱和手机立即绑定

vb get 函数?

vb get 函数?

墨色风雨 2019-02-06 11:07:14
Option ExplicitPrivate Type recordID As Integername As String * 5End TypePublic Sub wrong()MsgBox "发生错误" & vbCrLf & Err.Description, 0 + 16, "错误"End SubPrivate Sub Form_Click()On Error GoTo tag1Dim myrecord As record, positionOpen "C:\Users\stoplee\Desktop\新建文本文档 (2).txt" For Random As #1 Len = Len(myrecord)'Debug.Print Len(myrecord)position = 1Get #1, position, myrecordPrint myrecord.nameClose #1Exit Subtag1:wrongEnd Sub这个例子是书上的 主窗体过程里 那个调试注释是我自己加的 为毛len(myrecord)等于7 ???
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 715 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信