If you are using Search:
NotFound(Off!) OnNotFound(NextLabel)
// the search routine here
Label (top)
SearchString("The String")
SearchNext()
// other steps to perform
Go(Top)
// the commands to perform once the search fails
LABEL(Nextlabel)
NotFound(On!) // cancel out the Notfound
OnNotFound()
If you are scrolling through with Position commands:
Repeat // your steps to be repeated // should include a PosCharNext or similar command Until(?RightCode = 0 AND ?RightChar = "")
Or,
WHILE(?RightChar <> "" OR ?RightCode <> 0) // your steps to be repeated // should include a PosCharNext or similar command ENDWHILE
Terms of Use:
You may include the code displayed here in your own macros with the following conditions:
| The code must be included in its entirety, including copyright and header information. | |
| You may use the code in macros used within your own organization, as part of your job, for your employer, or for your own personal use. | |
| You may modify the code to meet your own needs. | |
| If you modify any code in the routine, you must comment out the original line of code, and leave that original line intact, then type a new line of code with the change that you made. You must then add a comment noting your change. | |
| You may not use the code in macros you create for hire, other than at your regular work for an employer, where the macrowill be used in-house. For example, you may not use this routine in macros you create, modify, or convert for hire as a consultant for a company or individual that you are not a regular employee for. | |
| You may not sell or publish macros that use this routine in any form. | |
| You accept full responsibility for macros that you include this routine in. | |
| J. Jeppson will not be obligated to make the code work for you, or for your particular need or usage. | |
| Under no circumstances will J. Jeppson be held liable for any damages or liabilities incurred while using this code. |