Posts: 2,910
Threads: 305
Joined: Apr 2022
Reputation:
167
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: 4,695
Threads: 222
Joined: Apr 2022
Reputation:
322
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.
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
Posts: 956
Threads: 52
Joined: May 2022
Reputation:
38
@bplus - correct in principle. It is -2 because every new uninitialized variable in Basic is automatically initialized with zero. Zero minus 2 is . . . -2.