Author Topic: Exported-to prefs file - delete pref  (Read 317 times)

Okay, so i have a list of some sort that i used export(varname*,fileloc); to transfer variables to.

How would i delete one of those variables from the file? I have it so it shunts all of them back after overwriting the first variable, but it leaves a ghost at the end. How do i delete this?


EDIT: Something just occured to me. Doesn't Export delete everything in the file and then plop the commands to retrieve variables
Code: [Select]
$prefname[prefIDstuff] = value;for each of them in there?

If so, might $prefname[prefIDstuff].delete(); work?
« Last Edit: January 23, 2011, 02:18:22 PM by ThinkInvisible »

deleteVariables("$prefname[prefIDstuff]");