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. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user