Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a limit on length of string to macro?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01320797
Message ID:
01321052
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform