Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command line length 8,192
Message
 
To
14/07/2014 14:12:54
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:
01603659
Views:
59
>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.

I was suspecting SET MEMOWIDTH was at play here, inserting a soft carriage return and thus screwing the command, but even after changing it to 8192 the problem remains. I even tried to generate the command like this:
replace csrTest.cField1 with 'abc',;
csrTest.cField1 with 'abc',;
...
csrTest.cField1 with 'abc';
 in csrTest
but it also fails after certain length and I cannot see why...

Maybe you should change your strategy and work with an object from scatter name, changing its properties values in the scan loop and then gather name?
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform