05-22-2025, 03:30 PM
Code: (Select All)
Function CheckFunction$ (x, x$)
x = x * 3: x$ = x$ + "DEF"
End Function
Code: (Select All)
Function CheckFunction (x, x$) As String
x = x * 3: x$ = x$ + "DEF"
Result = x$ + Trim$(Str$(x))
End Function
people more used to visual basic than quickbasic dislike the stupid type sigils. on the other hand, the decision was unpopular for those of us older hangers-on. in 2005 to force "return" to work like in c and "all those other" languages. disallow "gosub" to be used ever again.
that's why instead i propose a keyword borrowed from pascal/delphi. which doesn't need type sigil because it would be built in. allow people to choose which style they prefer.
the topic starter is better off continuing to program how he revealed. use subprograms only. but be careful with the arguments that are changed inside a subprogram. document which argument will be changed inside a subprogram.