Archive of UserLand's first discussion group, started October 5, 1998.
Problem with lists?
Author: email@example.com Posted: 6/17/1999; 9:26:21 AM Topic: Problem with lists? Msg #: 7515 Prev/Next: 7514 / 7516
I'm using 5.0.1, so this may have been fixed, but I think it's a big enough problem that it deserves a mention anyway.
If you make a new list somewhere in the ODB, say at scratchpad.mylist, and then programatically change the list with a line of usertalk as follows:
scratchpad.mylist = 10 scratchpad.mylist = 20
then save the ODB, quit frontier, and open it back up, the list will be empty. If, however, you do the following:
local (mylist = scratchpad.mylist) mylist = 10 mylist = 20 scratchpad.mylist = mylist
save, quit, and open, the changes are there. It seems as though changing elements of a list that lives in the ODB (as opposed to the stack) don't get properly saved and are somehow considered temporary.
It took me quite a while to figure this out, so I thought I might as well save some others from the same frustration :-).
There are responses to this message:
- Re: Problem with lists?, Brent Simmons, 6/17/1999; 9:44:34 AM
This page was archived on 6/13/2001; 4:50:53 PM.
© Copyright 1998-2001 UserLand Software, Inc.