Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using function sum
Message
De
22/04/2015 02:06:55
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
21/04/2015 16:15:39
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01618914
Message ID:
01618937
Vues:
42
>Hello comunity
>
>I would like to know if i can use an alias with the sum function.
>
>Suppose i have several client orders like This:
>
>Article quantity requested. Quantity in invoice. rest.
>B001 30. 10. 20.
>B001. 25. 0. 25
>
>Now i introduce my supplier order request
>Article. Qtt
>B001. 30
>
>I make the scan for my clients order and i must check the quantity That i can satisfy with my supplier order.
>Then for the for the first line of my client order, i can satisfy 20 (30-20) the rest on supplier order is equal to 10.
>I Need to keep the value of 10, because for the line 2 of my client order the value is 25, then i can only satisfy the value of quantity 10.
>
>If i use :
>Sum qtt into my cursor crssupplier
>
>I lost the value of 10 because the scan have move the focus the the secund line of my client orders.
>
>Is it possible to use the value stored in my cursor crssupplier with an aliás?, in This case when the cursor move to the line 2 of my client order, the value of rest must be equal to 15.
>
>Many thanks,
>Best regards
>Luis santos

please give a code snippet of your scan.
Consider to use SELECT SQL to solve your problem
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform