Re: SetFieldBy* by functions

Scott Raney (raney@metacard.com)
Thu, 1 Feb 1996 18:55:01 -0700 (MST)

>
> I am trying to set the fields of a card in a stack using external routines
> just as it is in the tutorial. The only difference is that the card is not
> on the main stack, but in a substack (say sub1) opened as topLevel. It works
> fine when I set a field in the main stack, but I don't seem be able to
> set a field on a card of sub1. I have set the default stack in the
> script just before the call to the callback function, and from within the
> callback function, it didn't help. Is it not possible to set the fields
> using SetFieldBy* functions if the field is not in the main stack?

The SetFieldBy* functions always apply to the stack with the external.
If you need to set fields in another stack, either put the external in
the other stack, or use sendCardMessage and write a handler that
actually puts the data where you want it to go.
Scott

> N. Kurul

-- 
***********************************************************************
* Scott Raney (raney@metacard.com)  Tcl and ksh: syntactic gymnastics *
* http://www.metacard.com           MetaCard: it does what you think  *
***********************************************************************