Problem with reading Preferences file
Klaus on-rev
klaus at major.on-rev.com
Sun Nov 13 13:24:36 EST 2011
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
klaus at major.on-rev.com
More information about the use-livecode
mailing list