Page 1 of 1

A "find" command for variables??

Posted: Fri Oct 09, 2026 6:04 pm
by dunbarx
I recall that somewhere there is a command that covers finding a string in a container, such as a variable. Something like “revFind…” This would expand the command from being limited to fields.

Does anyone recall such a thing? I am sure it was discussed on this forum, though a decade or more ago.

Craig

Re: A "find" command for variables??

Posted: Sun Oct 11, 2026 3:40 am
by FourthWorld
Describe what you need, and one of us can write a function for that in a few minutes. If you want to write it yourself see either lineOffset or offset, noting the placeholder variable (linesToSkip or charsToSkip) from the description.

Re: A "find" command for variables??

Posted: Mon Oct 12, 2026 2:42 am
by dunbarx
Richard.

Thanks, but I can do that as well.

But your post implies that there is no such variable-based command in LC. Perhaps I was dreaming when I thought there was, that it was discussed here, that it was either poorly documented or not at all, and that it took the form "RevFind...".

I really expected someone to say, "sure there is, and it is ..."

Craig

Re: A "find" command for variables??

Posted: Wed Oct 14, 2026 8:20 pm
by FourthWorld
dunbarx wrote: Mon Oct 12, 2026 2:42 am But your post implies that there is no such variable-based command in LC.
True. The "find" command is a user-interface feature, finding and hiliting instances of a search term. To return a list of of such occurrences would require a function, one made very efficient in LC with the placeholder param.