Instantiating a new object failed?
Hi, I have a very simple class called InvItem that takes three parameters:
itemNo
, description
, and price
. When I try to instantiate a new object using it, Visual Studio tells me that I haven't passed it any correpsonding arguments? I feel like the answer should be obvious but my brain just ain't doing the braining today.
InvItem.cs
frmNewItem.cs
4 Replies
The error you posted says that it's in "InvItemDB.cs". Can you post the code from that file?
yeah absolutely
Pastebin
InvItemDB.cs - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I just realised what I did wrong. I had price as int, not decimal.