Re: Speaking of Filter and Match...

2022-03-14 Thread Dick Kriesel via use-livecode


> On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote:
>> I have a field with about a thousand lines with many duplicate lines, and I 
>> want to delete the duplicates. Seems like this should be simple but I am 
>> running around in circles. Can anyone help me with this?
> 
> Making the list into an array is the easiest way but as mentioned, it will 
> destroy the original order. If the order is important then you can restore it 
> with a custom sort function...
> 


Since order must be maintained, it’s probably faster not to split and sort, and 
faster not to scan the list repeatedly using lineOffset or contains.
You could do it like this:

command removeDuplicates pDelimitedList, pDelimiter
   local tArray, tList
   set the lineDelimiter to pDelimiter
   repeat for each line tLine in pDelimitedList
  if not tArray[tLine] then -- i.e., if this line hasn't appeared already, 
then ...
 put true into tArray[tLine]
 put tLine & pDelimiter after tList
  end if
   end repeat
   delete last char of tList
   return tList for value
end removeDuplicates

— Dick
___
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: Speaking of Filter and Match...

2022-03-14 Thread Roger Guay via use-livecode
Ah, I see. Thank you again, Bob.

Roger

> On Mar 14, 2022, at 2:37 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> The UNIQUE clause is the UNIQUE combination of ALL the columns put together. 
> If I used: 
> 
> SELECT city,state UNIQUE FROM zip codes where state = 'CA' 
> 
> I would get every unique city/state combination in CA, whereas if I used: 
> 
> SELECT state UNIQUE from zip codes where state = 'CA'
> 
> I would get the first record matching 'CA', that is one record. 
> 
> There is a way to get the city and state for the one record (why anyone would 
> want to I don't know) by creating a join to the same table and using the 
> UNIQUE clause in the join. I am not that good at join syntax, so I won't 
> attempt it here and embarrass myself. :-)
> 
> BTW you can get the last matching record by doing an ascending sort and using 
> LIMIT 1, but I think MS SQL suffers from not having a limit clause. Not sure 
> why. Instead you use the TOP clause. 
> 
> Bob S
> 
> 
>> On Mar 14, 2022, at 12:14 , Roger Guay via use-livecode 
>>  wrote:
>> 
>>> Actually I must correct myself. That will not work because the unique value 
>>> column (typically an autoincrementing integer) will not be unique for each 
>>> record. Instead, assuming your lines of text are in a column called 
>>> "textdata" 
>>> 
>>> SELECT textdata UNIQUE FROM...
>>> 
>>> Bob S
> 
> 
> ___
> 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: Speaking of Filter and Match...

2022-03-14 Thread Bob Sneidar via use-livecode
The UNIQUE clause is the UNIQUE combination of ALL the columns put together. If 
I used: 

SELECT city,state UNIQUE FROM zip codes where state = 'CA' 

I would get every unique city/state combination in CA, whereas if I used: 

SELECT state UNIQUE from zip codes where state = 'CA'

I would get the first record matching 'CA', that is one record. 

There is a way to get the city and state for the one record (why anyone would 
want to I don't know) by creating a join to the same table and using the UNIQUE 
clause in the join. I am not that good at join syntax, so I won't attempt it 
here and embarrass myself. :-)

BTW you can get the last matching record by doing an ascending sort and using 
LIMIT 1, but I think MS SQL suffers from not having a limit clause. Not sure 
why. Instead you use the TOP clause. 

Bob S


> On Mar 14, 2022, at 12:14 , Roger Guay via use-livecode 
>  wrote:
> 
>> Actually I must correct myself. That will not work because the unique value 
>> column (typically an autoincrementing integer) will not be unique for each 
>> record. Instead, assuming your lines of text are in a column called 
>> "textdata" 
>> 
>> SELECT textdata UNIQUE FROM...
>> 
>> Bob S


___
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: Browser Widget and Images

2022-03-14 Thread Rick Harrison via use-livecode
Thanks!

I had forgotten about "import as control" and about
set the imagedata of image “my image”.

set the imagedata doesn’t fit to the image’s object size though.
I would probably have to resize the image beforehand.

I also came across:

put URL "binfile:///ExportedImageFile.png" into image  “my image”

The above does fit the image size nicely and I can paint on it etc.

Thanks for all of your help!

Rick



> On Mar 14, 2022, at 5:04 AM, Klaus major-k via use-livecode 
>  wrote:
> 
>> set the imagedata of img "myImage" to the imagedata of img "myImage"
> 
> what Jim said! :-)
> 
> Thisw way the image becomes part of the stack as if "imported as control" 

___
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: Speaking of Filter and Match...

2022-03-14 Thread Roger Guay via use-livecode
Thanks ver much for your clarifications, Bob although I’m not sure I understand 
your correction.

Roger

> On Mar 14, 2022, at 8:48 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Actually I must correct myself. That will not work because the unique value 
> column (typically an autoincrementing integer) will not be unique for each 
> record. Instead, assuming your lines of text are in a column called 
> "textdata" 
> 
> SELECT textdata UNIQUE FROM...
> 
> Bob S
> 
> 
>> On Mar 14, 2022, at 08:29 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> They depend on the fact that arrays cannot have duplicate keys. Dumping the 
>> data into an SQL database and querying using the UNIQUE statement would do 
>> it too. 
>> 
>> SELECT * UNIQUE from ...
>> 
>> Bob S
>> 
>> 
>> 
>>> On Mar 13, 2022, at 13:16 , Roger Guay via use-livecode 
>>>  wrote:
>>> 
>>> Thank you Jacqueline, Alex and Terry. Very interesting new (for me) methods 
>>> that I would never have come up with on my own. 
>>> 
>>> Roger
>>> 
 On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode 
  wrote:
 
 On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote:
> I have a field with about a thousand lines with many duplicate lines, and 
> I want to delete the duplicates. Seems like this should be simple but I 
> am running around in circles. Can anyone help me with this?
 
 Making the list into an array is the easiest way but as mentioned, it will 
 destroy the original order. If the order is important then you can restore 
 it with a custom sort function. Here's my test handlers:
 
 
 on mouseUp
 put fld 1 into tData -- we keep this as a reference to the original order
 put tData into tTrimmedData -- this one will change
 split tTrimmedData by cr as set -- removes duplicates
 put keys(tTrimmedData) into tTrimmedData -- convert to a text list
 sort tTrimmedData numeric by origOrder(each,tData)
 put tTrimmedData into fld 1
 end mouseUp
 
 function origOrder pWord, @pData
 set wholematches to true -- may not matter, depends on the data
 return lineoffset(pWord, pData)
 end origOrder
 
 Field 1 contains lines in random order with duplicates.
 
 -- 
 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
>> 
>> 
>> ___
>> 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: Speed up a slow loop

2022-03-14 Thread J. Landman Gay via use-livecode
One last thing. Scott Morrow was good enough to build for iOS and send a screenshot. I was very 
pleased to see it went cross-platform without any significant problems (thank you LC!) but the 
custom font was missing, which makes sense since I didn't include any external resources. That 
reminded me that it probably didn't have an icon either.


I've updated the zip file download to include the resources needed; icons for all platforms 
(but the Windows one is very old) and a copy of the font. Update your standalone settings to 
accomodate the paths you need.




Thanks guys.

On 3/12/22 3:32 PM, J. Landman Gay via use-livecode wrote:
I have to thank everyone who helped me figure out my Boggle game. I've put the current file on 
Google Drive for anyone who wants to take a look. The scripts are open and I think I've removed 
all the testing cruft that accumulated over the last couple of weeks.


I'd be interested in any feedback or improvements. There's a Read Me in the zip file with more 
info.




Thanks so much to all! Contributors have been credited in the scripts.

Jacque




--
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: Windows 11 incompatible?

