View Single Post
  #2   Spotlight this post!  
Unread 21-01-2015, 08:55
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Using Global Variables Instead of Get Refnum

Quote:
Originally Posted by Alan Anderson View Post
keep the RefNum in another place for easier and less typo-prone access.
One way some teams do this is by creating a typedef enum updated with a list of all their RefNum names. Then they simply drop that enum followed by the Format Into String function any place they need a RefNum name. It's a bit of extra code, but makes it so they don't have to remember the names or correct spellings - they simply pick it from the enum list.
__________________
Doug Norman
National Instruments
Reply With Quote