Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stuff an unpacked macro into a string
Message
De
21/03/2001 15:46:51
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00487357
Message ID:
00487361
Vues:
9
>Yes, you reach the string limit. Just try ?eval("["+repl("r",256")+"]") to reproduce it.
>
>>>>>>>>>>>>>>>>>..your message below
>There was a way, and I did it once, but I can't remember where, to unpack a macro and stuff the expanded version of it into a string.
>I did
>
>x=' uuuu '
>lcsel=' aaaa &x eeeeee'
>?
>?eval("["+lcsel+']')
>
>and it printed "aaaa uuuu eeeeee" as expected. But somehow I can't do that for a longer string...
>
>
>lcsel=' aaaa &x eeeeee'+repl('z', 126)
>?eval("["+lcsel+']') && this works
>lcsel=' aaaa &x eeeeee'+repl('z', 1260)
>?eval("["+lcsel+']') &&
>
>The error I'm getting is "Command contains unrecognized phrase/keyword." Does that mean I've hit some limit on the length of the string submitted to eval()? Does anyone have any experience with this?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform