It keeps track of balances and transactions for multiple accounts with an ability to search for transactions based on balance, transaction amount, transaction description or date. I find it quite useful
Finances.bas (Size: 84.9 KB / Downloads: 24)
I went looking for the second and found it in the Renaissance. The mechanical clocks were too new to tick at different moments. The rhythm became permanent. -- ASCIIhole
01-15-2026, 12:24 AM (This post was last modified: 02-02-2026, 06:36 PM by Pete.
Edit Reason: Missing [ in qb closing code tag.
)
(01-14-2026, 10:15 PM)ASCIIhole Wrote: It keeps track of balances and transactions for multiple accounts with an ability to search for transactions based on balance, transaction amount, transaction description or date. I find it quite useful
Posted this not 2 hours ago and I just found a bug I never noticed. The LongCenter$() FUNCTION doesn't work for short strings. This will fix that:
EndOfLongCenterFUNCTION:
LongCenter$ = Rtrn$
END FUNCTION
I went looking for the second and found it in the Renaissance. The mechanical clocks were too new to tick at different moments. The rhythm became permanent. -- ASCIIhole
(01-15-2026, 12:57 AM)ahenry3068 Wrote: This IS NOT MY CODE. This app actually was one of the example programs that came with QBasic in Dos 5.0
It compiles fine under QB64PE
I like mine better
I went looking for the second and found it in the Renaissance. The mechanical clocks were too new to tick at different moments. The rhythm became permanent. -- ASCIIhole
(01-15-2026, 12:57 AM)ahenry3068 Wrote: This IS NOT MY CODE. This app actually was one of the example programs that came with QBasic in Dos 5.0
It compiles fine under QB64PE
I like mine better
I wouldn't expect anything else. I always like using tools I design myself as well. I posted it merely in the hope that others might glean some information from the code and find it useful. I think it's awesome that most of the old QBasic & QB45 example code build without changes in QB64PE !
(01-15-2026, 12:24 AM)ASCIIhole Wrote: Buggy. I posted this without realizing how buggy it was. Sorry.
(01-14-2026, 10:15 PM)ASCIIhole Wrote: It keeps track of balances and transactions for multiple accounts with an ability to search for transactions based on balance, transaction amount, transaction description or date. I find it quite useful
Posted this not 2 hours ago and I just found a bug I never noticed. The LongCenter$() FUNCTION doesn't work for short strings. This will fix that: [qb][FUNCTION LongCenter$ (Text$, MinCharactersPerLine%, MaxCharactersPerLine%, ScreenWidth%)
IF LEN(Text$) <= MaxCharactersPerLine% THEN Rtrn$ = Text$: GOTO EndOfLongCenterFUNCTION
TryAgain:
OriginalString$ = Text$: NumCharactersOnRemainingLine% = 0: CatchInfiniteLoops% = 0
DO
BeforeCutLocation% = LEN(Text$) - MaxCharactersPerLine%
CutLocation% = BeforeCutLocation%
DO
CutLocation% = CutLocation% + 1
LOOP UNTIL MID$(Text$, CutLocation%, 1) = " "
LastPart$ = MID$(Text$, CutLocation% + 1, LEN(Text$) - (CutLocation% + 1) + 1)
Text$ = MID$(Text$, 1, CutLocation% - 1)
CatchInfiniteLoops% = CatchInfiniteLoops% + 1: IF CatchInfiniteLoops% < 0 THEN MaxCharactersPerLine% = MaxCharactersPerLine% + 1: GOTO TryAgain
LOOP UNTIL LEN(Text$) <= MaxCharactersPerLine%
NumCharactersOnRemainingLine% = LEN(Text$)
EndOfLongCenterFUNCTION:
LongCenter$ = Rtrn$
END FUNCTION/qb]
I went looking for the second and found it in the Renaissance. The mechanical clocks were too new to tick at different moments. The rhythm became permanent. -- ASCIIhole