I recently got into linux and now im exploring my way through gambas which was the closes thing i could find similar to VB6. I've search the net of ways to translate vb6 Type Statement to Gambas which only uses TypeOF and all i can find are types datatypes unrelated to what im trying to achive. So the question is, how does gambas do things like the way VB6 translates this?
Code: Select all
Public DataStuff as DataStruct
Private Type DataStruct
a as string
b as byte
c as integer
d as long
End Type
I've started tinkering with "Public Const" stuff and what's got me stumped is that Gambas doesn't like the way this is written.
Code: Select all
Public Const White as byte = 1
Public Const SayColor as byte = White
The error presented as follows: Type Mismatch in modConstants.module:137