|
Post by Mark Dunham on May 7, 2021 22:59:49 GMT -5
When populating a large textbox with data is there a carriage return or another method of having my variables printed out on individual lines versus one long run on sentence? I don't know why all these code boxes are in this post it won't let me remove them either.
|
|
|
Post by tsh73 on May 8, 2021 1:58:16 GMT -5
It looks like CR LF (chr$(13); chr$(10)) will do
nomainwin TEXTbox #main.txt, 1, 1, 200, 300 open "test" for window as #main #main "trapclose [quit]" for i = 1 to 10 txt$=txt$; " item";i if i mod 3 =0 then txt$=txt$; chr$(13); chr$(10) next #main.txt, txt$ wait
[quit] close #main end
|
|
|
Post by Mark Dunham on May 8, 2021 11:03:32 GMT -5
It looks like CR LF (chr$(13); chr$(10)) will do nomainwin TEXTbox #main.txt, 1, 1, 200, 300 open "test" for window as #main #main "trapclose [quit]" for i = 1 to 10 txt$=txt$; " item";i if i mod 3 =0 then txt$=txt$; chr$(13); chr$(10) next #main.txt, txt$ wait
[quit] close #main end
Thanks I will give this a shot I did CR but did not think to do LF as well. Thansk tsh
|
|
|
Post by Mark Dunham on May 8, 2021 14:50:13 GMT -5
That worked perfectly I spent hours googling and trying different examples I never put the Carriage Return with the line feed. Thanks again always something new to learn
|
|