Let's suppose you have a, possibly invisible, stack containing a field in which you
are saving the prefs:

Let's call that stack "Preffs" and make it a substack of your main stack, here called "Mane".

Now, I suppose the first thing "Mane" ought to do on opening is read the prefs from the field in the substack "Preffs"; if, however, the substack is not open it is probably unable to do that.

Try the following "just for fun":

[quite apart from your work!!!!!!]

Set up the main stack and the substack as I suggested above.

On the substack pop a field called "fPreffs" and enter the text 'Richmond was right" into it.

On the main stack pop a field called "fWell" that is empty.

TEST 1:

Now in the main stack's first card (err . . . well it will only have one) pop the following script:

on preOpenCard
   put fld "fPreffs" of stack "Preffs" into fld "fWell" of stack "Mane
end preOpenCard

save the thing and EXIT RunRev.

Oh, Blast; I just tried it and even though the substack was not opened the text was transferred.

Well, 'Twas worth a try . . .  :)

Restart RunRev and open stack "Mane"; what appears in fld "fWell" ?

TEST 2:

Now in the main stack's first card (err . . . well it will only have one) pop the following script:

on preOpenCard
    open stack "Preffs"
   put fld "fPreffs" of stack "Preffs" into fld "fWell" of stack "Mane
end preOpenCard

save the thing and EXIT RunRev.

Restart RunRev and open stack "Mane"; what appears in fld "fWell" ?

Restart RunRev and open stack "Mane"; what appears in fld "fWell" ?

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to