Posts: 176
Threads: 15
Joined: Apr 2022
Reputation:
25
08-08-2022, 03:37 PM
(This post was last modified: 08-08-2022, 03:40 PM by mdijkens.)
nope; with strings the brackets don't have a function as with arithmetic (calculus order); so with strings they are just ignored
And in the initial example at the top, it was with numbers and it was actually THE reason for the confusion by TS (but I think nobody noticed so far :-))
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
Posts: 486
Threads: 41
Joined: Apr 2022
Reputation:
40
08-08-2022, 06:18 PM
(This post was last modified: 08-09-2022, 01:03 AM by Jack.)
believe it or not, the tip about parenthesis around the arguments that need to be preserved was the clue, even though enclosing the string arguments in parenthesis does not work in QB64, it apparently did work in VB 3, so I simply used temporary variables wherever needed.
Posts: 4,693
Threads: 222
Joined: Apr 2022
Reputation:
322
08-08-2022, 07:41 PM
(This post was last modified: 08-08-2022, 08:28 PM by bplus.)
(08-08-2022, 03:37 PM)mdijkens Wrote: nope; with strings the brackets don't have a function as with arithmetic (calculus order); so with strings they are just ignored
And in the initial example at the top, it was with numbers and it was actually THE reason for the confusion by TS (but I think nobody noticed so far :-))
This?
Code: (Select All)
Print Using "Eingabe nach Funktionsaufruf: ###"; AlsWert((zahlwert))
Who is TS? =KP? BP needs to know. ;-)) I though KP was putting the () there to attempt passing by val.
But then he failed to change the value in the function LOL this is funny, like Hogans Heroes.
Code: (Select All)
Function AlsWert (eingabe As Integer)
AlsWert = eingabe + 3
End Function
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever