Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a limit on length of string to macro?
Message
 
 
To
31/05/2008 21:26:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01320797
Message ID:
01320819
Views:
13
>>Hi,
>>
>>I have come across an issue where when I try to macro expand a string (that contains INSERT command) and the string is over 612 characters I get error. If the string is less than 612, macro works.
>>
>>Is there a limit? And if there is, if there a way to get around it?
>>
>>Thank you in advance for any help.
>
>The following quick test works:
>
>
>x = "0"
>FOR i = 1 TO 500
>  x = x + " + 1"
>next
>? &x
>
>
>String length is 2001.
>
>I would say, check the syntax. Or some built-in limitation of the corresponding SQL command.

Thank you, Hilmar. The string I create for macro is passed from one function to another. Perhaps this is where I hit the limit.

Thank you, ALL, for your suggestions.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform