Hi Ban and others who replied,
In a scrolling list field, line selection is automated at mouseDown
by the engine.
So one single line in both scripts is enough (without using global,
value function or anything else :-)
answer the hilitedText of fld "My scrolling list field" -- "of me" in
t
And no need to use the value() function in your button's script, btw.
On Jul 11, 2005, at 1:08 PM, Ban Nguyen wrote:
I have this code in the scrolling list field:
global textOfClickedLine
on mouseUp
select the clickLine
put the value of the clickLine into textOfClickedLine
answer text
It works thank you so much for your help.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Sheffield
Sent: Monday, July 11, 2005 12:20 PM
To: How to use Revolution
Subject: Re: PLEASE HELP PLEASE HEP.
Looks like you already have your
Looks like you already have your variable textOfClickedLine set up as
a global. All you need to do is declare that same variable as a
global in your button's script. Should work how you want it.
Chris
On Jul 11, 2005, at 1:08 PM, Ban Nguyen wrote:
I have this code in the scrolling list
define it as a global, outside of the handlers
global textOfClickedLine
Hope this helps
Dave
I have this code in the scrolling list field:
global textOfClickedLine
on mouseUp
select the clickLine
put the value of the clickLine into textOfClickedLine
answer textOfClickedLine
end mous
I have this code in the scrolling list field:
global textOfClickedLine
on mouseUp
select the clickLine
put the value of the clickLine into textOfClickedLine
answer textOfClickedLine
end mouseUp
It prints the value of the clickline correctly
And then created a button on the same card
An