Gerald Magnuson wrote:
> 
> I need to provide a method to scan for a character string
> contained anywhere within a field 25 characters long..
> The user wants this to be an INTERACTIVE process.

This is not a new request by users...no matter how silly it sounds,
I suspect we all have heard of this or even worse....

IF they insist, try this:

1.Write a small cmd to prompt for scan characters.
2.Write an opnqryf using the *ct option that will find any occurence.
3.Write a small subfile program to display the results.


If you want some more pain & suffering, you could also put in the
wild card feature ... More ""''""'"''("")"""""''''''.......

This will NOT have blazing results, but should run in a reasonable
amount of time.. This is NOT an example of good program design, but it
will work reasonably well for smaller files.... Sounds like the user
does at least understand that it "might" take a little longer than
usual.

It sort of strange to see one of these work... When the subfile gets
full and a reload occurs, you see the query counting & looking at the
bottom of your inquiry.... (tell user this is a feature)

You will also need a method of looping through this CLP for more search
requests....
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].