Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get records
Message
De
30/08/2004 14:01:16
 
 
À
30/08/2004 13:48:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00937427
Message ID:
00937740
Vues:
18
COPY TO doesn't leave the new table open. You need to open it before using RECCOUNT (). If you use _Tally instead of RECCOUNT (), you don't need to open the table.
FOR i = 1 TO 14 && assume 20 values for flag
   lnTotalNeedingCopy = (thisform.text1.Value * i) - lnTotalCopied
   SEEK i
   COPY TO temp1 NEXT (lnTotalNeedingCopy) WHILE no = i
   lnTotalCopied = lnTotalCopied + _Tally
   SELECT aliq1
   APPEND FROM temp1
   SELECT aliq
NEXT
HTH

>i get error message (Alias is not found)
>SET SAFETY off
>
>USE aliq1
>SELECT 0
>USE aliq EXCL
>INDEX ON no TAG no
>lnTotalCopied = 0
>
>FOR i = 1 TO 14 && assume 20 values for flag
>   lnTotalNeedingCopy = (thisform.text1.Value * i) - lnTotalCopied
>   SEEK i
>   COPY TO temp1 NEXT (lnTotalNeedingCopy) WHILE no = i
>   lnTotalCopied = lnTotalCopied + RECCOUNT('temp1')
>   SELECT aliq1
>   APPEND FROM temp1
>   SELECT aliq
>NEXT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform