Note that the spaces between the comma and the next name will be included as part of the item label. If your strings are obtained from other sources and will have these spaces, you should include code to erase them. It simplifies the solution, however, if you do not need to do this.

An example of how to get rid of the spaces:

replace ", " with "," in a

(note: the first string literal is comma-space, the second is just a comma).

On Nov 9, 2004, at 12:22, Alain Bois wrote:

An other answer of your problem
If your list of users is "Smith, Jones, Brown, White", there is a solution:
put "Smith, Jones, Brown, White" into a
replace comma by return in a
put a into btn "MyMenuButton"
Alain


Le 9 nov. 04, � 17:51, Alain Bois a �crit :


Le 9 nov. 04, � 17:47, Alain Bois a �crit : Excuse, the text is wrong, the good way is :
put  "Smith" & return & "Jones" & return & \
      "Brown" & return & "White" into  button "MyMenuButton"


You can also have the same result with

put into  button "MyMenuButton" to \
      "Smith" & return & "Jones" & return & \
      "Brown" & return & "White"

Le 9 nov. 04, � 17:30, Jan Schenkel a �crit :

--- "Ralph R. Forehand" <[EMAIL PROTECTED]> wrote:
The Rev documentation says:
You can script the button's menu items with a
handler (one menu item per line),
but doesn't show an example of this.

I'm trying to use a string of User names, ex.
"Smith, Jones, Brown, White"
within a handler to populate my button's menu items.
The number of Users (line items) will vary depending
on the User group.

Does anyone know the location (URL) of a sample
script that does this and/or
what commands could I use?

Thanks in Advance for any help and TAKE CARE
Ralph


Hi Ralph,

You can change a menu button's items by means of the
'text' property ; this expects a return-delimited list
of menu items ; example :
  set the text of button "MyMenuButton" to \
      "Smith" & return & "Jones" & return & \
      "Brown" & return & "White"

Hope this helped,

Jan Schenkel.

=====
Join us at the European Revolution Conference
November 14-16, MALTA. ~ http://TechieTours.com/Rev/

=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution



_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


-----------------------------------------------------------
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
$




___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to