FindColData

<< Click to Display Table of Contents >>

Manual > Control Reference > Basics > Grid control > Methods >

FindColData


 

Search data column-wise.

 


Syntax 1

FindColData (

         searchType,

         col,

         data,

         &result

         )

 


Parameters

 

searchType


Type:

character


Search type.

"compare_all" - Matches the specified characters exactly.

"compare_nocase_all" - Matches the specified characters exactly (ignoring case).

"find_all" - Checks whether the specified character is included.

 

col


Type:

Number


index of the column to search (column number starting from 0).

 

data


Type:

character


The character to search for.

 

&result


Type:

Boolean


If successful, returns an array containing the indices of all rows found.

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 

 


Syntax 2

FindColData(

         searchType,

         col,

         data,

         &result

         [,startRow]

         )

 


Parameters

 

searchType


Type:

character


Search type.

compare - Does the specified characters match exactly?

compare_nocase - Whether the specified characters match exactly (ignoring case).

find - Checks whether the string contains the specified character.

 

col


Type:

Number


The index (0-based) of the column to search.

 

data


Type:

character


The character to search for.

 

&result


Type:

Boolean


The index of the first row found if successful.

 

startRow


Type:

Number


The zero-based row index at which to begin the search.

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 


hmtoggle_plus1Explanation

 


reference