Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why in Earth this doesn't work?
Message
De
12/06/2001 03:19:02
 
 
À
11/06/2001 23:29:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00518203
Message ID:
00518227
Vues:
13
Ulises,
I don't know why the first command doesn't work. As Al mentioned it should work (it worked in my tests). The second won't work because the expression FOR TABLE_B.FIELDX=.T. is only evaluated once. You can easily test this. Select a record in tableB where FieldX=.t. and all records will be APPENDed. If you select a record where FieldX=.f. no records will be APPENDed.

FWIW, here's a workaround that you could use:
SELECT TableA
SCAN FOR FieldX
    SCATTER MEMVAR MEMO
    INSERT INTO TableB FROM MEMVAR
ENDSCAN
HTH

>A command as simple as:
>
>Select TABLE_A
>Append from TABLE_B FOR FIELDX=.T.
>
>it appends all records, not only FIELDX=.T.
>FIELDX in TABLE_B is a logical field.
>
>I tried also
>
>Append from TABLE_B FOR TABLE_B.FIELDX=.T.
>
>Same result.
>
>Why things apparently so simple are sometimes so complicated?
>
>TIA for your time.
>
>Ulises
Daniel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform