mark
New Member
Posts: 24
|
Post by mark on May 30, 2020 12:29:25 GMT -5
Hi all. I have written a program using .bas files. It contains several .bas files as well as graphics and sound in folders etc.. Can someone direct me to where it explains how to create an .exe program? I can't seem to find out how. I have even made the .tkn files. The program works fine. I just need to know how to finalize it into the standalone. Thanks
I also have the Beginning Programming with Liberty BASIC book but can't find it in there either. Please direct me. Thanks.
|
|
|
Post by metro on May 30, 2020 12:39:49 GMT -5
|
|
mark
New Member
Posts: 24
|
Post by mark on May 30, 2020 12:57:07 GMT -5
Thanks for the links. Here is what I don't understand. Maybe you can help. I understand that you rename the runtime450 to the same name as the starting tkn but what if you have several tkn files in the same folder/program? Do you take a copy of the runtime.exe and rename it to the name of all the other tkn files also. One for each tkn file? My program runs a file then closes it and runs another file etc so I have several not just one tkn file.
|
|
|
Post by Gordon Rahman on May 30, 2020 12:59:43 GMT -5
Hi, It's under the RUN button SHIFT + F6
Gordon
Oops ... after this post I read your second post ..... So, please skip this .
|
|
|
Post by Rod on May 30, 2020 13:38:03 GMT -5
Perhaps question why you need stand alone programs. Given we have sub and function why can you not merge the entire program to one. There are few memory limitations. Close a file and it is gone, ready for the next to be loaded. One large self contained program will run just as well if not more easily than firing off several .exe programs. The big benefit is sharing info if that is required.
|
|
mark
New Member
Posts: 24
|
Post by mark on May 30, 2020 13:53:23 GMT -5
It is a very large program and just to keep me from being overwhelmed I coded in sections. Yes I could combine the files now which is probably what I will eventually do. It just made it easier to locate a code/math problem while testing. Thank you all for your responses.
|
|
|
Post by metro on May 30, 2020 14:06:26 GMT -5
It is a very large program and just to keep me from being overwhelmed I coded in sections. Yes I could combine the files now which is probably what I will eventually do. It just made it easier to locate a code/math problem while testing. Thank you all for your responses. This is what I started to do so I can use unrelated programs from one location. Created tkn's for each program and an exe for my main menu program, then dumped all of them into a folder on my desktop with an icon shortcut to the mainmenu.exe one day I'll actually complete it
EDIT: ok I've created a cut down version of the code to just show how to "run" just two of the tkn's hope that helps
nomainwin WindowWidth = 400 WindowHeight = 400 UpperLeftX = int((DisplayWidth-WindowWidth)/2) UpperLeftY = int((DisplayHeight-WindowHeight)/2) button #1.aa, "Options Quotes", [p1], UL, 100, 100, 200,20 button #1.ab, "LineEdndingChange2Win", [p2], UL, 100, 130,200, 20 open "Program Manager" for window as #1 print #1, "trapclose [quit]" wait
[p1] #1.aa,"!disable" #1.ab,"!disable" #1,"hide" run "aaa7OPTION.tkn" #1,"show" #1.aa,"!enable" #1.ab,"!enable"
wait
[p2] #1,"hide" run "LineEndingsChange2Win.tkn" #1,"show" wait
[quit] close #1 end
|
|
mark
New Member
Posts: 24
|
Post by mark on May 30, 2020 14:13:50 GMT -5
Thanks metro, but I am really just a beginner and I'll have to study that code a bit before I understand it all. Its easier for me to read code I write (because its simpler) than reading what others write. Thanks for showing me. I will definitely check it out and try to learn from it.
|
|
|
Post by tsh73 on May 30, 2020 14:29:33 GMT -5
How you call next BAS program from the first one, in the first place?
I think native way is to exactly call TKN that is, from main.bas RUN "second.tkn" or RUN "runtime450.exe second.tkn"
So if you have runtime renamed to main.exe you could as well call RUN "main.exe second.tkn"
|
|
mark
New Member
Posts: 24
|
Post by mark on May 30, 2020 14:35:55 GMT -5
run "window01a.exe" [window00c.quit] close #window00c end
|
|