The information in this article applies to:
SUMMARYIf a search direction is not specified with the Microsoft WordBasic EditSearch or EditFind statements, the search routine may exhibit erratic behavior. The search statement may find the next instance of a search string, the previous instance, or nothing at all. This behavior occurs because the search function of Word for Windows remembers the last direction and uses this as the default for the next search. MORE INFORMATIONThe following WordBasic statements behave differently depending on the current search direction and the position of the insertion point. Word for Windows 2.x and laterEditFind .Find = "Word"Word for Windows 1.xEditSearch .Search = "Word"Values for the .Direction Parameter
The default is the direction used in the previous search or 0 (zero)
the first time the Find or Replace command is run.
Word for Windows 2.x and later
To force a consistent search, always specify the direction to search.
For example, the following macro will always search upwards towards
the beginning of the document from the insertion point:
To search the entire document, move the insertion point to the
beginning of the document and set the direction parameter to 2 (search
forward without prompt).
REFERENCES"Using WordBasic" by WexTech Systems, Inc. and Microsoft Corporation, page 180. Additional query words: winword2 1.0 1.10a 2.0 winword 7.0 word95 word7 word6 editfind editsearch text found direction find
Keywords : |
Last Reviewed: October 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |