Re: Reorder fields

2023-07-28 Thread Geoff Canyon via use-livecode
Also check out the relayerGroupedControls property. It probably would have
led to even greater confusion in this instance, but it's good to know about
it and what it does. From the dictionary: "Specifies whether you can change
the layer of controls in a group even if not in group-editing mode."

I don't know how it works in the Project Browser, but in Navigator I set it
to true before attempting any relayering, so in Navigator by default it's
possible to relayer controls in groups, and into and out of groups, by
dragging them.

On Fri, Jul 28, 2023 at 7:06 AM Mark Smith via use-livecode <
use-livecode@lists.runrev.com> wrote:

> You hit the nail on the head. Select grouped was not selected so each
> field / label looked independent (and could be independently selected). But
> in fact they were grouped. With select grouped off the fields could not be
> rearranged. Turning it on enabled layering the groups (containing the
> fields) in the correct order. Because its not obvious the fields are
> grouped I never think to check that option (this is not my stack but
> someone else’s. Probably at some point there was a point to grouping them
> together… maybe during the design phase). It’s all working now. And Pauls
> suggestion of checking the PB was useful in “seeing” that each fields label
> and field was grouped (even without the select grouped icon being toggled
> on).
>
> Thanks to all.
> Mark
>
> > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > You can toggle what gets selected with the "Select Grouped" icon in the
> top toolbar.
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software | http://www.hyperactivesw.com
> > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> >> Well, this might explain it. The original designer had grouped the
> labels and the fields into groups (so label A and field A into grp A, etc).
> I was trying to change the order of the fields, (oddly, when you Please
> visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: charIndex property

2023-07-28 Thread Bob Sneidar via use-livecode
This is the essence on Livecode! This is why we love it! Shouldn’t we rebrand 
it? How about Lovecode?? …..

Never mind. 

Sent from my iPhone

> On Jul 28, 2023, at 04:55, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote:
>> Oh those pesky chunks which don’t ‘cover’ the target string (which is 
>> actually all of them except codeunit/point/char come to think of it). I 
>> should have run through a few more examples in my head before posting….
>> 
>> Alternative attempt:
>> 
>> Put null into word N to -1 of S
>> Delete codeunit (codeunitoffset(null, S) to -1 of S
>> Return the number of chars in S + 1
>> 
>> The problem before was the chars which do not form part of the last chunk 
>> and remain after deletion.
>> 
>> The above puts in a sentinel char which can be searched for to find where 
>> the requested chunk started.
>> 
>> Second time lucky? ;)
>> 
>> 
> 
> Second time's the charm. That works for all chunk types tested (trueWord, 
> sentence, paragraph)! Thank you!
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


ICYMI: 2024 app store API tightening

2023-07-28 Thread Mike Kerner via use-livecode
Saw this in ZDNet:
Certain iOS (and presumably macos) apis will require specific justification
to be used, starting 2024:
https://www.zdnet.com/article/developers-have-new-apple-app-store-rules-to-follow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reorder fields

2023-07-28 Thread Mark Smith via use-livecode
You hit the nail on the head. Select grouped was not selected so each field / 
label looked independent (and could be independently selected). But in fact 
they were grouped. With select grouped off the fields could not be rearranged. 
Turning it on enabled layering the groups (containing the fields) in the 
correct order. Because its not obvious the fields are grouped I never think to 
check that option (this is not my stack but someone else’s. Probably at some 
point there was a point to grouping them together… maybe during the design 
phase). It’s all working now. And Pauls suggestion of checking the PB was 
useful in “seeing” that each fields label and field was grouped (even without 
the select grouped icon being toggled on). 

Thanks to all.
Mark

> On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> You can toggle what gets selected with the "Select Grouped" icon in the top 
> toolbar.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On July 28, 2023 10:53:08 AM Mark Smith via use-livecode 
>  wrote:
> 
>> Well, this might explain it. The original designer had grouped the labels 
>> and the fields into groups (so label A and field A into grp A, etc). I was 
>> trying to change the order of the fields, (oddly, when you Please visit this 
>> url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reorder fields

2023-07-28 Thread J. Landman Gay via use-livecode
You can toggle what gets selected with the "Select Grouped" icon in the top 
toolbar.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On July 28, 2023 10:53:08 AM Mark Smith via use-livecode 
 wrote:


Well, this might explain it. The original designer had grouped the labels 
and the fields into groups (so label A and field A into grp A, etc). I was 
trying to change the order of the fields, (oddly, when you select the label 
or the field on the form it does not select a group, so I never realised 
the grouping existed). Using the project browser to select each group the 
order was 8, 14, 11. I used Pauls trick to move grp 11 above 14 and that 
satisfied the reorder. But, I also tried and successfully used the Layer 
field in the Inspector to change the group ordering (in this case to 8, 14, 
15) and achieved the same effect. It was a bit more complicated because I 
had to use the PB to select the grp and then open the inspector for that 
group to change the layer.


Très compliqué, non!



On 28 Jul 2023, at 4:17 pm, Craig Newman via use-livecode 
 wrote:


Why does, as Paul suggests, changing the layer order in the Project Browser 
work, whereas changing the layer order explicitly does not? We know that 
layers cannot be assigned to a particular object class (like fields) but 
include all controls at once. Is it possible that the layer order of the 
fields only was not properly grokked?


Craig

On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode 
 wrote:


Thanks Paul. That is one of those super helpful tips that is hard to 
discover on your own. 1 day we need an easily searchable wiki for all this 
acquired wisdom (but for now I have tucked it away for future reference). 
Thanks for replying.


Mark


On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode 
 wrote:


You can change the layer (order) in the Project Browser in the IDE by just 
dragging the objects up or down the list of objects on the card.



On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote:
How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) 
in positions 9, 15, 12 (as indicated by the Layer field in the Position 
tab). Tabbing cause these fields to be visited in the order a, c, b whereas 
I would prefer a, b, c. I have tried all manner of editing the Layer field 
to make them be in that order with no success, I’ve variously tried new 
orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect 
their order. It always returns to 9, 15, 12. Lock size and position is not 
checked. I’ve even tried doing this with the Number field in the Advanced 
tab, also without success. Ok, I did find a solution but while it was easy 
for me, it might not be as easy on a more complicated form. I deleted all 3 
fields. Recreated field A (which was given the starting position of 11) 
then copy pasted two more times creating fields 12 and 13. So this 
satisfies my reorder interest, but seems to me a rather cumbersome and 
unnecessary procedure (if for no other reason than deleting fields also 
deletes all of the “custom” settings on the fields which doubles or triples 
the amount of effort involved). Maybe I am missing something more obvious?


Thanks


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reorder fields

2023-07-28 Thread J. Landman Gay via use-livecode
Layering works in the property inspector for me. The clue is that any layer 
you set moves everything above that layer one position higher. So if I want 
field b to layer lower than field c, I would set b's layer to what is 
currently c's layer. That would push c to one layer higher than b.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On July 28, 2023 10:20:23 AM Craig Newman via use-livecode 
 wrote:


Why does, as Paul suggests, changing the layer order in the Project Browser 
work, whereas changing the layer order explicitly does not? We know that 
layers cannot be assigned to a particular object class (like fields) but 
include all controls at once. Is it possible that the layer order of the 
fields only was not properly grokked?


Craig

On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode 
 wrote:


Thanks Paul. That is one of those super helpful tips that is hard to 
discover on your own. 1 day we need an easily searchable wiki for all this 
acquired wisdom (but for now I have tucked it away for future reference). 
Thanks for replying.


Mark


On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode 
 wrote:


You can change the layer (order) in the Project Browser in the IDE by just 
dragging the objects up or down the list of objects on the card.



On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote:
How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) 
in positions 9, 15, 12 (as indicated by the Layer field in the Position 
tab). Tabbing cause these fields to be visited in the order a, c, b whereas 
I would prefer a, b, c. I have tried all manner of editing the Layer field 
to make them be in that order with no success, I’ve variously tried new 
orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect 
their order. It always returns to 9, 15, 12. Lock size and position is not 
checked. I’ve even tried doing this with the Number field in the Advanced 
tab, also without success. Ok, I did find a solution but while it was easy 
for me, it might not be as easy on a more complicated form. I deleted all 3 
fields. Recreated field A (which was given the starting position of 11) 
then copy pasted two more times creating fields 12 and 13. So this 
satisfies my reorder interest, but seems to me a rather cumbersome and 
unnecessary procedure (if for no other reason than deleting fields also 
deletes all of the “custom” settings on the fields which doubles or triples 
the amount of effort involved). Maybe I am missing something more obvious?


Thanks


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reorder fields

2023-07-28 Thread Mark Smith via use-livecode
Well, this might explain it. The original designer had grouped the labels and 
the fields into groups (so label A and field A into grp A, etc). I was trying 
to change the order of the fields, (oddly, when you select the label or the 
field on the form it does not select a group, so I never realised the grouping 
existed). Using the project browser to select each group the order was 8, 14, 
11. I used Pauls trick to move grp 11 above 14 and that satisfied the reorder. 
But, I also tried and successfully used the Layer field in the Inspector to 
change the group ordering (in this case to 8, 14, 15) and achieved the same 
effect. It was a bit more complicated because I had to use the PB to select the 
grp and then open the inspector for that group to change the layer. 

Très compliqué, non!



> On 28 Jul 2023, at 4:17 pm, Craig Newman via use-livecode 
>  wrote:
> 
> Why does, as Paul suggests, changing the layer order in the Project Browser 
> work, whereas changing the layer order explicitly does not? We know that 
> layers cannot be assigned to a particular object class (like fields) but 
> include all controls at once. Is it possible that the layer order of the 
> fields only was not properly grokked?
> 
> Craig
> 
>> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode 
>>  wrote:
>> 
>> Thanks Paul. That is one of those super helpful tips that is hard to 
>> discover on your own. 1 day we need an easily searchable wiki for all this 
>> acquired wisdom (but for now I have tucked it away for future reference). 
>> Thanks for replying.
>> 
>> Mark
>> 
>> 
>>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode 
>>>  wrote:
>>> 
>>> You can change the layer (order) in the Project Browser in the IDE by just 
>>> dragging the objects up or down the list of objects on the card.
>>> 
>>> 
>>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote:
 How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) 
 in positions 9, 15, 12 (as indicated by the Layer field in the Position 
 tab). Tabbing cause these fields to be visited in the order a, c, b 
 whereas I would prefer a, b, c. I have tried all manner of editing the 
 Layer field to make them be in that order with no success, I’ve variously 
 tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems 
 to affect their order. It always returns to 9, 15, 12. Lock size and 
 position is not checked. I’ve even tried doing this with the Number field 
 in the Advanced tab, also without success. Ok, I did find a solution but 
 while it was easy for me, it might not be as easy on a more complicated 
 form. I deleted all 3 fields. Recreated field A (which was given the 
 starting position of 11) then copy pasted two more times creating fields 
 12 and 13. So this satisfies my reorder interest, but seems to me a rather 
 cumbersome and unnecessary procedure (if for no other reason than deleting 
 fields also deletes all of the “custom” settings on the fields which 
 doubles or triples the amount of effort involved). Maybe I am missing 
 something more obvious?
 
 Thanks
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reorder fields

2023-07-28 Thread Craig Newman via use-livecode
Why does, as Paul suggests, changing the layer order in the Project Browser 
work, whereas changing the layer order explicitly does not? We know that layers 
cannot be assigned to a particular object class (like fields) but include all 
controls at once. Is it possible that the layer order of the fields only was 
not properly grokked?

Craig

> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode 
>  wrote:
> 
> Thanks Paul. That is one of those super helpful tips that is hard to discover 
> on your own. 1 day we need an easily searchable wiki for all this acquired 
> wisdom (but for now I have tucked it away for future reference). Thanks for 
> replying.
> 
> Mark
> 
> 
>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> You can change the layer (order) in the Project Browser in the IDE by just 
>> dragging the objects up or down the list of objects on the card.
>> 
>> 
>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote:
>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) 
>>> in positions 9, 15, 12 (as indicated by the Layer field in the Position 
>>> tab). Tabbing cause these fields to be visited in the order a, c, b whereas 
>>> I would prefer a, b, c. I have tried all manner of editing the Layer field 
>>> to make them be in that order with no success, I’ve variously tried new 
>>> orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect 
>>> their order. It always returns to 9, 15, 12. Lock size and position is not 
>>> checked. I’ve even tried doing this with the Number field in the Advanced 
>>> tab, also without success. Ok, I did find a solution but while it was easy 
>>> for me, it might not be as easy on a more complicated form. I deleted all 3 
>>> fields. Recreated field A (which was given the starting position of 11) 
>>> then copy pasted two more times creating fields 12 and 13. So this 
>>> satisfies my reorder interest, but seems to me a rather cumbersome and 
>>> unnecessary procedure (if for no other reason than deleting fields also 
>>> deletes all of the “custom” settings on the fields which doubles or triples 
>>> the amount of effort involved). Maybe I am missing something more obvious?
>>> 
>>> Thanks
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reorder fields

2023-07-28 Thread Mark Smith via use-livecode
Thanks Paul. That is one of those super helpful tips that is hard to discover 
on your own. 1 day we need an easily searchable wiki for all this acquired 
wisdom (but for now I have tucked it away for future reference). Thanks for 
replying.

Mark


> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode 
>  wrote:
> 
> You can change the layer (order) in the Project Browser in the IDE by just 
> dragging the objects up or down the list of objects on the card.
> 
> 
> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote:
>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in 
>> positions 9, 15, 12 (as indicated by the Layer field in the Position tab). 
>> Tabbing cause these fields to be visited in the order a, c, b whereas I 
>> would prefer a, b, c. I have tried all manner of editing the Layer field to 
>> make them be in that order with no success, I’ve variously tried new orders: 
>> 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their 
>> order. It always returns to 9, 15, 12. Lock size and position is not 
>> checked. I’ve even tried doing this with the Number field in the Advanced 
>> tab, also without success. Ok, I did find a solution but while it was easy 
>> for me, it might not be as easy on a more complicated form. I deleted all 3 
>> fields. Recreated field A (which was given the starting position of 11) then 
>> copy pasted two more times creating fields 12 and 13. So this satisfies my 
>> reorder interest, but seems to me a rather cumbersome and unnecessary 
>> procedure (if for no other reason than deleting fields also deletes all of 
>> the “custom” settings on the fields which doubles or triples the amount of 
>> effort involved). Maybe I am missing something more obvious?
>> 
>> Thanks
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reorder fields

2023-07-28 Thread Paul Dupuis via use-livecode
You can change the layer (order) in the Project Browser in the IDE by 
just dragging the objects up or down the list of objects on the card.



On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote:

How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in 
positions 9, 15, 12 (as indicated by the Layer field in the Position tab). 
Tabbing cause these fields to be visited in the order a, c, b whereas I would 
prefer a, b, c. I have tried all manner of editing the Layer field to make them 
be in that order with no success, I’ve variously tried new orders: 9,10,11 or 
14,15,16 or even 20,21,22 but nothing seems to affect their order. It always 
returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried 
doing this with the Number field in the Advanced tab, also without success. Ok, 
I did find a solution but while it was easy for me, it might not be as easy on 
a more complicated form. I deleted all 3 fields. Recreated field A (which was 
given the starting position of 11) then copy pasted two more times creating 
fields 12 and 13. So this satisfies my reorder interest, but seems to me a 
rather cumbersome and unnecessary procedure (if for no other reason than 
deleting fields also deletes all of the “custom” settings on the fields which 
doubles or triples the amount of effort involved). Maybe I am missing something 
more obvious?

Thanks


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reorder fields

2023-07-28 Thread Craig Newman via use-livecode
I was sloppy, as usual. Trap the message in the card, and use the target to 
know where you are and where to go next.

Craig

> On Jul 28, 2023, at 9:36 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Hi.
> 
> Not sure why the tabbing order seems to be out of whack, but you can always 
> force the issue by trapping the tabKey message in each field, and directing 
> it to the next one of you own choice.
> 
> Craig
> 
>> On Jul 28, 2023, at 6:19 AM, Mark Smith via use-livecode 
>>  wrote:
>> 
>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in 
>> positions 9, 15, 12 (as indicated by the Layer field in the Position tab). 
>> Tabbing cause these fields to be visited in the order a, c, b whereas I 
>> would prefer a, b, c. I have tried all manner of editing the Layer field to 
>> make them be in that order with no success, I’ve variously tried new orders: 
>> 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their 
>> order. It always returns to 9, 15, 12. Lock size and position is not 
>> checked. I’ve even tried doing this with the Number field in the Advanced 
>> tab, also without success. Ok, I did find a solution but while it was easy 
>> for me, it might not be as easy on a more complicated form. I deleted all 3 
>> fields. Recreated field A (which was given the starting position of 11) then 
>> copy pasted two more times creating fields 12 and 13. So this satisfies my 
>> reorder interest, but seems to me a rather cumbersome and unnecessary 
>> procedure (if for no other reason than deleting fields also deletes all of 
>> the “custom” settings on the fields which doubles or triples the amount of 
>> effort involved). Maybe I am missing something more obvious?
>> 
>> Thanks
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reorder fields

2023-07-28 Thread Craig Newman via use-livecode
Hi.

Not sure why the tabbing order seems to be out of whack, but you can always 
force the issue by trapping the tabKey message in each field, and directing it 
to the next one of you own choice.

Craig

> On Jul 28, 2023, at 6:19 AM, Mark Smith via use-livecode 
>  wrote:
> 
> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in 
> positions 9, 15, 12 (as indicated by the Layer field in the Position tab). 
> Tabbing cause these fields to be visited in the order a, c, b whereas I would 
> prefer a, b, c. I have tried all manner of editing the Layer field to make 
> them be in that order with no success, I’ve variously tried new orders: 
> 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. 
> It always returns to 9, 15, 12. Lock size and position is not checked. I’ve 
> even tried doing this with the Number field in the Advanced tab, also without 
> success. Ok, I did find a solution but while it was easy for me, it might not 
> be as easy on a more complicated form. I deleted all 3 fields. Recreated 
> field A (which was given the starting position of 11) then copy pasted two 
> more times creating fields 12 and 13. So this satisfies my reorder interest, 
> but seems to me a rather cumbersome and unnecessary procedure (if for no 
> other reason than deleting fields also deletes all of the “custom” settings 
> on the fields which doubles or triples the amount of effort involved). Maybe 
> I am missing something more obvious?
> 
> Thanks
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: charIndex property

2023-07-28 Thread Paul Dupuis via use-livecode

On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote:

Oh those pesky chunks which don’t ‘cover’ the target string (which is actually 
all of them except codeunit/point/char come to think of it). I should have run 
through a few more examples in my head before posting….

Alternative attempt:

Put null into word N to -1 of S
Delete codeunit (codeunitoffset(null, S) to -1 of S
Return the number of chars in S + 1

The problem before was the chars which do not form part of the last chunk and 
remain after deletion.

The above puts in a sentinel char which can be searched for to find where the 
requested chunk started.

Second time lucky? ;)




Second time's the charm. That works for all chunk types tested 
(trueWord, sentence, paragraph)! Thank you!


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Reorder fields

2023-07-28 Thread Mark Smith via use-livecode
How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in 
positions 9, 15, 12 (as indicated by the Layer field in the Position tab). 
Tabbing cause these fields to be visited in the order a, c, b whereas I would 
prefer a, b, c. I have tried all manner of editing the Layer field to make them 
be in that order with no success, I’ve variously tried new orders: 9,10,11 or 
14,15,16 or even 20,21,22 but nothing seems to affect their order. It always 
returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried 
doing this with the Number field in the Advanced tab, also without success. Ok, 
I did find a solution but while it was easy for me, it might not be as easy on 
a more complicated form. I deleted all 3 fields. Recreated field A (which was 
given the starting position of 11) then copy pasted two more times creating 
fields 12 and 13. So this satisfies my reorder interest, but seems to me a 
rather cumbersome and unnecessary procedure (if for no other reason than 
deleting fields also deletes all of the “custom” settings on the fields which 
doubles or triples the amount of effort involved). Maybe I am missing something 
more obvious?

Thanks


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode