Xbasic

A5_GENERICSEARCHREPLACE Function

Syntax

V A5_GenericSearchReplace(P pointer [,C active_tab [,L scripteditorMode ]])

Arguments

pointer

A dot variable containing the text displayed in the control.

active_tab

Optional. Specifies which tab on the dialog will have initial focus.

scripteditorMode

Logical

Description

The A5_GENERICSEARCHREPLACE() function displays the Find/Replace/Goto dialog box for a text object on an Xdialog form.

Options for active_tab are 'Find', 'Replace' and 'Goto'

Example 

dim ptext as P
dim ptext.text as C
dim ptext.object as P
ptext.text = "some text"
ui_dlg_box("title",<<%dlg%
.20ptext;
;
%dlg%,<<%code%
if (a_dlg_button = "Find") then
       a5_genericsearchreplace(ptext)
       a_dlg_button = ""
end if
%code%)

Limitations

Desktop applications only.

See Also