Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a command to do this?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Is there a command to do this?
Miscellaneous
Thread ID:
00264155
Message ID:
00264155
Views:
78
I want to scan through a table, but from bottom to top, not top to bottom. I could use SKIP -1 or I could sort the table in reverse order and then SCAN. Or is there a better way to read a table starting from the last record to the first record?

Or I may just end up using a SELECT-SQL to find the matching records in the table, but the newest records are at the bottom and I need to search the newest records to the oldest records looking for matching criteria.

For example - I could have a Title of a Document such as "Birth Certificate" in a MEMO field named TableofContents. It could appear in some or all or no records. If it appears in more than one record I need to grab the newest (date-wise) record that has the word "Birth Certificate" in the MEMO field. Or I could have other words such as "Death Certificate" and the same rules apply where I have to start at the bottom of the file and work my way to the top of the file looking for the newest record containing the words "Death Certificate." Or I could have "Birth Certificate" and "Death Certificate" in the same MEMO field along with other "Certificate" names.

I hope you get the picture. It's hard to explain this one. Any ideas? Thanks for your help.

Steve Kramer
Tampa Bay, Florida
"GO AWAY FLOYD!"
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform