Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command line length 8,192
Message
From
15/07/2014 09:23:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
14/07/2014 14:26:13
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01603641
Message ID:
01603690
Views:
115
>>>I agree it seems to be something other than command line length, except that even when there is no syntax error in the concatenated string, it generates a syntax error after exceeding a certain length.
>>
>>Have you tried to save the command as a file, and use execscript() to run it? How many times does the loop run before it errors?
>
>execscript fails at the same length just using the memvar. I would not ever want to create a file to execute for something like this.

You don't need to want to. VFP does that for you. Check your temp folder after each execscript().

BTW, wasn't it "the length of compiled command" that's limited to 8k? And it seems it reserves some space in it for local numerics, names, repackaging parameters etc, so YMMV. The size of compiled command may not be proportional to the size of its source.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform