Bit value: 8192
Works just like the MMO'SCH (search) mode, except that in addition to the code returned indicating whether the pattern was found, it returns the remainder of the line the pattern was found on in the TEXT parameter. Since you also use the TEXT parameter to specify the search pattern, you may want to make a copy of it for later use.
This mode is useful for implementing table lookup. For example, using the invoicing terms memo shown above, you might have the code "3" in the terms field of the invoice record and wish to print the actual terms on the invoice. You would pass "3." to INMEMO as the search pattern, and it would return "On Invoice" as the response.
Indexing: You will probably need some sort of indexing method for managing special purpose table and menu memos. (These would not normally be attached to standard data records.) If you are managing a relatively small number of these tables or menus (up to, say, 100), you may want to store the index itself as a memo and use another table lookup operation to locate the memo record number in the index. We provide a ready-to-interface on-line help system built on this architecture. See the description of the MMO'ISL: Insert Into Sorted List opcode and the discussion of the On-Line Help and Pop-Up Pick Lists in the Calling Parameters section for more details.
Of course, you are always free to build any other type of memo index externally - the only requirement is that you be able to quickly locate the index record for a particular menu or table name (e.g. "SHIPPING METHOD", "TERMS", etc.), and that the index record then contain the starting memo link.
Of course, you are always free to build any other type of memo index externally - the only requirement is that you be able to quickly locate the index record for a particular menu or table name (e.g. "SHIPPING METHOD", "TERMS", etc.), and that the index record then contain the starting memo link.
For tables in which the items are each one line and the search key is always at the beginning of each line, you may find that MMO'TBL + MMO'ISL is easier to use.