>Hi
>I'd like to import some text from a textfield of another stack (cd field id
>1003) into a textfield of my startstack (cd field 1). The following handler
>doesn't work.
>Is there somebody there who can help me?
>
>
>
>on mouseup
> push card
> domenu "Open stack..."
> put name of this stack into stackname
> delete word 1 of stackname
> put cd field id 1003 of stack stackname into variable
> pop card
> put variable into cd field 1
>end mouseup
The problem is that your variable still contains the quotes around
the file name. I.e. instead of for a stack
Pete
your script is looking for a stack
"Pete"
which doesn't exist.
The way I always do it in HC is:
set itemdelimiter to quote
put item 2 of stackname into stackname
however, I'm not sure that this works for MC's substacks, you'll have
to try that. I suppose the safest method would be to use:
set itemdelimiter to quote
put item (number of items of stackname -1) of stackname into stackname
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.weblayout.com/witness