Help - Button Menu Question??

Alain Bois in.bois at wanadoo.fr
Tue Nov 9 11:22:17 CST 2004


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" <ralf at dol.net> 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
>>> use-revolution at lists.runrev.com
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list