[Gambas-user] how to convert VB Project file to Gambas

Bruce bbruen at ...2308...
Mon Dec 16 11:44:11 CET 2013


On Mon, 2013-12-16 at 09:55 +0100, Caveat wrote:
> http://msdn.microsoft.com/en-us/library/030kb3e9%28v=vs.90%29.aspx
> 
> That should get you pointed in the right direction...
> 
> Kind regards,
> Caveat
> 
> On 16/12/13 07:57, //SCLPL/ Sudeep Damodar wrote:
> > Hi all
> >
> > How to use Type in gambas.my VB Code is given below
> >
> > Private Type coordinates
> >      XVal As Double
> >      YVal As Double
> >      laseron As String
> >      mode As String
> > End Type

With best regards to Caveat, who knows what he is talking about.

Sudeep,

There is a "struct" concept in Gambas, but it is not really a good idea
to use it unless you know what you are doing. 

But for the sake of sanity:

1) structs must be public, which essentially means you have absolutely
no protection, so 
        Public Struct {Type}
          XVal As Float ' no not a Double, we have never heard of it
          YVal As Float ' ditto but perhaps you might like to read the
        help on datatypes
          laseron as String ' Boolean, what is happening here, maybe
        "perhaps" is a valid value
          mode As String ' great, so mode "Elephant" works here too
        End Struct 

2) Good luck.

3) Either read the help or get out of my mailbox.








More information about the User mailing list