|
of_getregisteredstyle
|
|
Full name
|
pfc_u_calendar.of_getregisteredstyle
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_getregisteredstyle(string)
|
Name
|
Datatype
|
li_count
|
integer
|
li_i
|
integer
|
public function integer of_getregisteredstyle (string as_dwcolumn);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetRegisteredStyle
//
// Access: Public.
//
// Arguments:
// as_dwcolumn The registered column to search for.
//
// Returns: integer
// The style for the column passed in.
// 0 if the column is not registered.
// -1 if an error is encountered.
//
// Description:
// This function is called to determine the style of the column name passed in.
//
// *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 0
End If
// Validate the references.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then
Return -1
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 ii_dwcolumnstyle[li_i]
end if
Next
// Column name not found in array.
Return 0
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.len |
systemfunctions
|
systemfunctions.lower |
systemfunctions
|
systemfunctions.trim |
systemfunctions
|
systemfunctions.upperbound |
systemfunctions
|