Thread
:
Read/Write Preferences in C++
View Single Post
#
2
10-13-2015, 10:07 PM
rod@3711
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
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.
rod@3711
View Public Profile
Visit rod@3711's homepage!
Find all posts by rod@3711
Find CD-Media Photos by rod@3711
Find CD-Media Papers by rod@3711