View Single Post
  #2   Spotlight this post!  
Unread 27-11-2005, 17:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Accessing groups of variables

Quote:
Originally Posted by astro1652
Is there anyway to access an entire group of variables in one statement? I was thinking maybe it would be possible with arrays, but how can you set all of the elements at once? Using a structure maybe?
Yes, the typical way is to use a structure (often with variant records).

Since you're specifically asking about the OI LEDs, take a look through the definition files in the default code from IFI. The individual LED bits are already part of a structure that you ought to be able to set directly.