|
Post by meerkat on Mar 22, 2019 16:59:45 GMT -5
This is a novice question. But how do you get data from a texteditor.
WindowWidth = 350 : WindowHeight = 200 textbox #w.txt, 20, 10, 260, 25 texteditor #w.nte, 20, 040, 260, 090 button #w.go, "GO", [go], UL, 20, 150, 041, 025 open "Test editor" for window as #w #w.txt "test" #w.nte "abcd efg hijk lmn op 1234 5678 9012" wait [go] a$ = #w.txt contents$() b$ = #w.nte contents$() print "a:";a$ print "b:";b$
close #w wait Thanks for the help... Dan.
|
|
|
Post by metro on Mar 22, 2019 19:22:31 GMT -5
Dan, seems the new (lb5) syntax doesn't work in this case (I could have it wrong) and the old way only works one way edit: am I correct we now have line wrap in an editor?
'THIS WON'T WORK #w.nte, "!selectall" ; #w.nte, "!selection? b$" ; ' BUT THIS DOES print #w.nte, "!selectall" ; print #w.nte, "!selection? b$" ;
|
|
|
Post by meerkat on Mar 22, 2019 21:08:13 GMT -5
Thanks.. I owe you big time for all your help.. Dan
|
|
|
Post by Carl Gundel on Mar 23, 2019 11:18:48 GMT -5
This is a novice question. But how do you get data from a texteditor. <code snipped>
Thanks for the help... Dan. This is fixed for build 349 so that the code will work as you wrote it.
|
|