of_globalreplace


pfcapsrv.pbl   >   pfc_n_cst_string   >   of_globalreplace   

Full name pfc_n_cst_string.of_globalreplace
Access public
Extend of string
Return value string
Prototype public function string of_globalreplace(string,string,string)

Name Datatype
No Data

Name Datatype
ls_null string

public function string of_globalreplace (string as_source, string as_old, string as_new);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_GlobalReplace
//
//	Access:  		public
//
//	Arguments:
//	as_Source		The string being searched.
//	as_Old			The old string being replaced.
//	as_New			The new string.
// 
//Returns:  		string
//						as_Source with all occurrences of as_Old replaced with as_New.
//						If any argument's value is NULL, function returns NULL.
//
//	Description:  	Replace all occurrences of one string inside another with
//						a new string.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.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.
//
//////////////////////////////////////////////////////////////////////////////

//Check parameters
If IsNull(as_source) or IsNull(as_old) or IsNull(as_new) Then
	string ls_null
	SetNull(ls_null)
	Return ls_null
End If

//The default is to ignore Case
as_Source = of_GlobalReplace (as_source, as_old, as_new, True)

Return as_Source


end function

     
Name Owner
pfc_n_cst_sql.of_parse pfc_n_cst_sql
pfc_n_cst_error.of_message pfc_n_cst_error
pfc_w_filtersimple.of_buildfilterstring pfc_w_filtersimple
pfc_n_cst_dwsrv.of_getheadername pfc_n_cst_dwsrv
pfc_n_cst_dwsrv.of_setitem pfc_n_cst_dwsrv
pfc_n_cst_dwsrv.of_dwarguments pfc_n_cst_dwsrv
pfc_n_cst_dwsrv.of_dwarguments pfc_n_cst_dwsrv
pfc_n_cst_dwsrv.of_getitem pfc_n_cst_dwsrv
pfc_n_cst_dwsrv_find.of_buildfindexpression pfc_n_cst_dwsrv_find
pfc_n_cst_dwsrv_sort.of_buildsortattrib pfc_n_cst_dwsrv_sort
pfc_n_cst_dwsrv_sort.of_ParseSortAttrib pfc_n_cst_dwsrv_sort
pfc_n_cst_dssrv_report.of_prepprint pfc_n_cst_dssrv_report
pfc_n_cst_dssrv_report.of_SetFont pfc_n_cst_dssrv_report
pfc_n_cst_dssrv_report.of_AddCompute pfc_n_cst_dssrv_report
pfc_n_cst_dssrv_report.of_setborder pfc_n_cst_dssrv_report
pfc_n_cst_dssrv_report.of_setcolor pfc_n_cst_dssrv_report
pfc_n_cst_dwsrv_report.of_prepprint pfc_n_cst_dwsrv_report
pfc_n_cst_dwsrv_report.of_SetFont pfc_n_cst_dwsrv_report
pfc_n_cst_dwsrv_report.of_AddCompute pfc_n_cst_dwsrv_report
pfc_n_cst_dwsrv_report.of_setborder pfc_n_cst_dwsrv_report
pfc_n_cst_dwsrv_report.of_setcolor pfc_n_cst_dwsrv_report
pfc_n_cst_dssrv.of_getheadername pfc_n_cst_dssrv
pfc_n_cst_dssrv.of_setitem pfc_n_cst_dssrv
pfc_n_cst_dssrv.of_dwarguments pfc_n_cst_dssrv
pfc_n_cst_dssrv.of_dwarguments pfc_n_cst_dssrv
pfc_n_cst_dssrv.of_getitem pfc_n_cst_dssrv
pfc_n_tr.of_SetUser pfc_n_tr
pfc_w_statusbar.of_createvisuals pfc_w_statusbar
pfc_w_filterextended.dw_values.doubleclicked dw_values
pfc_w_filterextended.open pfc_w_filterextended
pfc_w_filtersimple.pfc_postopen pfc_w_filtersimple
pfc_w_zoom.em_zoom.enchange em_zoom
pfc_w_zoom.pfc_apply pfc_w_zoom

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.setnull systemfunctions
pfc_n_cst_string.of_globalreplace pfc_n_cst_string

     
Full name
No Data

     
Name Scope
No Data