Hello untaimed18 Will you show source code? It will greatly increase chances people here will run your program, at all.
I've attached the source. However, before running it in LB, you will want to paste the budget.dat and lastsave.dat from my .zip file located at my site in order to avoid a compilation error. Just place those files in the directory you're running the .bas from. I have yet to fix that issue on first launch. If someone has a fix for this, then great!
I run it (several times) with and without supportive DAT files
Just for kicks, BAS file without supportive DAT files (because I've seen you check these things in your code) Now, on first run it creates two empty files Only downside is that it sticks with "Loading Data Files..." status bar Later I went to File/Settings/Apply, it wrote data to lastsaved.dat (file is no more zero length) Tools/Budget/Apply, it wrote data to budget.dat (file is no more zero length) Then I closed/run it again, now it loaded files and end up with status bar saying "Loaded the 50/30/20 Formula" It does work I just don't know what it supposed to do It even checked for update - I've seen file appeared and disappeared - it says version is newest
Probably some help describing ordinary (expected by you - the author) work procedure would be good.
Just a suggestion From the look of the things, after entering "Net monthly income" in Quick Calculation group box button Go supposed to be pressed? There is ability to make this button fire on Enter, by making it form' default button: Button #main.b1,"GO", [CalCheck], UL, 270, 26, 35, 30 'set up default button 'now if enter is pressed [CalCheck] will be called stylebits #main.b1, _BS_DEFPUSHBUTTON, 0, 0, 0
EDIT It never occurred to me to save checkbox state as LB naturally has it "set" or "reset". I would do it with 1 and 0 instead, and decode to set/reset (had really done that). Something new every day.
Post by untaimed18 on Dec 28, 2020 13:15:28 GMT -5
Thanks for giving it a try! TBH I haven't taken much time to troubleshoot the .dat file situation because I always have them present at install and during testing. If you look at the source, you'll see that if there are .dat files present with a zero amount, the user will get a notification at first launch with instructions on what to do. I guess I can do some tweaking and get that the come up regardless. Thanks for the input on pressing ENTER for the quick calculation! A user can do this to get the income distribution calculation without setting up a budget.
Post by untaimed18 on Dec 28, 2020 13:20:16 GMT -5
Also, regarding the update feature. It simply downloads a txt file and reads the data in that file. If the data differs from the value of mainVersion$ it will then download the latest .tkn file and apply it to the application folder as well as backing up the older .tkn file in case there is an issue it can revert back. Once the user closes and re-launches the app, it will be on the latest code base.
Post by untaimed18 on Dec 28, 2020 14:13:33 GMT -5
When you say help describing ordinary work procedure, are you requesting code comments or simply instructions on how to use the application? I am going to add an advice section on the mail UI for that soon. I am also going to fix the processing freeze that occurs without pre-installed .dat files.
menu #main, "&Help",_ "Check for Update", [UpdateCheck],_ "&About", [About]
1) In the menu code above choose a letter to use with the ampersand &, in 'Check for Update' string. This way the user does not need to use the mouse or tap the screen, the menu will be accessed using the keyboard directly. In your case let's say something like: '&Check for Update'. The user can simply press 'Alt+H' then 'C'.
2) If you are expecting an informative window like in this case use always three points at the end of the sentence. Like '&Check for Update...'
3) IMHO, the About Window should be DIALOG. Instead of: open "About" for window_nf as #about Use: open "About" for dialog as #about
Last Edit: Dec 28, 2020 17:56:19 GMT -5 by pablosl