運行時錯誤「91」:這個VB6錯誤是什麼意思?
對象變量或帶塊變量未設置
我使用VB6
確定這裏是我的代碼
Private Sub Form_Load()
lblIDNumber.Caption = UserID
With datPersonal.Recordset
.Index = "idxid"
.Seek "=", UserID
LockTextboxes
End With
End Sub
Public Sub LockTextboxes()
With txtDateHired
.Locked = True
End With
With txtBirthday
.Locked = True
End With
With txtGender
.Locked = True
End With
With txtAddress
.Locked = True
End With
With txtContact
.Locked = True
End With
With txtStatus
.Locked = True
End With
With txtPosition
.Locked = True
End With
With txtBasicSalary
.Locked = True
End With
With txtReligion
.Locked = True
End With
End Sub
請發佈代碼段 – BugFinder 2011-04-08 08:03:08
此錯誤表示某個對象變量或塊變量未初始化。有時候錯誤反映了現實,你知道:) – Arvo 2011-04-08 08:04:43
@阿爾沃 - 他們這樣做,但有時候人們需要向正確的方向推動。 VB6沒有最有用的錯誤消息。 – mdm 2011-04-08 08:07:01