12-29-2023, 02:09 PM
(This post was last modified: 12-29-2023, 02:16 PM by Kernelpanic.)
The QuickBasic 4.5 manual says the following about constants:
The type constant is either explicit through the type identifier, or determined by the type of expression. Without a type identifier, the simplest type in which the constant can be represented is always assigned.
Strings are always define as string constants.
The type constant is either explicit through the type identifier, or determined by the type of expression. Without a type identifier, the simplest type in which the constant can be represented is always assigned.
Strings are always define as string constants.
Code: (Select All)
Const Wert1 = 344 '-> Integer
Const Wert2 = 3.44 '-> Single, simplest type
'Error
'Const Stadt = Berlin
'Correct
Const Stadt = "Berlin"
Print Wert1
Print Wert2
Print Stadt