Go stack

andu undo at cloud9.net
Tue Mar 19 19:01:01 EST 2002


"J. Landman Gay" wrote:
> 
> I have successfully installed darwin mc in OS X and have the echo.mt
> script working. Now I'm trying to get an mt script to go to a stack and
> find some information in it. The script fails at the "go" command. If I
> change the script to say "there is a stack 'mystack.mc'" it returns
> "true", so it knows the stack is there. But "go stack 'mystack.mc'"
> doesn't work. Is it possible to use "go" in an mt script?
> 
> Also, are there any other rules that one should keep in mind when
> accessing stacks from a MetaCard cgi? Anything else that fails or needs
> to be done differently?

Someting like this works:

on startup
put 1 into z
put 2 into f
start using "data"
getData z,f
put the result into tResult
stop using "data"
put tResult
 end startup

Stack "data" (data.mc same directory with the script) script:

on getData x,y
  return x+1 && y+2
end getData

> 
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard

-- 
____________________
Regards, Andu Novac



More information about the metacard mailing list