of_findwindow


pfcapsrv.pbl   >   pfc_n_cst_platformsol2   >   of_findwindow   

Full name pfc_n_cst_platformsol2.of_findwindow
Access public
Extend of unsignedinteger
Return value unsignedinteger
Prototype public function unsignedinteger of_findwindow(string)

Name Datatype
No Data

Name Datatype
li_whnd uint
ll_idx long
ll_upper long

public function unsignedinteger of_findwindow (string as_window_name);//////////////////////////////////////////////////////////////////////////////
//
//	Function: of_FindWindow
//
//	Access:  public
//
//	Arguments: as_window_name - window text to search for
//	
//
//	Returns:  uint  - window handle
//	
//
//	Description:  Return the handle of the window passed in by window name (Window Title)
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0.02   Initial version
// 7.0 	Moved the class names into an instance array.  Allow for multiple 
// 		class names.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

uint 		li_whnd
long 		ll_idx, ll_upper

ll_upper = UpperBound(is_ClassName)

FOR ll_idx = 1 TO ll_upper
	li_whnd = FindWindowA( is_classname[ll_idx], as_window_name)
	IF li_whnd > 0 THEN
		EXIT
	END IF
NEXT

return li_whnd

end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.upperbound systemfunctions
pfc_n_cst_platformsol2.FindWindowA pfc_n_cst_platformsol2

     
Full name
No Data

     
Name Scope
No Data