putting a relative large amount of data in 1 line into a field :^)
Dar Scott
dsc at swcp.com
Wed Jun 25 12:36:01 EDT 2003
On Wednesday, June 25, 2003, at 09:55 AM, wouter wrote:
> But this doesn't explain why, if the number of characters is still
> within the limit of one line, they don't all show when copied in 1
> chunk from the variable to the field.
Here is my test:
on mouseUp
set the numberFormat to "000000000."
put empty into x
repeat with i = 10 to (field "Length") step 10
put i & space after x
end repeat
put "A" into char -1 of x
put x into field "Test"
put the length of field "Test" into field "Report"
end mouseUp
It uses fields "Length", "Test" and "Report". I used the numberFormat
so each word and a space is ten chars.
Field "Test" has both scroll bars and "dontWrap" is off.
I find wrap problems at about 9930 characters and above. I can't
scroll to the data, but I can insert line ends to eventually see it.
Sometimes the last portion displays as a blank line, but I can click on
it and hit return.
I added one line to the script:
put "B" after field "Test"
This caused an unexpected quit when the field line was full.
Both the wrap problem and the crashes are bugs in my opinion. Wow!
You find two in one blow! Are you going to report these? If you don't
like the line length limit, comment on that, too.
Dar Scott
More information about the use-livecode
mailing list