G
Guest
Hi
I have filled a dataset.tables("MYTBL") with n records, using the SQLDataAdapter.Fill() method. A Datacol("FNAME") is defined on the "MYTBL". For a given value , say fn_str, is it possible to find the row number within the Datacol("FNAME") where the value is first available / successively available. That is :
dim kt as integer = 0, fn_Str as string = "John
kt = ReadilyAvailableFunction(Datacol("FNAME"), fn_str
kt will get either of the two value sets : -1, or {0..n-1}. The -1 will indicate that "John" was not found. Successive instances of "John" could be obtained through some overloaded definitions of the same function
Ofcourse, the Readily ...() could be manually written. But whether already such a facility exists within the framework
Thanx in advance,
Sanjay
I have filled a dataset.tables("MYTBL") with n records, using the SQLDataAdapter.Fill() method. A Datacol("FNAME") is defined on the "MYTBL". For a given value , say fn_str, is it possible to find the row number within the Datacol("FNAME") where the value is first available / successively available. That is :
dim kt as integer = 0, fn_Str as string = "John
kt = ReadilyAvailableFunction(Datacol("FNAME"), fn_str
kt will get either of the two value sets : -1, or {0..n-1}. The -1 will indicate that "John" was not found. Successive instances of "John" could be obtained through some overloaded definitions of the same function
Ofcourse, the Readily ...() could be manually written. But whether already such a facility exists within the framework
Thanx in advance,
Sanjay