Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate and Macro
Message
 
À
01/11/2004 09:22:58
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
00956257
Message ID:
00956596
Vues:
10
Thank walther,

I progress but I still have problems
 PRIVATE dvd
  dvd = DATE()


  ccondit1 =  "IIF(ISNULL( e.iid ), ?dvd BETW TTOD( R.dentree ) AND IIF(
EMPT( R.dsortie ) , ?dvd , TTOD( R.dsortie )),"+ ;
    "?dvd BETW e.ddebut AND IIF( EMPTY( e.dfin ) = .T.,"+;
    "IIF( e.ltransfert = .T. ,IIF(EMPTY( R.dsortie),?dvd ,TTOD(
R.dsortie )),"+ "?dvd ),e.dfin))"


  INSERT INTO Sit ( nNombre,  cCause ) ;
    SELECT COUNT( RECNO() )  , 'Résidants Présents dont :' FROM
(AMLINE!Resident AS 'R';
    LEFT OUTER JOIN AMLINE!Etats AS 'E' ON R.iid = e.iresidentid ) WHERE &ccondit1
Missing expression (Error 152)
when I replace dvd by date() all functions well.

What can i do ?

Bedank

bernhart




>Hi bernhart,
>
>>Bonjour Walter,
>>
>>What do we do if a macro is larger than 254 caractères ?
>
>You can use macro substitution with strings larger than 254 character. Probably them problem is that you cannot have literal string larger than that. so a work arround might be:
>
>
cCommand = "SELECT ... FROM ..... INNER JOIN " + "WHERE ....  "+ " INTO CURSOR x"
>&ccommand
>
>Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform