[Coldstuff] evaluate method

Adam Cormany coldstuff@cold.org
Tue, 15 Jan 2002 06:03:48 -0800 (PST)


I left the [2] out to see what the entire return would
be. If you add the [2], you'll only get:
resp=["Line 2: parse error"]

I wish it was that simple:)
--- Joerg Weber <joerg@fs.is.uni-sb.de> wrote:
> Hi there!
> On Tue, 15 Jan 2002, Adam Cormany wrote:
> 
> > I just tried $root.eval on my cold and also on
> > ice.cold with this:
> > @program $user_soth.atc() +access=pub
> >   var resp;
> > 
> >   resp = .eval(["return 1 + 1"]);
> >   .tell("resp=" + resp);
> > 
> >   // $#Edited: 15 Jan 02 06:42 $user_soth
> > 
> I think you have but a small typo:
> resp = .eval(["return 1+1"])[2];
> 
> Try that :)
> Can't check it out right now, no access to a
> ColdCore.
> 
> Joerg
> 
> _______________________________________________
> Cold-Coldstuff mailing list
> Cold-Coldstuff@cold.org
> http://web.cold.org/mailman/listinfo/cold-coldstuff
> 
> 


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/