Hi Charles, Am 13.11.2011 um 19:14 schrieb Charles Szasz:
> I am able to set up Preferences for my app. But the following script in the > preOpenStack will NOT retrieve the data Preferences. Here is my script: > > IF the platform is "MacOS" then > if there is a file (specialFolderPath(26) & "/" & "mileage_prefs") then > put url ("binfile:" & specialFolderPath("preferences") & "/" & > "mileage_prefs") into tPrefs ## at this point tPrefs is definitively NOT an array! ## So using ARRAY syntax will give empty values! > put tPrefs["name"] into field "name" of card "one" of stack "mileage > report" > put tPrefs["name"] into field "name" of card id 1002 of stack "prefs" > end if > end if Same for Windows! > Any suggestions would be greatly appreciated!!! How did you save that prefs file? Of course you need to go "the other way round" when reading the file! > Charles Szasz Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode