Hi,
I get the following errors on the following code.
Error 1 The out parameter 'dtValueToCheck' must be assigned to before control leaves the current method
Error 2 The out parameter 'strValueToCheck' must be assigned to before control leaves the current method
Error 3 The out parameter 'strFieldNameToCheck' must be assigned to before control leaves the current method
Error 5 No overload for method 'ValidateCriteria' takes 5 arguments
What am I doing wrong please?
Thanks
private bool ValidateAssetCriteria(DataTable dtToCheck, string strAssetName)
{
string strFieldNameToCheck = string.Empty;
string strValueToCheck = string.Empty;
DateTime dtValueToCheck = DateTime.Now;
bool validate = ValidateCriteria(dtToCheck, strAssetName,
out strFieldNameToCheck, out strValueToCheck,
out dtValueToCheck);
}
public static bool ValidateCriteria(DataTable dtToCheck, string strAssetName,
out string strFieldNameToCheck, out string strValueToCheck,
out DateTime dtValueToCheck)
{
...
...
strFieldNameToCheck = "fieldname";
strValueToCheck = "value";
dtValueToCheck = DateTime.now
}