05-23-2025, 12:34 AM
Wow, I'm surprised how popular this thread is!
The one thing that has confused / surprised me about QB64PE's functions is you can't declare the function's return type with the type name, e.g., the IDE won't accept:
Function MyFunction(Param1 As Integer, Param2 As Integer) As String
instead you have to declare it using the type symbol, e.g.,
Function MyFunction$(Param1 As Integer, Param2 As Integer)
It doesn't bother me enough to care, but it did confuse me at first and it just seems inconsistent with what I'm used to with VB6, VBA, etc. (I don't remember whether the original QuickBasic was like that.)
The one thing that has confused / surprised me about QB64PE's functions is you can't declare the function's return type with the type name, e.g., the IDE won't accept:
Function MyFunction(Param1 As Integer, Param2 As Integer) As String
instead you have to declare it using the type symbol, e.g.,
Function MyFunction$(Param1 As Integer, Param2 As Integer)
It doesn't bother me enough to care, but it did confuse me at first and it just seems inconsistent with what I'm used to with VB6, VBA, etc. (I don't remember whether the original QuickBasic was like that.)