Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
ENUM - ENUM command

ENUM command



 Hi, Today we will see why you could use ENUM command.
 You can rename your variable with this code, for example :
 
 private ENUM blue, Yellow, Green, Red, grey
 who will be respectively blue=0, yellow=1, green=2 etc...
 
 This great command is usefull if you code with tables , or components who require tables as gridview, tableview,etc...
 Code is more understandable.
 To continue our small exemple we could write :
 
 mytable[grey] = "Hello"
or
Dim mycolor As integer
mycolor = green ' mycolor will be 2

Thanks to Valaquarus for his help.

smile


Creation date : 08/11/2021 @ 23:33
Last update : 15/02/2022 @ 08:36
Category : ENUM
Page read 1717 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^