of_addobject


pfcapsrv.pbl   >   pfc_n_cst_security   >   of_addobject   

Full name pfc_n_cst_security.of_addobject
Access protected
Extend of integer
Return value integer
Prototype protected function integer of_addobject(string,string,string,string,string)

Name Datatype
No Data

Name Datatype
li_rc integer

protected function integer of_addobject (string as_app, string as_winname, string as_object, string as_objecttype, string as_desc);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_addobject
//
//	Access:  protected
//
//	Arguments : as_app : application
//					as_winname : window name
//					as_object : object name
//					as_objecttype : object type
//					as_desc : description of object
//
//	Returns:  integer; Return code from import string
//	
//
//	Description:  Add an objects information to the template Datastore
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
// 5.0.03 Remove Non Printing chars from description
// 6.0 	Marked obsolete 
//
//////////////////////////////////////////////////////////////////////////////
//
//	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
as_desc = inv_string.of_removenonprint(as_desc) // remove potential CRLF pairs
li_rc = ids_updates.importstring(as_app+'~t'+as_winname+'~t'+as_object+'~t'+as_objecttype+'~t'+as_desc )  
if li_rc < 0 then
	messagebox('Security Scanner','Error on importstring. Error code = '+string(li_rc)+'. Attempted to import the following string ~r~n'+as_app+'~t'+as_winname+'~t'+as_object+'~t'+as_objecttype+'~t'+as_desc)
end if
return li_rc

end function

     
Name Owner
pfc_n_cst_security.of_scandatawindow pfc_n_cst_security
pfc_n_cst_security.of_scanwindow pfc_n_cst_security
pfc_n_cst_security.of_scancontrolarray pfc_n_cst_security

     
Name Owner
datastore.importstring datastore
systemfunctions.messagebox systemfunctions
systemfunctions.string systemfunctions
pfc_n_cst_string.of_removenonprint pfc_n_cst_string

     
Full name
No Data

     
Name Scope
No Data