IF locate ("H", "allocate", "collterm") **** test for left letter h in field collterm in database allocate endif>If you don't have or want an index, LOCATE can help:
>SELECT Allocate >LOCATE FOR LEFT( Allocate.CollTerm, 1 ) == "H" > >IF FOUND( "Allocate" ) >... etc. > >ELSE >... the record pointer is moved to EOF() > >ENDIF >>>Sorry my mistake - obviously scan will not work - I was trying to bypass indexing issue - but in the current context there is no way to complete scan processing and exit. So back to seek(). If I open the database before hand and index then issue your command lines it works but I thought your intention was to eliminate the need for activating the index (order) and opening the database. At any rate I have found an easy way to access the information I need - I am just curious in future how I would get this to work.
>>>IF SEEK(" 10313", "Orders", "OrderDate") >>>* Process records for this date >>>ENDIF >>>>>>
>>>IF scan("H", "Allocate", "Collterm") >>>*** letter found or not >>>ENDIF >>>>>>