I have a function called FindSpecificRowValue that takes in a datatable and returns the row number that contains a particular value. If that value isn't found, I want to indicate so to the calling function.
Is the best approach to:
- Write a function that returns false if not found, true if found, and the found row number as a byref/output parameter, or
- Write a function that returns an int and pass back -999 if the row value isn't found, the row number if it is?