Structs

enrique1

Member
Licensed User
Longtime User
Hi all,

I have read the types tutorial searching answer but I didn't find it. It's a simple question:

Is it possible to declare Structs or Types??


C example:

B4X:
[B]Declare..[/B]

struct
   {
       int a;
       int b;
   } exampleType;

[B]And use..[/B]

exampleType one;

[B]Access..[/B]
one.a;
one.b;


Thx!:)
 

droman

Member
Licensed User
Longtime User
Type Point (X As Double, Y As Double) Dim Pnt As Point Pnt.X = 10 Pnt.Y = 20
 
Upvote 0
Top