2022-03-14 Thread Bob Sneidar via use-livecode
Ah thanks! That worked. Unfortunately there is no alternative for the Mac. :-(

Bob S


> On Mar 14, 2022, at 10:29 , Colin Holgate via use-livecode 
>  wrote:
> 
> No, you press Alt and tap the spacebar. Let go of both keys, then tap M, and 
> tap any arrow key. Move the cursor to see the frontmost window is attached.
> 
> 
>> On Mar 14, 2022, at 11:25 AM, Craig Newman via use-livecode 
>>  wrote:
>> 
>> Hi, Colin.
>> 
>> Hmmm.  I assume that all four of those keys are pressed at the same time?
>> 
>> Craig
>> 
>>> On Mar 14, 2022, at 11:52 AM, Colin Holgate via use-livecode 
>>>  wrote:
>>> 
>>> Yes it does. The M is for Move, if you’re working on a non-English system 
>>> you would type the first letter for Move in your language.
>>> 
>>> 
 On Mar 14, 2022, at 9:47 AM, Craig Newman via use-livecode 
  wrote:
 
 Do I understand that, on Windows, typing those keys makes the frontmost 
 window track the cursor???
>>> 
>>> ___
>>> 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: revOpenDatabase over SSH tunnel?

2022-03-14 Thread Ben Rubinstein via use-livecode
I can't speak for most of the world, but in the past where we've directly 
connected to MySQL over the internet that's always been limited by IP (which 
as you doubtless know is built-in to the permissions system).


The difference for me in this case is that instead of talking to a dedicated 
server, we're accessing a shared managed database service - hence these 
additional measures make sense.



On 14/03/2022 17:30, Richard Gaskin via use-livecode wrote:

matthias wrote:

 > As more and more servers do not allow remote MySQL access due to
 > security restrictions...

It's almost like experienced hosting vendors and even the MySQL team itself 
are trying to tell us something...


How does most of the world outside of the LC community handle remote DB CRUD 
operations?




___
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: revOpenDatabase over SSH tunnel?

2022-03-14 Thread Richard Gaskin via use-livecode

matthias wrote:

> As more and more servers do not allow remote MySQL access due to
> security restrictions...

It's almost like experienced hosting vendors and even the MySQL team 
itself are trying to tell us something...


How does most of the world outside of the LC community handle remote DB 
CRUD operations?


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Windows 11 incompatible?

2022-03-14 Thread Colin Holgate via use-livecode
No, you press Alt and tap the spacebar. Let go of both keys, then tap M, and 
tap any arrow key. Move the cursor to see the frontmost window is attached.


> On Mar 14, 2022, at 11:25 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Hi, Colin.
> 
> Hmmm.  I assume that all four of those keys are pressed at the same time?
> 
> Craig
> 
>> On Mar 14, 2022, at 11:52 AM, Colin Holgate via use-livecode 
>>  wrote:
>> 
>> Yes it does. The M is for Move, if you’re working on a non-English system 
>> you would type the first letter for Move in your language.
>> 
>> 
>>> On Mar 14, 2022, at 9:47 AM, Craig Newman via use-livecode 
>>>  wrote:
>>> 
>>> Do I understand that, on Windows, typing those keys makes the frontmost 
>>> window track the cursor???
>> 
>> ___
>> 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: Windows 11 incompatible?

2022-03-14 Thread Craig Newman via use-livecode
Hi, Colin.

Hmmm.  I assume that all four of those keys are pressed at the same time?

Craig

> On Mar 14, 2022, at 11:52 AM, Colin Holgate via use-livecode 
>  wrote:
> 
> Yes it does. The M is for Move, if you’re working on a non-English system you 
> would type the first letter for Move in your language.
> 
> 
>> On Mar 14, 2022, at 9:47 AM, Craig Newman via use-livecode 
>>  wrote:
>> 
>> Do I understand that, on Windows, typing those keys makes the frontmost 
>> window track the cursor???
> 
> ___
> 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: Windows 11 incompatible?

2022-03-14 Thread Colin Holgate via use-livecode
Yes it does. The M is for Move, if you’re working on a non-English system you 
would type the first letter for Move in your language.


> On Mar 14, 2022, at 9:47 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Do I understand that, on Windows, typing those keys makes the frontmost 
> window track the cursor???

___
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: Speaking of Filter and Match...

2022-03-14 Thread Bob Sneidar via use-livecode
Actually I must correct myself. That will not work because the unique value 
column (typically an autoincrementing integer) will not be unique for each 
record. Instead, assuming your lines of text are in a column called "textdata" 

SELECT textdata UNIQUE FROM...

Bob S


