Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
Structure Member Access
You can access the members of a structure by means of dot (
.
) as a direct member
selector. If we had declared the variables 
circle1
and 
circle2
of the previously
defined type Circle:
dim circle1, circle2 as Circle
we could access their individual members like this:
circle1.radius = 3.7
circle1.center.x = 0
circle1.center.y = 0
You can also commit assignments between complex variables, if they are of the
same type:
circle2 = circle1  ' This will copy values of all members
142
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroBasic PRO for AVR
CHAPTER 5