I believe this works:
on mouseUp
put fld 1 into tList
sort lines of tList by _sortKey(each)
put tList into fld 2
end mouseUp
function _sortKey pLine
set the itemDel to ";"
return item 3 of pLine & ";" & item 2 of pLine
end _sortKey
I realize
Of course my "not working" sort code look like this
set the itemdelimiter to ";"
sort lines of tList numeric by item 3 of each and item 2 of each.
> Am 03.09.2023 um 02:59 schrieb matthias_livecode_150...@m-r-d.de:
>
> Maybe i do not see the forest for the trees
>
> I have a tab delimit
Maybe i do not see the forest for the trees
I have a tab delimited list which i want to sort. I am using this code to sort
it by item 3 and item 2
set the itemdelimiter to tab
sort lines of tList numeric by item 3 of each and item 2 of each.
But that code does not sort as i expected it. Co
Geoff Canyon wrote (after a bravura display of how many different
ways there are to do things in LC!) :
And the function sort also sorts based on a negative infinity value
for
errors. I'm not sure I'd consider that a bug.
Hmm. I would. The sortKey function should tolerate any sort of
run-time e
Your right. Something about the rawClipboardData fails with an error.
Trying the fullClipboardData (code below) works. My guess is that there
may be something about the first key (on my Windows system that is
"text/html" where the slash is causing an error? I'd need to look at it
further - per
Paul, getting the keys of the rawClipboardData worked for me too. What didn’t
work was trying to read the values. See this part of my script, I hope shown
this time without the asterisks gMail added before:
lock clipboard
…
put the keys of the rawClipboardData into myK3 ## THIS WORKS
In my experience the app remains running when the recent apps are
displayed, but if you continue by choosing another app then I think you
should get either the shutdowns message or the suspend one. It's worth a try.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | htt
Dan, have a look at suspend in the dictionary for LC 10 dp6. It is sent to the
current card when the application moves to the background so I think you’ll
need an ON SUSPEND handler in the card script. I havent actually tried it yet.
Mark
Sent from my iPhone
> On Sep 2, 2023, at 4:27 PM, Dan F
Jacqueline,
Thank you for the reply. I don’t think suspend and resume are going to help…
If the app is playing music (in the foreground or the background) and the user
brings up the list of running apps and swipes up to remove it, how can I trap
that the app is being closed and stop playing mu
Since my method didn't work, I'd try Marks, namely to put the keys of
the clipboard array into a variable to look at
on mouseUp
lock clipboard
put the keys of the clipboarddata into tKeys1
put the keys of the fullclipboarddata into tKeys2
put the keys of the rawclipboarddata into tkeys3
Many thanks to Paul Dupuis and Mark Waddingham. The script below tries to
test their suggestions. Using 10.0.0 dp5 on an Intel Mac, and watching
execution after the breakpoint, I get errors at each "try" in the script.
So it does not seem that I can write the fullClipboardData
or rawClipboardData
You could poke around the raw clipboard data - this is platform specific (in
terms of the keys) but gives a complete reflection of the system clipboard:
lock clipboard
put the keys of the rawClipboardData
unlock clipboard
This will dump what raw data types are present - then you can fetch using
12 matches
Mail list logo