Three questions: 1) Is it acceptable to structure the prefrecord like this? BEGIN RECORD prefsRecord DIM prefs%(60) as integer DIM prefsdouble#(60) as double END RECORD DIM gPref AS prefsRecord I had prefs and prefsdouble set to different sizes, prefs%(60) & prefsdouble#(5), and got an array bounds error. 2) Can you see anything wrong with setting the prefs this way? LOCAL FN PrefsSet beep gPref.prefs%(1)=textsize%'textsize gPref.prefs%(2)=fontNumber%'font gPref.prefs%(3)=gTrackSpace'X-starting point of eack plot track gPref.prefs%(4)=NormalSpace'X-starting point of eack plot track ... 56 more set here plus 4 prefsdouble... gPref.prefsdouble#(1)=doublevar1# gPref.prefsdouble#(2)=doublevar2# gPref.prefsdouble#(3)=doublevar3# gPref.prefsdouble#(4)=doublevar4# PUT PREFERENCES "WellPlot4 Pref File",gPref END FN 3) Anything wrong with retrieving prefs like this? LOCAL FN PrefsGetInt textsize%=gPref.prefs%(1) fontNumber%=gPref.prefs%(2) gTrackSpace=gPref.prefs%(3) NormalSpace=gPref.prefs%(4) ... 56 more prefs retrieved here plus 4 prefsdouble... doublevar1#=gPref.prefsdouble#(1) doublevar2#=gPref.prefsdouble#(2) doublevar3#=gPref.prefsdouble#(3) doublevar4#=gPref.prefsdouble#(4) GET PREFERENCES "WellPlot4 Pref File",gPref END FN On Tue, Nov 4, 2008 at 10:08 AM, Brian Stevens <bstevens33@...> wrote: > > On Nov 4, 2008, at 8:03 AM, Pierre Zippi wrote: > > I have it working to the point where it saves a prefs file, but I'm not > having any luck retrieving the prefs. > > The code in FN PrefsGetInt accesses the global record gPref before getting > the preferences with Get Preferences. > > Can I do this? > > Not sure what is being asked. The use of a record to get/set prefs is > typical use. If that wasn't the question, please be more specific. > The superfluous suffixes ( % ) can be omitted from the record definition and > record access code since both prefs and presdouble are defined explicitly as > integer and double. > Brian S. > > > > > -- > To unsubscribe, send ANY message to: futurebasic-unsubscribe@... > >