Martin asked:

>  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

Two issues here. Drop the "cd". "field id 1003" is sufficient. Rev does not
make the severe distinction between card fields and background fields that
Hypercard does.

Yes, the habit is hard to break. I still find myself doing it.

Second. Use something like x for "variable"

"put fld id 1003 of stack stackname into x" should do it.

> pop card         
> put variable into cd field 1
> end mouseup
> 
> Thanks a lot for your help.
> 
> Martin

Another couple of points. You might need to specify which card the field is
on. So "put fld id 1003 of card 2 of stack stackname into x" would probably
work better. 

Since you don't actually open the stack, you can probably get away with
dropping the push card and pop card lines. You haven't gone anywhere.

Hope this helps,

Raymond

Reply via email to