View Single Post
  #2   Spotlight this post!  
Unread 10-13-2015, 10:07 PM
rod@3711 rod@3711 is offline
Registered User
AKA: rod nelson
FRC #3711 (Iron Mustangs)
Team Role: Mentor
 
Join Date: May 2014
Rookie Year: 2014
Location: Trout Lake, WA
Posts: 64
rod@3711 is an unknown quantity at this point
Red face Re: Read/Write Preferences in C++

Finally got back to looking at Preferences and found my mistake.

The string names for the Keys can not have spaces.

x = prefs->GetDouble("x Pref",33);

changed "x Pref" to "xPref" and everything worked as expected.
Reply With Quote