Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a limit on length of string to macro?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01320797
Message ID:
01321052
Vues:
17
>Just adding to what has been said that the easiest way for me to find a limit of a command is to use:
>
>
>try
>	lcCmd			= Replicate('*', 8190)
>	&lcCmd
>	lcCmd			= Replicate('*', 8191)
>	&lcCmd
>catch
>	? 'Did not work for ', Len(lcCmd)
>endtry
>
>* or
>
>try
>	lcCmd			= Replicate('*', 8190)
>	Execscript(lcCmd)
>	lcCmd			= Replicate('*', 8191)
>	Execscript(lcCmd)
>catch
>	? 'Did not work for ', Len(lcCmd)
>endtry
>
Thank you for illustrating the point. My string was considerably shorter but didn't work. I suspect that the content of my string somewhere was causing the problem. So, to get around it, I have changed the way the string is created (it is much shorter and much simpler) and all works well now.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform