Re: The group command

2011-02-20 Thread Peter Haworth
Thanks to all for the input. I should have provided more context so here goes in pseudo code. - create a datagrid and its template by script - issue a group command naming the datagrid - refer to the "last group" to rename it - the "last group" is a group named "dghorizontals' within the datagri

Re: The group command

2011-02-20 Thread J. Landman Gay
On 2/20/11 10:37 PM, Richard Gaskin wrote: dunbarx wrote: > It is not stable. Scott is correct in that we all agreed that the > only reliable workaround was to use the templateGroup to advantage. Sorry, but I missed that meeting: under what circumstances does the local var "it" not contain th

Re: The group command

2011-02-20 Thread Richard Gaskin
dunbarx wrote: > It is not stable. Scott is correct in that we all agreed that the > only reliable workaround was to use the templateGroup to advantage. Sorry, but I missed that meeting: under what circumstances does the local var "it" not contain the long id of the newly-created group object

Re: runrev forums - internal server error

2011-02-20 Thread Mark Wieder
> The forums seem to be back up again but rss feeds are still dead. Just an update to anyone interested: the rss feeds are alive but the url has changed. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.

Re: runrev forums - internal server error

2011-02-20 Thread Jerry J
On Feb 19, 2011, at 7:14 PM, Jerry J wrote: > > And I'm having trouble logging in to my cpanel on freyr. FTP works OK. Its fixed now. Thanks. --Jerry Jensen ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscrib

Re: The group command

2011-02-20 Thread dunbarx
It is not stable. Scott is correct in that we all agreed that the only reliable workaround was to use the templateGroup to advantage. I wrote an addendum in the dictionary to the "last" keyword as it applies to groups: The "last" keyword is not stable when referring to groups. So if one create

Re: The group command

2011-02-20 Thread Richard Gaskin
Peter Haworth wrote: > The dictionary says I can refer to the group created by the group > command by using the last keyword as in "last group". Has anyone > used this successfully? As the others here have noted, it's possible to create a group such that it won't be ordinally last. Instead,

Re: Efficient code for accessing the items (or lines) in a variable.

2011-02-20 Thread Colin Holgate
On Feb 20, 2011, at 8:29 PM, Alex Tweedly wrote: > added the highlighted lines below, and then re-ran your tests > >as-is using item >> >> foreach85 159 >> repeatwith 93 3102 >> countarray 276 367 I added them in mine too. I had to decr

Re: The group command

2011-02-20 Thread Scott Rossi
Recently, Peter Haworth wrote: > The dictionary says I can refer to the group created by the group command by > using the last keyword as in "last group". Has anyone used this successfully? > For me, it is returning information about a group with a lower ID than the one > created by the group com

Re: The group command

2011-02-20 Thread Jim Ault
On Feb 20, 2011, at 4:18 PM, Peter Haworth wrote: The dictionary says I can refer to the group created by the group command by using the last keyword as in "last group". Has anyone used this successfully? For me, it is returning information about a group with a lower ID than the one creat

Re: The group command

2011-02-20 Thread Phil Davis
"Last" may report a group with lower ID, since the last-created group may be inside another group that existed before it (and therefore likely has a lower ID than it), but not a lower number. That's what "last" refs to - its 'number' or layer. At least that's what I would expect. Phil On 2/2

Re: Efficient code for accessing the items (or lines) in a variable.

2011-02-20 Thread Alex Tweedly
On 20/02/2011 17:13, Colin Holgate wrote: I just did some timing tests, partly to see if using an array might help with speed. It didn't, but in doing the test I thought of a neater way of testing than I've done before. Usually my testing would resemble this: ... Then I would type in "onew

Re: Efficient code for accessing the items (or lines) in a variable.

2011-02-20 Thread Alex Tweedly
Hmmm, no you can't use if tItem is empty then exit repeat end if because it is perfectly feasible to have empty items within the middle of the data. You would need to use if tOffset > the number of chars in tData then exit repeat or something like that. I'm not sure whether this w

The group command

2011-02-20 Thread Peter Haworth
The dictionary says I can refer to the group created by the group command by using the last keyword as in "last group". Has anyone used this successfully? For me, it is returning information about a group with a lower ID than the one created by the group command. Pete Haworth ___

Re: Datagrid Problem

2011-02-20 Thread Peter Haworth
Never mind, I found the problem Pete Haworth On Feb 20, 2011, at 12:05 PM, Peter Haworth wrote: > I have a couple of strange things going on with datagrids. > > In the Columns tab of the Inspector for a datagrid, I see custom property > names instead of the normal labels next to fields/menus/

Datagrid Problem

2011-02-20 Thread Peter Haworth
I have a couple of strange things going on with datagrids. In the Columns tab of the Inspector for a datagrid, I see custom property names instead of the normal labels next to fields/menus/checkboxes, eg "dgColumnIsVisible" instead of "Visible" The inspector seems to be functioning normally ot

Android Tablets [WAS: Google Store...]

2011-02-20 Thread Roger . E . Eller
On 2/18/2011 at 6:15 PM, J. Landman Gay wrote: > I am, however, looking for a good Android tablet so I'll be > ready when RR is. If anyone has suggestions on that, I'm all ears. For those who do 'love' Apple, they say the best form of flattery is imitation. I have to say, the look of the iPad is

Re: runrev forums - internal server error

2011-02-20 Thread Mark Wieder
The forums seem to be back up again but rss feeds are still dead. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription prefere

Re: Efficient code for accessing the items (or lines) in a variable.

2011-02-20 Thread Colin Holgate
I just did some timing tests, partly to see if using an array might help with speed. It didn't, but in doing the test I thought of a neater way of testing than I've done before. Usually my testing would resemble this: on oneway put the milliseconds into t repeat with a = 1 to 1

Re: Relative path and launch command

2011-02-20 Thread Björnke von Gierke
On 20 Feb 2011, at 15:17, lowland wrote: > Hi, I am using the command: launch document (the cSampleImage of me) which > works fine but, when the user presses the button they have to navagate to > find the document is there a way to use a relative path to open the folder > directly. yes there is.

Relative path and launch command

2011-02-20 Thread lowland
Hi, I am using the command: launch document (the cSampleImage of me) which works fine but, when the user presses the button they have to navagate to find the document is there a way to use a relative path to open the folder directly. Steve -- View this message in context: http://runtime-revolut

Re: Efficient code for accessing the items (or lines) in a variable.

2011-02-20 Thread Dick Kriesel
On 2/19/11 4:44 PM, "Alex Tweedly" wrote: >> put 1 into tCurrentItemCharOffset >> repeat with i = 1 to the number of items in tData >> ... item 1 of (char tCurrentItemCharOffset to -1 of tData) ... >> add the number of chars in item 1 of (char tCurrentItemCharOffset >> to -1 of tData) +