Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scan endscan break
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Scan endscan break
Miscellaneous
Thread ID:
01276291
Message ID:
01276291
Views:
75
I another database language I use there is a powerful FOR loop...
for each customer where customer.country='USA' 
    break by customer.state no-lock:

    if first-of(customer.state) then do:
        /* do something with first record */
    end.

    /* do something with records */
   
    if last-of(customer.state) then do:
        /* do something with last record  */
    end.

end.
Scan endscan sort of does this but I cannot break. Can VFP do something like this?
Next
Reply
Map
View

Click here to load this message in the networking platform