of_setdropdown


pfcmain.pbl   >   pfc_u_calendar   >   of_setdropdown   

Full name pfc_u_calendar.of_setdropdown
Access public
Extend of integer
Return value integer
Prototype public function integer of_setdropdown(boolean)

Name Datatype
No Data

Name Datatype
li_rc integer

public function integer of_setdropdown (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Event:  of_SetDropDown
//
//	Arguments:
//	ab_switch   starts/stops the UserObject DropDown service
//
//	Returns:  integer
//	 1 = Successful operation.
//	 0 = No action necessary
//	-1 = An error was encountered
//
//	Description:
//	Starts or stops the UserObject DropDown service
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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_rc

// Check arguments.
if IsNull (ab_switch) then return -1

if ab_Switch then
	if IsNull(inv_dropdown) Or not IsValid (inv_dropdown) then
		inv_dropdown = create n_cst_dropdown
		inv_dropdown.of_SetRequestor (this)
		li_rc = 1
	end if
else
	if IsValid (inv_dropdown) then

		destroy inv_dropdown
		li_rc = 1
	end if
end if

return li_rc
end function

     
Name Owner
pfc_u_calendar.constructor pfc_u_calendar
pfc_u_calendar.destructor pfc_u_calendar

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_dropdown.of_setrequestor pfc_n_cst_dropdown

     
Full name
No Data

     
Name Scope
No Data