Compressing stacks - is it possible?

Jose L. Rodriguez Illera jlrodrig at ariadna.d5.ub.es
Fri Feb 22 18:32:01 EST 2002


> Hi all,

>Is it possible to compress a stack, save it to disk, then later read it,
>decompress it and presto! have a stack again?

>I don't think so, but maybe....?

>tereza


Not sure if this what you need, but it is possible to compress a stack and
put it into a property, then save the stack to disk. Try this:

Btn 1:
on mouseUp
  answer file ""    #the file can be a stack
  put url ("binfile:"&it) into que
  put compress(que) into que
  set  the elstack of stack "lavasija" to que
 save stack "lavasija"
end mouseUp

Btn 2:
on mouseUp
  get  the elstack of this stack
  put decompress(it) into it
  go stack it    # Or if you have text:  set the htmltext of fld 1 to it
end mouseUp

This is an easy way to store a complex stack template into an application
property.

Regards,

Jose L. Rodriguez




More information about the metacard mailing list