Oops yeah that exact line was missed out ;o)

But *also* the docs say you can save any data type including scripts so
this should work also

weeScript = script("TestScript").new(10)   --TestScript is my parent
if saveFile.write(weeScript ) <> 0 then
   put "save failed"&&vList_errorString() else
   put "saved OK"
end if

But it doesn't... Think it just saves the pointer.

alan

>Ie
>
>saveFile = new (xtra "vlist", "testSave.lst")
>weeScript = script("TestScript").new(10)   --TestScript is my parent
>script which contains 1 var
>
>if saveFile.write(saveList) <> 0 then
>   put "save failed"&&vList_errorString() else
>   put "saved OK"
>end if

where is savelist coming from. shouldn't you save [weeScript] ?? or have
a line like 

savelist=[weeScript]

Florian


-- 
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.

If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DA Group.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to