|
of_usesdisplayvalue
|
|
Full name
|
pfc_n_cst_dwsrv_sort.of_usesdisplayvalue
|
Access
|
protected
|
Extend of
|
boolean
|
Return value
|
boolean
|
Prototype
|
protected function boolean of_usesdisplayvalue(string)
|
Name
|
Datatype
|
ls_codetable
|
string
|
ls_editstyle
|
string
|
protected function boolean of_usesdisplayvalue (string as_column);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_UsesDisplayValue
//
// Access: protected
//
// Arguments:
// as_column: A datawindow columnname/computename for which you want to
// determine if there is a display value
//
// Returns: boolean
// TRUE: The column has a display value
// FALSE: The column does not have a display value or does not exist
//
// Description: Determine if a datawindow column has a display value.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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.
//
//////////////////////////////////////////////////////////////////////////////
string ls_editstyle
string ls_codetable
// Check parameters.
If IsNull(as_column) or Len(Trim(as_column))=0 Then Return False
ls_editstyle = Lower(idw_Requestor.Describe (as_column + ".Edit.Style"))
ls_codetable = Lower(idw_Requestor.Describe (as_column + "." + ls_editstyle + ".CodeTable"))
IF ls_editstyle = 'dddw' or ls_editstyle = 'ddlb' or ls_codetable = 'yes' THEN
Return True
END IF
Return False
end function
Name
|
Owner
|
datawindow.describe |
datawindow
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.len |
systemfunctions
|
systemfunctions.lower |
systemfunctions
|
systemfunctions.trim |
systemfunctions
|