undo insertion into group

Dennis Brown see3d at writeme.com
Sun May 22 15:27:21 EDT 2005


Thanks Eric.  I appreciate your comments, though perhaps I should  
have actually stated what problem I was solving.

I put everything on separate statements because I actually have more  
complex requirements in my real application and I wanted it simple to  
understand, modify and debug --and speed is not important for this  
section.

I have a group with a lot of user input fields and buttons.  Some  
fields and buttons that I know by name I want to exclude from my  
lists, i.e., field "label field" are just labels that I do not want  
to include.  Other fields and buttons that I do not know by name or  
quantity need to be separated into different lists so that they can  
be processed differently.  What I am actually doing is just saving  
and restoring the content or hilite of each input control to/from  
custom properties in that control that are selected by a combo  
button.  The user can add more items and decide the name of the item  
in the combo button menu and they stay in sorted order.  This is kind  
of like having a background group on several cards, but I want it all  
on only one card.  I also have groups of these groups that I change  
the configuration many times.  Every time the user changes the input,  
I also save the value in the custom property for the current menu  
selection.  I works very nice.

Dennis


On May 21, 2005, at 2:09 AM, Eric Chatonet wrote:

> Hi Dennis,
>
> Just a comment about your script:
> You use 3 non exclusive conditional structures and then the engine  
> will have to test all of them.
> You might prefer something like:
>
> if word 1 of it is "button" then put it & cr after btnList
> else if word 1 of it is "field" then put it & cr after fldList
>
> "if it contains "label field" then next repeat" is unnecessary and  
> redundant :-)
>
> Just my two cents.
> Best regards from Paris,
>
> Eric Chatonet.
> Le 20 mai 05 à 23:12, Dennis Brown a écrit :
>
>
>> Eric,
>>
>> This is exactly what I want to do, but it did not work.
>>
>> On May 20, 2005, at 2:16 AM, Eric Chatonet wrote:
>>
>>
>>
>>> Hi Bob,
>>>
>>> Buttons, fields, images, graphics, scrollbars, players and groups  
>>> are controls:
>>> put the number of controls
>>> repeat for each control tControl in this card
>>>
>>>
>>
>> I want to get the name (or number) of each control in a group.
>>
>> get the number of controls in grp x  --works
>>
>> repeat for each control c in anything --does not work for me
>>
>>
>> I guess I can always do it the other way:
>>
>>   repeat with c=1 to the number of controls in grp grpName
>>     get the name of control c of grp grpName
>>     if it contains "label field" then next repeat
>>     if word 1 of it is "button" then put it&cr after btnList
>>     if word 1 of it is "field" then put it&cr after fldList
>>   end repeat
>>
>
> ----------------------------------------------------------------
> So Smart Software
>
> For institutions, companies and associations
> Built-to-order applications: management, multimedia, internet, etc.
> Windows, Mac OS and Linux... With the French touch
>
> Plugins, tutorials and more on our website
> ----------------------------------------------------------------
> Web site        http://www.sosmartsoftware.com/
> Email        eric.chatonet at sosmartsoftware.com/
> Phone        33 (0)1 43 31 77 62
> Mobile        33 (0)6 20 74 50 86
> ----------------------------------------------------------------
>
> _______________________________________________
> 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