Shockwave: Get/Set Preferences


[ Zettels Traum ] [ search / suche ]

von dp am 11.Januar 97 um 18:50:40:

zu: Perlen aus dem Strom der Nachrichten im direct_L von Daniel am 22.Dezember 96 um 02:00:59:

setting/getting prefs is easy:

setPref thePrefName, thePrefValue

getting:

getPref(thePrefName)

--returns void if such named file doesn't exist (you would want to test for
that)
--SW adds a suffix of .txt but you don't need to reference that in your
getpref handler
--probably smart to limit the prefname to 8 chars (for 8.3 compliance - yuck)

and on a note- this is so easy. Why in hell has MM never implemented
FileIO this way, as a built-in lingo function, since they have done it so
painlessly in SW?! Expand the features to specify/create a folder and BAM,
rumors of 'difficult learning curves' start to fade.

Roy Pardi

The Imagination Club Interactive-Media-Design
Freelance|Contract || Director|Shockwave|Lingo
E: rpardi@tiac.net V: 617.623.7757 F: 617.629.2565
http://www.tiac.net/users/rpardi/index.html





Dazu:























D. Plänitz