of_getpicturecolumn


pfcapsrv.pbl   >   pfc_n_cst_tvsrv_levelsource   >   of_getpicturecolumn   

Full name pfc_n_cst_tvsrv_levelsource.of_getpicturecolumn
Access public
Extend of string
Return value string
Prototype public function string of_getpicturecolumn(integer)

Name Datatype
No Data

Name Datatype
li_limit integer

public function string of_getpicturecolumn (integer ai_level);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_GetPictureColumn
//
//	Access:		Public
//
//	Arguments:	
//	ai_Level		The level of the treeview to get the information from.
//
//	Returns:		string
//					string holding the picture column name used by the level
//					"!" if error
//
//	Description:
//	Returns the column name used from the datasource as the picture display
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_limit


// check arguments
If isNull(ai_level) or (ai_level < 1) Then Return "!"

// Verify that this is a valid level
li_Limit = UpperBound(inv_attrib)
If ai_Level > li_Limit Then
	// Allow for recursion
	If Not inv_attrib[li_Limit].ib_Recursive Then Return "!"
	
	ai_Level = li_Limit
End If

return inv_attrib[ai_level].is_PictureColumn

end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.upperbound systemfunctions

     
Full name
No Data

     
Name Scope
No Data