odd directory behaviour in DreamCard
alex at tweedly.net
Sun Feb 20 21:40:29 EST 2005
Dr.John R.Vokey wrote:
> Thanks, Alex. I take it that means that my method of setting the path
> of subsidiary folders won't work in Dreamcard Player. So what does
> one do?
I wish I had a good answer for that ...... here's what I do.
[context here was that before Dreamcard Player, I would just use "the
folderpath of this stack" and store my data files in there]
>I've worked around this by (once only) asking the using to specify the
>folder they wish to use, and storing this in a preferences file; if I
>find a prefs file and it specifies a data folder, then there's no need
>to ask again. Code something like
>>/ if lPrefsFileName is empty then
>/>/ if the platform is "Win32" then
>/>/ put specialfolderPath(baseconvert("0x001c", 16, 10)) into tFolder
>/>/ put specialFolderPath("Preferences") into tFolder
>/>/ end if /
It's not great - means the user has select a folder (or file) when they
shouldn't need to - but it should only ever happen once to each user, so
it's not too bad. Once the user has given a folder, its path can be
stored in the prefs file, and therefore he is never asked again.
Alex Tweedly http://www.tweedly.net
-------------- next part --------------
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.1.0 - Release Date: 18/02/2005
More information about the Use-livecode