IntControl(1006...) and Strings Larger than 261 Characters
Keywords: Intcontrol(1006,0,0,0) Message
Question:
I'm using the Intcontrol(1006 function. I've got an unparsed command line that's more than 261 chars long.With the following code:
unparsed=IntControl(1006,0,0,0,0) Message(StrLen(unparsed), unparsed)In Windows 95/98 the variable contents come in OK (it displays more than the 261 chars.)In Windows NT 4.0, the message statements only displays up to 261 chars. I don't get an error message but it won't display past that.
Do you have any idea why the differences between the two operating systems?
Answer:
It's there. Maybe save it to a file and look at it.It is limitation of the windows message box function. It was not designed for real long strings.
Question:
When I use IntControl(1006,0,0,0,0), I get what I expect in a Winbatch interpretted script (version 99p). In a compiled script (large .exe), however, I get a blank string.Any ideas?
Answer:
Ummmm. What are your test cases?In an interpreted script you get the command line passed to WinBatch.exe which is usually the name of the WBT file followed by other parameters.
In a large exe no WBT file information is passed. If you don't pass any parameters you will get a null string.
Article ID: W14229Filename: Intcontrol 1006 and Strings Larger than 261 Chars.txt