[Gambas-user] vb ENUMS

Fabien Bodard gambas.fr at ...626...
Fri Nov 11 09:40:17 CET 2011


yes create a class SECURITY2

public enum  packetlength = 0, packettype = 1, etc

actually enum is not fully implemented in gambas :/ maybe for the 4.0

2011/11/11 Ron <ron at ...1740...>:
> I'm porting a vb project and it uses a lot of ENUM definitions, I cannot
> find a similar way to use them in Gambas2/3.
>
> They get referred to with:
>
> SECURITY2.packettype
>
> ENUM SECURITY2 AS Integer
>     packetlength = 0
>     packettype = 1
>     subtype = 2
>     seqnbr = 3
>     id1 = 4
>     id2 = 5
>     id3 = 6
>     status = 7
> END ENUM
>
> Any pointers or ideas?
>
> Regards,
> Ron_2nd.
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fabien Bodard




More information about the User mailing list