Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limit on the size of macro substitution?
Message
De
29/07/1999 13:39:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/07/1999 09:58:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00247651
Message ID:
00247800
Vues:
20
>I have a macro substitution in an SQL statement as:
>
>SELECT &gcSelect FROM ....
>
>The SQL is bombing because the string being used in gcSelect is 391 characters long. Is this a limitation on macro subs in SQL or is this a limitation in VFP itself. I notice that if I try to evaluate the variable gcSelect in the debugger, it is truncated. Again, didn't know if this was a limitation on the watch/locals window or VFP itself.
>
>Any thoughts?
As Ed said test your SQL w/o macro substition to check if it really has someother problem (ie: forgotten having extra quotes around char expr).
It's hard to check in debugger I simply do a :
activate screen
? lcExpr
for checking.
Macro expansion limit AFAIK is 8192 which is also max. command line limit. But it's a lot :) I don't think your problem is the macro itself.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform