Datagrids and Nested Behaviors

BNig bernd.niggemann at uni-wh.de
Tue Jul 24 03:20:19 EDT 2018


Brian
That is a nice modification, makes it faster and is still only in one place.


>I also noticed that there are extra "stack" references in the code (stack
>_ResourceStack instead of just _ResourceStack 4/10 uses).

to my surprise both versions work.

Kind regards
Bernd


Brian Milby via use-livecode wrote
> Here is my slight modification to the suggestion:
> 
> local sResourceStack
> private function _ResourceStack
>    local theStack, theCharNo
> 
>    if sResourceStack is empty then
>       put the behavior of me into theStack
> 
>       repeat
>          if trueWord -1 of theStack is "revDataGridLibrary" or theStack is
> empty then
>             exit repeat
>          else
>             put the behavior of theStack into theStack
>          end if
>       end repeat
> 
>       if theStack is not empty then
>          put offset(" of stack", theStack) into theCharNo
>          delete char 1 to (theCharNo + 3) of theStack
>       end if
>       put theStack into sResourceStack
>    end if
> 
>    return sResourceStack
> end _ResourceStack
> 
> 
> I also noticed that there are extra "stack" references in the code (stack
> _ResourceStack instead of just _ResourceStack 4/10 uses).
> 
> On Mon, Jul 23, 2018 at 6:53 PM, Brian Milby <

> brian@

> > wrote:
> 
>> What OS are you using? It will be inside the IDE, but will get copied
>> into
>> your app as well. You will probably need admin rights to edit. I would do
>> it in an external editor too.
>>
>> It probably would be an enhancement request (therefore 9.1), but I would
>> be happy to submit a PR against a BZ report.
>> On Jul 23, 2018, 6:04 PM -0500, Bob Sneidar via use-livecode <
>> 

> use-livecode at .runrev

>>, wrote:
>>
>> I found and made a copy of the datagrid library stack on my desktop. I
>> still cannot save the modification you proposed to the script of the
>> datagrid button in this stack. It says it can't open stack script file.
>>
>> Well my workaround is functional, so I'm sticking with that. If the devs
>> want to take your patch and bundle it in with the next release that would
>> be great. I have no idea how to make that happen.
>>
>> Bob S
>>
>>
>> On Jul 23, 2018, at 15:46 , Bob Sneidar via use-livecode <
>> 

> use-livecode at .runrev

>> wrote:
>>
>> I tried this, I apparently don't have permission to save the file once
>> edited. It's probably in the Livecode APP bundle. I'll poke around and
>> test
>> this later.
>>
>> Bob S





--
Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html




More information about the use-livecode mailing list