[Gambas-user] enum ?
Benoit Minisini
gambas at ...1...
Thu Mar 17 10:57:05 CET 2005
On Thursday 17 March 2005 09:20, GH wrote:
> Hi :)
> i read codefez... and like the question /affirmation : why did it take so
> long to have such a crevette on linux ? lol true ... i have been waiting
> about 10 years (since 1995) as i was training as analyst... My question is
> : how can i replace enum in gambas, i want to make a calc like QT ones
> samples enum operation { ADDITION .... } (and explicit option, i don't even
> know what it means in vb I fortunatly was too dunce to digg in that
> language ) thanks for help
> Henri
You must define constants one by one:
CONST ADDITION AS Integer = 1
CONST SUBSTRACTION AS Integer = 2
...
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list