Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rethinking a prg
Message
De
06/12/2001 15:24:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00590759
Message ID:
00590781
Vues:
24
>>>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform