Re: [NTLK] Help with Newtonscript

From: brian.tiplady_at_astrazeneca.com
Date: Fri Jun 06 2003 - 01:21:27 PDT


Do you just want to set the variable when the floatNGo view opens, or do you
want to change it subsequently?
If the former, try using the ViewSetupFormScript of your floatNGo, with
something like

StaticTextView.text := TopVar;

(StaticTextView must be declared to the FloatNGo, or alternatively you can
use the ViewSetupFormScript of the protoStaticText)

a variable set up as a slot in the top level is visible anywhere in the App.

If you want to change the value on the fly from somewhere else in the app,
use SetValue(), but note that you have to use the name of the link not the
name of the view to address the component of a linked subview

-- B

> -----Original Message-----
> From: Daedalus [mailto:daedalus_at_digitalinkwell.net]
> Sent: Thu 05 June 2003 15:58
> To: Newtontalk
> Subject: Re: [NTLK] Help with Newtonscript
>
>
> >Okay, let's just say that I'm not the most accomplished
> programmer here on
> >the board, but . . . I'm starting to be. Or at least I will,
> once I get some
> >help with how to pass variables to linked subviews. It's got
> me totally
> >stumped, can't figure it out. I'm trying to open a
> protoFloatNGo that is a
> >linked subview to my main app. I want to change the
> protoStaticText on the
> >floatNGo to a variable declared in my main app. But, I can't
> do it, I can't
> >seem to use GetVariable to do it, I even thought, hey, why
> shouldn't I just
> >give up. And I will, if I can't get any help with this.
>
>>

-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html
Official Newton FAQ: http://www.chuma.org/newton/faq/


This archive was generated by hypermail 2.1.5 : Fri Jun 06 2003 - 08:25:16 PDT