03-19-2023, 11:51 PM
Hi
I can add that as for type of variable QB has others definition for default...
see SCREEN mode... it is for default SCREEN 0: WIDTH 80, 25:COLOR 7,0: LOCATE 1,1
run this code if you want to verify
so, coming back to variable type definition, if you do not use suffix or AS TYPE definition for each variables it will be the DEFAULT TYPE
that in QB/QB64 is single (!) variable type.
So with my echoing of the Steve's post, you can verify as declaration of type for default is in QB64.
I can add that as for type of variable QB has others definition for default...
see SCREEN mode... it is for default SCREEN 0: WIDTH 80, 25:COLOR 7,0: LOCATE 1,1
run this code if you want to verify
Code: (Select All)
Print "Hi QB64!"
_Delay 2
Cls
Screen 0
Width 80, 25
Color 7, 0
Locate 1, 1
Print "Hi QB64!"
so, coming back to variable type definition, if you do not use suffix or AS TYPE definition for each variables it will be the DEFAULT TYPE
that in QB/QB64 is single (!) variable type.
Code: (Select All)
Dim a, b, c 'AS DEFAULT TYPE
Dim d! ' AS SINGLE TYPE
a = 1.3
b = 2.4
c = 3.5
d = 7.88
Print " a b c d"
Print a; " "; b; " "; c; " "; d
DefInt A-Z
Dim e, f, g
e = 10.3
f = 44
g = 3.6
Print " E F G "
Print e; " "; f; " "; g
So with my echoing of the Steve's post, you can verify as declaration of type for default is in QB64.