Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command line length 8,192
Message
From
14/07/2014 13:50:05
John Baird
Coatesville, Pennsylvania, United States
 
 
To
14/07/2014 13:47:50
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:
01603650
Views:
81
>>>Hey all
>>>
>>>Is there a caveat missing from the help? I just built a set of command strings like this.
>>>
>>>
CLEAR
>>>CREATE CURSOR csrTest (cField1 c(10))
>>>lcCmd = ""
>>>DO WHILE LENC(m.lcCmd) < 4740
>>>	lcCmd = m.lcCmd + "csrTest.cField1 with csrTest.cField1,"
>>>ENDDO
>>>?LENC(m.lcCmd)
>>>lcCmd = LEFTC(m.lcCmd,LENC(m.lcCmd)-1)
>>>replace &lcCmd. IN csrTest
>>>
>>>The number 4740 is differing based on the actual alias and field names. The help says 8192 is the command line length. Obviously that's not completely accurate. What is the maximum length? How can one determine the maximum length before executing?
>>>
>>>Thanks
>>
>>
>>
>>lc_command = "WAIT WINDOW NOWAIT "
>>DO WHILE .T.
>>  lc_command = lc_command + "1"
>>  &lc_command
>>  ? LEN(lc_command)
>>ENDDO
>>
>>With VFP 9 the last length displayed before this crashed was 8190
>
>Hi Bill
>
>That is not a scientific proof. That only proves that in certain circumstances the line length is 8192. My question was why it is not 8192 in the sample I gave.
>
>Thanks


SWAG: Is it double byte?
Previous
Reply
Map
View

Click here to load this message in the networking platform