> On Mar 14, 2022, at 08:29 , Bob Sneidar via use-livecode 
>  wrote:
> 
> They depend on the fact that arrays cannot have duplicate keys. Dumping the 
> data into an SQL database and querying using the UNIQUE statement would do it 
> too. 
> 
> SELECT * UNIQUE from ...
> 
> Bob S
> 
> 
> 
>> On Mar 13, 2022, at 13:16 , Roger Guay via use-livecode 
>>  wrote:
>> 
>> Thank you Jacqueline, Alex and Terry. Very interesting new (for me) methods 
>> that I would never have come up with on my own. 
>> 
>> Roger
>> 
>>> On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote:
 I have a field with about a thousand lines with many duplicate lines, and 
 I want to delete the duplicates. Seems like this should be simple but I am 
 running around in circles. Can anyone help me with this?
>>> 
>>> Making the list into an array is the easiest way but as mentioned, it will 
>>> destroy the original order. If the order is important then you can restore 
>>> it with a custom sort function. Here's my test handlers:
>>> 
>>> 
>>> on mouseUp
>>> put fld 1 into tData -- we keep this as a reference to the original order
>>> put tData into tTrimmedData -- this one will change
>>> split tTrimmedData by cr as set -- removes duplicates
>>> put keys(tTrimmedData) into tTrimmedData -- convert to a text list
>>> sort tTrimmedData numeric by origOrder(each,tData)
>>> put tTrimmedData into fld 1
>>> end mouseUp
>>> 
>>> function origOrder pWord, @pData
>>> set wholematches to true -- may not matter, depends on the data
>>> return lineoffset(pWord, pData)
>>> end origOrder
>>> 
>>> Field 1 contains lines in random order with duplicates.
>>> 
>>> -- 
>>> 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
> 
> 
> ___
> 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: Windows 11 incompatible?

2022-03-14 Thread Craig Newman via use-livecode
Hi.

Do I understand that, on Windows, typing those keys males the frontmost window 
track the cursor???

Craig

> On Mar 14, 2022, at 11:41 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Is there a Macintosh equivalent to that?? 
> 
> Bob S
> 
> 
>> On Mar 13, 2022, at 14:56 , Colin Holgate via use-livecode 
>>  wrote:
>> 
>> There is an issue on Windows that would show similar symptoms. That is, if a 
>> window is opened off screen it’s as if the application has frozen.
>> 
>> To see if that is the problem, type Alt-spacebar, M, any arrow key, and move 
>> the cursor. The offscreen window will be attached to the cursor, and a 
>> left-click will drop it off in the right place.
>> 
>> 
>>> On Mar 13, 2022, at 3:40 PM, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> Well, you'd need an account with a school but since the problem is only on 
>>> launch you might be able to test that part.
>>> 
>>> 
>>> 
>>> On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote:
 Do you have an app I can test?
> On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> We're getting reports that our LC app won't launch after the new Windows 
> 11 update. Anyone else seeing this? If so, do you know what the problem 
> is?
> 
> -- 
> 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
>>> 
>>> 
>>> -- 
>>> 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
> 
> ___
> 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: Windows 11 incompatible?

2022-03-14 Thread Bob Sneidar via use-livecode
Is there a Macintosh equivalent to that?? 

Bob S


> On Mar 13, 2022, at 14:56 , Colin Holgate via use-livecode 
>  wrote:
> 
> There is an issue on Windows that would show similar symptoms. That is, if a 
> window is opened off screen it’s as if the application has frozen.
> 
> To see if that is the problem, type Alt-spacebar, M, any arrow key, and move 
> the cursor. The offscreen window will be attached to the cursor, and a 
> left-click will drop it off in the right place.
> 
> 
>> On Mar 13, 2022, at 3:40 PM, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> Well, you'd need an account with a school but since the problem is only on 
>> launch you might be able to test that part.
>> 
>> 
>> 
>> On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote:
>>> Do you have an app I can test?
 On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode 
  wrote:
 
 We're getting reports that our LC app won't launch after the new Windows 
 11 update. Anyone else seeing this? If so, do you know what the problem is?
 
 -- 
 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
>> 
>> 
>> -- 
>> 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

