|
of_SetStatePictureColumn
|
|
Full name
|
pfc_n_cst_lvsrv_datasource.of_SetStatePictureColumn
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_SetStatePictureColumn(string)
|
public function integer of_SetStatePictureColumn (string as_column);//////////////////////////////////////////////////////////////////////////////
// Public Function: of_SetStatePictureColumn
// Arguments: as_column column in datasource to be used for state picture display purposes
// The column may be an integer (used as the picture index) or a
// string (a bmp name which will be used as the picture). Or a number
// may be passed in (i.e. "1") which will be used as the state picture
// index for all items.
// Returns: integer
// 1 = success
// -1 = failure
// Description: Sets the column name used from the datasource as the state picture display
// Note: The datasource(dataobject) must be set first before calling this function
//////////////////////////////////////////////////////////////////////////////
// Rev. History: Version
// 6.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.
//////////////////////////////////////////////////////////////////////////////
if IsNull(as_column) then return -1
// Check to make sure column is valid for the dataobject
if Trim(as_column) <> "" and not IsNumber(as_column) &
and inv_Attrib.ids_Source.Describe(as_column + ".Band") = "!" then return -1
inv_Attrib.is_StateColumn = as_column
return 1
end function
Name
|
Owner
|
datastore.describe |
datastore
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isnumber |
systemfunctions
|
systemfunctions.trim |
systemfunctions
|