Larry
New Member
Posts: 40
|
Post by Larry on Sept 29, 2019 17:30:40 GMT -5
Found the error myself I had prog$(x)=lower$(prog$(x)) so the H was not working because it was uppercase.
Ran into a bit of a puzzling situation today.
I found an esoteric programming language about 3 or 4 days ago. This little "toy" language had 9 commands and was simply more of an amusement than any thing else. The author indicated how easy it would be to create an interpretor for it, and so I though what the heck, as there was only a java interpretor for it on the main page and all of the links to other implementations were dead. There is nothing wrong with java I am sure, but I do not use it.
To make a long story short, I created a fully functional abc interpretor in QB64. Then I decided I wanted it to be an ide, and transported the code to liberty basic and made the necessary modifications. It has now become abcd because it is no longer a version that holds true to the original author's language specifications. There is still much that I want to add to it. I can now load an abcd file into my ide, and hit run to run the code however I have one problem. As long as my editor window is open. my print commands do not go to the mainwin. is there any way to print to the mainwin with a window of type window open, or a way to set the mainwin as having focus after I press my run button?
I tried print #mainwin,"some text here" as a test, and it did not work.
Thanks in advance.
|
|
|
Post by tenochtitlanuk on Sept 30, 2019 4:09:34 GMT -5
I suspect I'm missing something about your problem? Here's code doing both...
texteditor #w.te, 10, 10, 270, 200
open "test" for window as #w
#w "trapclose [quit]"
#w.te "Testing editor" print "Testing mainwin"
wait
[quit] close #w end
|
|
Larry
New Member
Posts: 40
|
Post by Larry on Sept 30, 2019 12:51:17 GMT -5
Thanks for the reply. I know in some areas of my program it works and in others it does not. However, I went a different route so to speak with the code. I decided to shrink the texteditor area, and add a groupbox with the caption Output area. Then I put a statictext inside that groupbox with the variable sto$, which is short for static text output, and whenever I need to show something to the screen it prints neatly in within the groupbox as a statictext.
|
|