T
tiger79
Hi,
I've got the following problem :
I made an api which is referenced by program1. In this API i have a method
(called Retrieve) in which I create a Dataset and fill a DataTable with data
out of a DataBase. This method returns the DataSet. While calling this
DataSet I allso supply two integer values (for search purposes in the
sql-query in the method).
My problem now is that when I call this method in program1 and try to assign
the returned value (thus de Dataset) I get the following error :
An object reference is required for the nonstatic field, method, or property
'Dictionarytest1.peccAttributeValues.Retrieve(int, int)'
I use this code for assigning :
DataSet myDataSet =
Dictionarytest1.peccAttributeValues.Retrieve(AttributeId, Level);
Like i've allways did when I assign like an integer or whatever...
Any idea what the problem is about ? Or if its better to implement something
else ?
If it's helpful I can always post some code...
I've got the following problem :
I made an api which is referenced by program1. In this API i have a method
(called Retrieve) in which I create a Dataset and fill a DataTable with data
out of a DataBase. This method returns the DataSet. While calling this
DataSet I allso supply two integer values (for search purposes in the
sql-query in the method).
My problem now is that when I call this method in program1 and try to assign
the returned value (thus de Dataset) I get the following error :
An object reference is required for the nonstatic field, method, or property
'Dictionarytest1.peccAttributeValues.Retrieve(int, int)'
I use this code for assigning :
DataSet myDataSet =
Dictionarytest1.peccAttributeValues.Retrieve(AttributeId, Level);
Like i've allways did when I assign like an integer or whatever...
Any idea what the problem is about ? Or if its better to implement something
else ?
If it's helpful I can always post some code...