what he's saying, you are creating quantity(and not giving it a value) every time you call getItem().
so you either need to increase the scope of quantity and define it outside of the sub
or you need to pass a value to getItem and assign it to quantity
CODE
public sub getItem(byval tempQaunt as double)
Dim quantity As Double = tempquant
end sub
getItem(12)
your doing something similar with all your methods
and functions should have the return type in the signature
CODE
public function blah() as string
dim bla as string
return bla
end function
If you use byVal the value of the original variable will not be changed whereas if you use byRef it will
ie
CODE
dim test1,test2 as integer
test1 =2
test2 =4
msgbox test1 &" "& test2
test(test1,test2)
public sub test(byval test1 as integer, byref test2 as integer)
test1 =3
test2 =5
end sub
msgbox test1 &" "&test2
if i've done it correctly the first message box should show 2 4
and the second message box should show 2 5
someone correct me if i'm wrong
ahh dude snuck in while i was posting