Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rethinking a prg
Message
From
06/12/2001 15:24:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00590759
Message ID:
00590781
Views:
23
>>>I want to know if a program or a report is the way to go on this.
>>>I have a transaction file: stock#, itemname, price, qty. If I want to see a listing(or report) of each different stock# with the number sold and the dollar amt sold, would a prg have to be the way to accomplish this?
>>
>>
>>A SELECT statement or view could handle this for you.
>
>Got any select statements on you?

How about:
select * from Transaction;
  where TransactionDate between ldFromDate to ldToDate;
  order by TransactionDate;
  into cursor Temp
scan
  ? StockNumber, ItemName, Price, Quantity
  * "?" is useful for creating a text-file.
endscan
What else do you need?

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform