
This method will update a portion of the Html document currently loaded, by replacing specified text with new text. This method is useful for retrieving input values of form controls in the Html document.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_Html_ReplaceText MyControlReference [as Reference] OldHtmlCode [as String] NewHtmlCode [as String]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_Html_ReplaceText ProjectFile [as String] DialogName [as String] ControlName [as String] OldHtmlCode [as String] NewHtmlCode [as String]) |
Copy Code |
|---|
; Replace this snippet (Odcl_Html_ReplaceText MyProject_MyForm_MyControl "<b>Chance</b>" "<b>luck</b>") |