of_getdatanumeric


pfcapsrv.pbl   >   pfc_n_cst_tvsrv   >   of_getdatanumeric   

Full name pfc_n_cst_tvsrv.of_getdatanumeric
Access public
Extend of long
Return value long
Prototype public function long of_getdatanumeric(long)

Name Datatype
No Data

Name Datatype
ls_data string
ltvi_item treeviewitem

public function long of_getdatanumeric (long al_handle);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_GetDataNumeric
//
//	Access:  		public
//
//	Arguments:		
//	al_handle		The handle for the item for which you want to retrieve information
//
//	Returns:  		Long
//						data value if it succeeds and -1 if an error occurs.
//
//	Description:  	Return the 'Data' element in number format
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////
string			ls_data
treeviewitem	ltvi_item

If IsNull(al_handle) Or (al_handle < 0) Then
	Return -1
End If

if itv_requestor.GetItem ( al_handle, ltvi_item ) <> 1 then
	return -1
else
	ls_data = string (ltvi_item.data)
	If isnumber(ls_data) then
		return long(ls_data)
	Else
		Return -1
	End If
end if
end function

     
Name Owner
No Data

     
Name Owner
treeview.getitem treeview
systemfunctions.isnull systemfunctions
systemfunctions.isnumber systemfunctions
systemfunctions.long systemfunctions
systemfunctions.string systemfunctions

     
Full name
No Data

     
Name Scope
No Data