A real problem with Prefs!!

Mark Wieder mwieder at ahsoftware.net
Tue Aug 3 02:57:38 EDT 2010


charles61-

Monday, August 2, 2010, 6:07:30 PM, you wrote:


> Hi Mark!

> I had that code in the actual Prefs stack but not in my app stack script. If I put the following:

> put tPrefs into url ("binfile:" & specialFolderPath(26) & "/" & "504_prefs")

> before loadPrefs in app stack script I should be okay?

Beats me. I'm not sure what you're trying to do... is there anything
in tPrefs at the time? If not, why are you creating a blank file and
then trying to load it? Wouldn't you be better off trying something
like

on loadPrefs pFilename
  if there is a file (specialFolderPath(26) & "/" & "504_prefs") then
  ...and continue from there?

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list