Re: Tree Widget: hilitedValue?

2022-07-09 Thread Brian Milby via use-livecode
I don't think there is an existing one liner, but it can be done a couple
ways.

Here is a recursive function defined in the PI code for Custom Props:

on fetchArrayDataOnPath pPath, pArray, @rData
   local tKey
   put item 1 of pPath into tKey
   if the number of items in pPath is 1 then
  if tKey is not among the keys of pArray then
 return "no such key"
  else
 put pArray[tKey] into rData
 return empty
  end if
   else
  delete item 1 of pPath
  fetchArrayDataOnPath pPath, pArray[tKey], rData
   end if
end fetchArrayDataOnPath

There are other handlers in that script that could be useful as well
(add/set/delete).

You could also turn the path into an array (but lose the error checking
above):

function getValue pArray, pPath
   split pPath by comma
   return pArray[pPath]
end getValue

Thanks,
Brian

On Sat, Jul 9, 2022 at 5:08 PM J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 7/9/22 3:17 PM, J. Landman Gay via use-livecode wrote:
> > On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote:
> >> I see the Tree widget supports a hilitedElement property, which is
> useful for managing the
> >> selection in the UI.
> >>
> >> Is there a one-liner for obtaining not the element path but the value?
> >
> > I'm using an older version, but here the hilitedElement includes the
> values of each element in
> > the path.
> >
>
> I misunderstood, you don't mean just the names of the elements. The value
> shows up as part of
> the tree unless you turn off "show values". I think you'll have to parse
> the array to actually
> get the values in a leaf.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> 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: use-livecode Digest, Vol 226, Issue 8

2022-07-09 Thread matthias rebbe via use-livecode


> Am 10.07.2022 um 01:25 schrieb Mark Clark via use-livecode 
> :
> 
> Hey, saw your post  this am and much appreciated. I sent a request to support 
> as well. 
> 
> Thanks for the assist and confirmation!
> 
> Mark
> 
> It seems that each time I sign up for the bug tracker and or forums my main 
> livecode.com  password gets mangled. Been happening for 
> years and if I remember I’ll ask for support help there. Likely something to 
> do with keychain being confused about similar url’s.
> 
The easiest way to see if it is really a keychain thing is, search for livecode 
in KeyChain.app and delete all Livecode entries and then reset your password 
for Livecode.com  account and the QualityCenter.

Regards,
Matthias


>> On Jul 9, 2022, at 11:00 AM, use-livecode-requ...@lists.runrev.com wrote:
>> 
>> As you are on digest mode and i do not know when you read this, I've filed a 
>> bug already to speed it up a little bit.
>> 
>> https://quality.livecode.com/show_bug.cgi?id=23799 
>>  
>> > >
>> 
>> Maybe you want to add yourself to the CC list.
>> 
>> Regards,
>> Matthias
> 
> ___
> 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: use-livecode Digest, Vol 226, Issue 8

2022-07-09 Thread Mark Clark via use-livecode
Hey, saw your post  this am and much appreciated. I sent a request to support 
as well. 

Thanks for the assist and confirmation!

Mark

It seems that each time I sign up for the bug tracker and or forums my main 
livecode.com  password gets mangled. Been happening for 
years and if I remember I’ll ask for support help there. Likely something to do 
with keychain being confused about similar url’s.

> On Jul 9, 2022, at 11:00 AM, use-livecode-requ...@lists.runrev.com wrote:
> 
> As you are on digest mode and i do not know when you read this, I've filed a 
> bug already to speed it up a little bit.
> 
> https://quality.livecode.com/show_bug.cgi?id=23799 
>  
>  >
> 
> Maybe you want to add yourself to the CC list.
> 
> Regards,
> Matthias

___
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: Tree Widget: hilitedValue?

2022-07-09 Thread J. Landman Gay via use-livecode

On 7/9/22 3:17 PM, J. Landman Gay via use-livecode wrote:

On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote:
I see the Tree widget supports a hilitedElement property, which is useful for managing the 
selection in the UI.


Is there a one-liner for obtaining not the element path but the value?


I'm using an older version, but here the hilitedElement includes the values of each element in 
the path.




I misunderstood, you don't mean just the names of the elements. The value shows up as part of 
the tree unless you turn off "show values". I think you'll have to parse the array to actually 
get the values in a leaf.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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: Tree Widget: hilitedValue?

2022-07-09 Thread J. Landman Gay via use-livecode

On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote:
I see the Tree widget supports a hilitedElement property, which is useful for managing the 
selection in the UI.


Is there a one-liner for obtaining not the element path but the value?


I'm using an older version, but here the hilitedElement includes the values of each element in 
the path.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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


Signing and Uploading apps to the Mac App Store HELL!

2022-07-09 Thread Dan Friedman via use-livecode
Greetings!  I am pulling out my hair in getting my app prepared for the MacApp 
Store (and for downloading from my website).  I can't take it anymore!!   Is 
there someone here I can pay to either do this for me, or walk me through this 
hideous process?

