Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a limit on length of string to macro?
Message
 
 
To
02/06/2008 10:06:00
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:
01321049
Views:
12
>
>Passing parameters doesn't have a practical limit. The following works without problem:
>
>
>clear
>x = REPLICATE("abc", 100000)
>function_a(x)
>
>FUNCTION function_a(tcpar)
>	? LEN(x)
>ENDFUNC
>
>
>(Length of parameters = 300,000)
>
>In any case, it is worthwhile to try to check each aspect separately, e.g., parameter passing, macro expansion, SQL command.
>
>For example, you can build the entire SQL command - you don't even need macro expansion for this - as a string, and then execute it all at once. For example, if the list of fields is variable:
>
>
>lcCommand = "select " + lcFieldList + " from MyTable"
>&lcCommand
>
Thank you.
"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