I have a problem with the find command.
I try to find some words within a text field. Each word is a key for
finding the line there this keyword (and the needed information) is on.
What I want to do is searching through the _whole_ field. What the find
command does is starting to search at the position there the last hit was.
This means that find fails if the position of the string I'm looking for is
before the position of the last hit. (I know that find will get it if I try
it a second time, but I want give some error messages.)
Has somebody had the same problems and found a workaround?
What I did is using the offset function:
put offset(SearchString, "Reference") into FirstChar
select char FirstChar of fld "Reference"
put the selectedLine into LineIamLookingFor
Not very elegant, but it works.
Greetings
Michael
+---+---+-+-+-+-+-------------------------------------------------------+
| | +-+-+-+-+ | Dipl.-Inform. Michael Hoenen |
+---+---+-+-+-+-+ | Fraunhofer Institut fuer |
| | +-+-+-+-+ | Materialfluss und Logistik (FhG-IML) |
+---+---+-+-+-+-+ | Abt: Modellierungsmethoden |
| | ### # # # | Joseph-von-Fraunhofer-Str. 2 - 4 |
| /~~~ / /~~| # ### # | 44227 Dortmund, Germany |
| /-- /__ / - | # # # # | Tel: +231-9743-448 Fax: +231-9743-234 |
|/ / / /__/ | ### # # ### | email: hoenen@iml.fhg.de |
+---------------+--------------+----------------------------------------+