SCAN ... ENDSCAN Command Example
The following example uses a SCAN ... ENDSCAN loop to display all the companies in Sweden.
CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'Data\testdata')
USE customer && Opens Customer table
CLEAR
SCAN FOR UPPER(country) = 'SWEDEN'
? contact, company, city
ENDSCAN