10-16-2022, 11:42 PM
The point being you can't just call a function like you do a sub. Frankly, I'd just change the function to a sub, and define SatzLesen or drop it and just pass back SatzNummer.
The PRINT SatzLesen wasn't meant s a solution, it was just an example of using a function in QB64 without anything being returned. In general, functions either must return a value or have an active part in a statement like foo = SatzLesen or foo = Steve \ SatzLesen, etc.
So for subs, just call them. For functions, have something returned involved in the call statement, and not just the call alone.
Pete
The PRINT SatzLesen wasn't meant s a solution, it was just an example of using a function in QB64 without anything being returned. In general, functions either must return a value or have an active part in a statement like foo = SatzLesen or foo = Steve \ SatzLesen, etc.
So for subs, just call them. For functions, have something returned involved in the call statement, and not just the call alone.
Pete
If eggs are brain food, Biden takes his scrambled.