function rectification
-
i am witing the following function StoredProcedureInformation is a class i want to eturn it. public StoredProcedureInformation ReturnStoredProcedureInformation(int length) { StoredProcedureInformation[] sp = new StoredProcedureInformation[length]; return sp; } Am i right?
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
-
i am witing the following function StoredProcedureInformation is a class i want to eturn it. public StoredProcedureInformation ReturnStoredProcedureInformation(int length) { StoredProcedureInformation[] sp = new StoredProcedureInformation[length]; return sp; } Am i right?
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
No. You are trying to return an array of StoredProcedureInformation objects but the return value of your method is defined as a single instance of a StoredProcedureInformation object. You should change your code to:
public StoredProcedureInformation[] ReturnStoredProcedureInformation(int length)
{
StoredProcedureInformation[] sp = new StoredProcedureInformation[length];
return sp;
}Paul Marfleet
-
i am witing the following function StoredProcedureInformation is a class i want to eturn it. public StoredProcedureInformation ReturnStoredProcedureInformation(int length) { StoredProcedureInformation[] sp = new StoredProcedureInformation[length]; return sp; } Am i right?
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
Hi If you want to return StoredProcedureInformation class instance you need to construct an unstance of this class and return it in your code you construct an array of StoredProcedureInformation and return the array instance.
-
No. You are trying to return an array of StoredProcedureInformation objects but the return value of your method is defined as a single instance of a StoredProcedureInformation object. You should change your code to:
public StoredProcedureInformation[] ReturnStoredProcedureInformation(int length)
{
StoredProcedureInformation[] sp = new StoredProcedureInformation[length];
return sp;
}Paul Marfleet
ThanQ
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1