___
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: Speaking of Filter and Match...

2022-03-14 Thread Bob Sneidar via use-livecode
They depend on the fact that arrays cannot have duplicate keys. Dumping the 
data into an SQL database and querying using the UNIQUE statement would do it 
too. 

SELECT * UNIQUE from ...

Bob S



> On Mar 13, 2022, at 13:16 , Roger Guay via use-livecode 
>  wrote:
> 
> Thank you Jacqueline, Alex and Terry. Very interesting new (for me) methods 
> that I would never have come up with on my own. 
> 
> Roger
> 
>> On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote:
>>> I have a field with about a thousand lines with many duplicate lines, and I 
>>> want to delete the duplicates. Seems like this should be simple but I am 
>>> running around in circles. Can anyone help me with this?
>> 
>> Making the list into an array is the easiest way but as mentioned, it will 
>> destroy the original order. If the order is important then you can restore 
>> it with a custom sort function. Here's my test handlers:
>> 
>> 
>> on mouseUp
>> put fld 1 into tData -- we keep this as a reference to the original order
>> put tData into tTrimmedData -- this one will change
>> split tTrimmedData by cr as set -- removes duplicates
>> put keys(tTrimmedData) into tTrimmedData -- convert to a text list
>> sort tTrimmedData numeric by origOrder(each,tData)
>> put tTrimmedData into fld 1
>> end mouseUp
>> 
>> function origOrder pWord, @pData
>> set wholematches to true -- may not matter, depends on the data
>> return lineoffset(pWord, pData)
>> end origOrder
>> 
>> Field 1 contains lines in random order with duplicates.
>> 
>> -- 
>> 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


___
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 10 DP2, does it already support the current multimedia architecture on Windows?

2022-03-14 Thread Klaus major-k via use-livecode
Hi all,

the subject says it all.
Means do we still need to install e.g. the LIBAV codecs to 
display MP4 video files?

Or is this newer feature not yet implemented in DP2?

Thanks for any hints.


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Windows EXE with browser about 160 MB?

2022-03-14 Thread matthias rebbe via use-livecode
I would say, this is because Microsoft did not embed CEF into Windows. 

So if you customers are asking why, tell them "because they are using Windows" 
and if they want to use a smaller download file they should use macOS. ;) 

I for myself would not have a problem with a download size of 170MB for a 
program i want to use. Compared to Adobe, MS Office and other programs, 170MB 
are not worth moaning about 

But that's my opinion.

Matthias

> Am 13.03.2022 um 18:14 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi all,
> 
> I just created a Windows EXE from my stack and was shocked to see
> that the resulting folder is 150 MB (32 bit) resp. 170 MB (64 bit)!?
> 
> I thought the Windows version of the browser widget would also "hook"
> somehow into the system web engine like the Mac version does, but 
> obviously I was wrong... :-/
> 
> How can we make a good case for this to our customers? 8-) 
> I just want to display PDF files, not the whole internet.
> 
> Too bad LC does not sell the PDF widget separately...
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> 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: Browser Widget and Images

2022-03-14 Thread Klaus major-k via use-livecode
Hi Rick,

> Am 14.03.2022 um 04:53 schrieb Jim Lambert via use-livecode 
> :
> 
>> So accessing the URL of the image directly in the image object
>> puts the image there, which is a good first step.
>> 
>> How is it stored however?  
>> 
>> If one looks at the image source it still shows the URL. 
>> 
>> I find I?m unable to paint on top of the image, probably 
>> because that would require my being able to modify the
>> online URL which isn?t possible for the obvious reason.
>> 
>> I probably need to make a local copy of the image to
>> be able to work on it.  Export image? Copy it to
>> the clipboard and paste it elsewhere?
>> 
>> Suggestions?
> 
> Rick,
> set the imagedata of img "myImage" to the imagedata of img "myImage"

what Jim said! :-)

Thisw way the image becomes part of the stack as if "imported as control" 
and you can paint on it or whatever, which is not possible with referenced 
images, be they local or online.

> Will replace the referenced image with the actual content of that image.
> In other words the image will now be local and you can then manipulate its 
> data.
> No need for snapshots. Although they work too!
> 
> Jim Lambert

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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