|
of_isregistered
|
|
Full name
|
pfc_u_calendar.of_isregistered
|
Access
|
public
|
Extend of
|
boolean
|
Return value
|
boolean
|
Prototype
|
public function boolean of_isregistered(string)
|
Name
|
Datatype
|
li_count
|
integer
|
li_i
|
integer
|
public function boolean of_isregistered (string as_dwcolumn);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_IsRegistered
//
// Access: Public.
//
// Arguments:
// as_dwcolumn The registered column to search for.
//
// Returns: boolean
// True or False depending if the column is already registered.
//
// Description: This function is called to determine if the passed in
// column name has already been registered with the service.
//
// *Note: Function is only valid when serving a DataWindow control.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 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_dwcolumn) Or Len(Trim(as_dwcolumn))=0 Then
Return False
End If
// Validate the references.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then
Return False
End If
// Trim and Convert to lower case.
as_dwcolumn = Trim(Lower(as_dwcolumn))
// Find column name.
li_count = upperbound(is_dwcolumns)
For li_i=1 To li_count
If is_dwcolumns[li_i] = as_dwcolumn THEN
// Column name was found.
Return True
end if
Next
// Column name not found in array.
Return False
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.len |
systemfunctions
|
systemfunctions.lower |
systemfunctions
|
systemfunctions.trim |
systemfunctions
|
systemfunctions.upperbound |
systemfunctions
|