Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB664PE v3.10.0 is now live for X-Mas!!
#46
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.

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
Reply


Messages In This Thread
RE: QB664PE v3.10.0 is now live for X-Mas!! - by Kernelpanic - 12-29-2023, 02:09 PM



Users browsing this thread: 14 Guest(s)