12-17-2022, 08:54 PM
I think I know the reason now - the extra type declaration is only necessary for strings.
(Enter -Hello-, I will complete the sentence)
(Enter -Hello-, I will complete the sentence)
Code: (Select All)
Option _Explicit
Declare Function satzErgaenzen(satz As String) As String
Dim As String eingabe
Print
Input "Geben Sie -Hallo- ein, ich ergaenze den Satz: ", eingabe
Print
Print satzErgaenzen(eingabe)
End
Function satzErgaenzen$ (satz As String)
satz = satz + " Fans von QB64!"
satzErgaenzen = satz
End Function