of_gettype


pfcapsrv.pbl   >   pfc_n_cst_luw   >   of_gettype   

Full name pfc_n_cst_luw.of_gettype
Access protected
Extend of string
Return value string
Prototype protected function string of_gettype(powerobject)

Name Datatype
No Data

Name Datatype
No Data

protected function string of_gettype (powerobject apo_control);//////////////////////////////////////////////////////////////////////////////
//	Protected Function:	of_GetType
//	Arguments:		apo_control   Control for which the type is desired.
//	Returns:			string
//	 					1 = accepttext successful, no errors found
//						! = The type was not found. (If apo_control is not null and apo_control is one 
//							 which updating is desired on, the function should be enhanced to include 
//							 the type.)
//	Description:	Gets the type of the control.
//////////////////////////////////////////////////////////////////////////////
//	Rev. History	Version
//						6.0   Initial version
// 					7.0	Added new controls hprogressbar!, htrackbar!, vprogressbar!,
//								vtrackbar!, picturehyperlink!, statichyperlink!
//////////////////////////////////////////////////////////////////////////////
//	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.
//////////////////////////////////////////////////////////////////////////////

choose case apo_control.TypeOf()
	case DataWindow!
		return 'datawindow'
	case DataStore!
		return 'datastore'			
	case TreeView!
		return 'treeview'		
	case ListView!
		return 'listview'
	case RichTextEdit!
		return 'richtextedit'
	case Window!
		return 'window'
	case UserObject!
		return 'userobject'		
	case NonVisualObject!
		return 'nonvisualobject'				
	case CheckBox!
		return 'checkbox'
	case CommandButton!
		return 'commandbutton'		
	case DropDownListBox!
		return 'dropdownlistbox'
	case Graph!
		return 'graph'		
	case GroupBox!
		return 'groupbox'		
	case HScrollBar!
		return 'hscrollbar'
	case ListBox!
		return 'listbox'
	case MultilineEdit!
		return 'multilineedit'		
	case OMControl!
		return 'omcontrol'
	case Picture!
		return 'picture'
	case RadioButton!
		return 'radiobutton'		
	case SingleLineEdit!
		return 'singlelineedit'
	case StaticText!
		return 'statictext'
	case Tab!
		return 'tab'		
	case VScrollBar!
		return 'vscrollbar'
	case Line!
		return 'line'		
	case Oval!
		return 'oval'
	case Rectangle!
		return 'rectangle'
	case RoundRectangle!
		return 'roundrectangle'
	case HProgressBar!
		return 'hprogressbar'
	case HTrackBar!	
		return 'htrackbar'
	case VProgressBar!
		return 'vprogressbar'
	case VTrackBar!
		return 'vtrackbar'
	case StaticHyperlink!
		return 'statichyperlink'
	case PictureHyperlink!
		return 'picturehyperlink'
	case else
		return '!'
end choose

return '!'
end function

     
Name Owner
pfc_n_cst_luw.of_postupdate pfc_n_cst_luw
pfc_n_cst_luw.of_updateprep pfc_n_cst_luw
pfc_n_cst_luw.of_updatespending pfc_n_cst_luw
pfc_n_cst_luw.of_validation pfc_n_cst_luw
pfc_n_cst_luw.of_update pfc_n_cst_luw
pfc_n_cst_luw.of_accepttext pfc_n_cst_luw

     
Name Owner
powerobject.typeof powerobject

     
Full name
No Data

     
Name Scope
No Data