Well, I am stuck again.
Posted on 2005-04-18
I previously received help on problems with my class/methods.
Now, I am having problems with my colllection code.
I am copying this code, through a step-by-step tutorial, from an Advanced VB book.
I receive the error, "Method or data member not found" on the mDispensaryItems.Add listed below.
Private Sub cmdAdd_Click()
'Add an item to the collection
If cboFrameSize.ListIndex <> -1 And cboFrameStyle.ListIndex <> -1 Then
mDispensaryItems.Add cboFrameStyle.ListIndex + 1, cboFrameSize.ListIndex + 1, Val(txtQuantity.Text)
MsgBox "Enter values for the item.", vbInformation, "Dispensary Items"
cmdClear_Click 'clear out form controls
Can someone help me identify where I went wrong? I am sure it is something I left out, but as I am teaching myself, I do not really know where to go from here.