-Dan

___
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: Encrypted Data over Sockets

2022-07-09 Thread Mark Wieder via use-livecode

On 7/8/22 19:47, Bob Sneidar via use-livecode wrote:

Okay apparently base64Encode/Decode is my friend. I have this working now 
without encryption. I will re-enable encryption and see if that works.


Base64 encoding will do the trick but at the expense of making your data 
strings twice as long as the binary equivalents.


--
 Mark Wieder
 ahsoftw...@gmail.com

___
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: LC 9.6.8 and UTF-8 on MacOS 10.15

2022-07-09 Thread Pi Digital via use-livecode
What result do you get from:
put it contains “æ”

Sean Cole
Pi

> On 9 Jul 2022, at 12:43, jbv via use-livecode  
> wrote:
> 
> æ
___
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


LC 9.6.8 and UTF-8 on MacOS 10.15

2022-07-09 Thread jbv via use-livecode

Hi list,

I have a serie of text files in UTF-8 format for which I need to do some 
processing in LC,

and then save to a single text file also in UTF-8.
I am using the following code :

  open file tpath for UTF8 read
  read from file tpath until EOF
  close file tpath1
  --put it into tfile
  put textdecode(it,"UTF-8") into tfile

--processing

  open file tpath2 for UTF8 write
  write liste_credits to file tpath2
  close file tpath2

If I use "put it into tfile" instead of "put textDecode...", the text 
content is full of typical

gibberish (such as "√¶" instead of "æ").
I thought the latest LC versions could process UTF-8 natively. So why is 
"textdecode" necessary

to obtain special characters in their true form ?
Thank you in advance.

jbv

___
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: MegaBundle whatnot

2022-07-09 Thread Kaveh via use-livecode
Why does LiveCode make the licenses so complicated? I try to understand
from time to time so I can repurchase, then give up...

On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Mark,
> What I forgot.
>
> I assume you have a current subscription, right?
> So why do you not try a newer LC release; one of the new editions without
> Indy and business in the name? Anything higher than 9.63 should do.
>
> Regards
> Matthias
>
> Von meinem iPhone gesendet
>
> > Am 08.07.2022 um 21:01 schrieb matthias_livecode_150...@m-r-d.de:
> >
> > Mark,
> >
> > that seems to be a problem with Indy and Business licenses. I can
> reproduce it here with an Indy license. Seems, the Enh.Pack needs to be
> modified a little bit.;)
> >
> > As you are on digest mode and i do not know when you read this, I've
> filed a bug already to speed it up a little bit.
> >
> > https://quality.livecode.com/show_bug.cgi?id=23799
> >
> > Maybe you want to add yourself to the CC list.
> >
> > Regards,
> > Matthias
> >
> >
> >> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode <
> use-livecode@lists.runrev.com>:
> >>
> >> I went ahead and purchased the megabundle, mostly for the LC
> Enhancement piece. Got that download and clicked the install widgets and
> the widgets all show “unlicensed.” Hmm, what?
> >>
> >> Tried to re-license and for some reason I only see my business license
> as an option (also have the old commercial license whatever that maps to
> now). So, np figure it out later, selected business license and LC starts
> but the enhancements still show unlicensed. Is there something manual I’m
> missing?
> >>
> >> TIA,
> >> Mark (on digest mode)
> >> ___
> >> 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
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: MegaBundle whatnot

2022-07-09 Thread Matthias Rebbe via use-livecode
Mark,
What I forgot.

I assume you have a current subscription, right?
So why do you not try a newer LC release; one of the new editions without Indy 
and business in the name? Anything higher than 9.63 should do. 

Regards
Matthias

Von meinem iPhone gesendet

> Am 08.07.2022 um 21:01 schrieb matthias_livecode_150...@m-r-d.de:
> 
> Mark,
> 
> that seems to be a problem with Indy and Business licenses. I can reproduce 
> it here with an Indy license. Seems, the Enh.Pack needs to be modified a 
> little bit.;)
> 
> As you are on digest mode and i do not know when you read this, I've filed a 
> bug already to speed it up a little bit.
> 
> https://quality.livecode.com/show_bug.cgi?id=23799
> 
> Maybe you want to add yourself to the CC list.
> 
> Regards,
> Matthias
> 
> 
>> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode 
>> :
>> 
>> I went ahead and purchased the megabundle, mostly for the LC Enhancement 
>> piece. Got that download and clicked the install widgets and the widgets all 
>> show “unlicensed.” Hmm, what?
>> 
>> Tried to re-license and for some reason I only see my business license as an 
>> option (also have the old commercial license whatever that maps to now). So, 
>> np figure it out later, selected business license and LC starts but the 
>> enhancements still show unlicensed. Is there something manual I’m missing? 
>> 
>> TIA,
>> Mark (on digest mode)
>> ___
>> 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