|
Post by tanger32au on Dec 18, 2018 21:51:52 GMT
Is it possible to run a JB program from with JB itself? I have a small program I want to run from within JB.
|
|
|
Post by tsh73 on Dec 19, 2018 8:38:28 GMT
Not BAS program itself, but compiled to TKN. Read HELP on RUN.
|
|
|
Post by B+ on Dec 19, 2018 15:13:59 GMT
I turn an editor (Notepad) into a calculator tape using JB's RUN command and JB interpreter: 'create file on desktop file$ = "C:\Users\marka\Desktop\data.txt"
'open notepad and write a bunch of numbers to add, one per line ' if file is not started will get messagebox to start it, click yes run "notepad ";file$
'wait to finish edit and save data.txt in Notepad input "Press enter when ready to total data.txt file."; wait$
'now open the file and add up the numbers open file$ for input as #1 while eof(#1) = 0 input #1, dat$ total = total + val(dat$) wend close #1 print "The total of data.txt is ";total
You can also use CommandLine$ to issue commands to your JB program while RUNning from JB or from normal Window.
|
|
|
Post by tanger32au on Dec 20, 2018 1:02:41 GMT
Thanks, that worked well.
|
|