|
of_searchitem
|
|
Full name
|
pfc_n_cst_dwsrv_dropdownsearch.of_searchitem
|
Access
|
protected
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
protected function integer of_searchitem(string)
|
Name
|
Datatype
|
li_count
|
integer
|
li_i
|
integer
|
protected function integer of_searchitem (string as_column);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SearchItem
//
// Access: protected
//
// Arguments:
// as_column column to search for
//
// Returns: integer
// Index of array where column was found.
// 0 if not found
// -1 if an error is encountered.
//
// Description:
// This function is called to search the instance attribute class that holds
// column information currently used by this service
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1999 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
integer li_count
integer li_i
// Check arguments
If IsNull(as_column) Or Len(Trim(as_column))=0 Then Return -1
// Get the size of the array.
li_count = upperbound(inv_columns)
// Check for an empty array.
if li_count <= 0 THEN return 0
// Find column name in array.
for li_i=1 TO li_count
if inv_columns[li_i].s_columnname = as_column THEN
// Column name was found.
return li_i
end if
next
// Column name not found in array.
return 0
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.len |
systemfunctions
|
systemfunctions.trim |
systemfunctions
|
systemfunctions.upperbound |
systemfunctions
|