Posts: 2,160
Threads: 222
Joined: Apr 2022
Reputation:
102
09-13-2024, 06:23 PM
(This post was last modified: 09-13-2024, 06:45 PM by Pete.)
Quote:name that tune: Tie A Yellow Ribbon Around The Old Oak Tree
Can you name the singer who made it famous?
Tony Orlando and Dawn. I knew them personally. They used to frequent my father's store.
Now a math question:
Q: What does Fake News + Phony Politicians =
A: Real Problems
Pete
Shoot first and shoot people who ask questions, later.
Posts: 3,932
Threads: 175
Joined: Apr 2022
Reputation:
216
Why -2? because when you Dim ln as Integer inside the subroutine you set it to zero.
Comment that line out and all is as expected.
b = b + ...
Posts: 1,001
Threads: 50
Joined: May 2022
Reputation:
27
@bplus - correct in principle. It is -2 because every new uninitialized variable in Basic is automatically initialized with zero. Zero minus 2 is . . . -2.