Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
With Buffering = .T
Message
De
06/02/2019 12:41:18
 
 
À
06/02/2019 12:11:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Divers
Thread ID:
01665963
Message ID:
01665965
Vues:
105
J'aime (1)
>Hi,
>
>I need to make a cursor from my tables inclusive all records in buffer, so constructed:
>
>
>SELECT ;
>[Nr.: ]+DTOC(T1.datumvan) +[ ] + DTOC(T1.datumtot) +[ ] +ALLTRIM(T2.voornaam)+ [ ] + T2.famnaam  as declaratie, ;
>T1.id , ;
>T2.ID as nawID FROM declaraties T1 ;
>JOIN naw T2 on T1.inaw=T2.ID ;
>WITH (BUFFERING = .T.) ;
>WHERE !EMPTY(T1.datumvan) ;
>INTO CURSOR curcboDeclaraties NOFILTER READWRITE
>BROWSE NORMAL
>
>Resulting in error "Command contains unrecognized phrase/keyword."
>The line
>
>WITH (BUFFERING = .T.)
>
>or
>
>WITH ('BUFFERING' = .T.)
>
>
>no difference
>
>How am I supposed to compose this correctly?
>
>Regards,
>
>Koen

From what I gather what is stated in the help, the WITH clause goes with the tables being referenced in the FROM and JOIN -- so relocating the WITH clause is probably what you need to do::
SELECT ;
[Nr.: ]+DTOC(T1.datumvan) +[ ] + DTOC(T1.datumtot) +[ ] +ALLTRIM(T2.voornaam)+ [ ] + T2.famnaam  as declaratie, ;
T1.id , ;
T2.ID as nawID FROM declaraties T1 WITH (BUFFERING = .T.) ;
JOIN naw T2 WITH (BUFFERING = .T.) on T1.inaw=T2.ID ;
WHERE !EMPTY(T1.datumvan) ;
INTO CURSOR curcboDeclaraties NOFILTER READWRITE
BROWSE NORMAL
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform