Code: Select all
Type MyParams
Declare Constructor
Declare Constructor( As Boolean )
OnOff As Boolean
end type
Dim As Boolean skip = True
Constructor MyParams( b As Boolean = 0)
OnOff = b
End Constructor
Constructor MyParams
Print "FreeBASIC"
End Constructor
Dim As MyParams msws = skip
Print msws.OnOff
Sleep
If 'Dim As MyParams msws = skip' is replaced with 'Dim As MyParams msws' I get
Code: Select all
FreeBASIC
false
Why isn't the opening code working?