BTW you an also use this "split" trick to remove dupes (although you lose the
order of the word list):
function stripDupes pWordList
split pWordList by cr and tab
return (the keys of pWordList)
end stripDupes
on mouseUp
put stripDupes("test" & cr & "ball" & cr & "test" & cr & "orange")
Jacque,
How about using the 'difference' command? Here's a simple example:
on mouseUp
put "true" into tDict["test"]
put "true" into tDict["word"]
put "true" into tDict["ball"]
put "test" & cr & "ball" & cr & "boat" & cr & "unicorn" into tUserWords
split tUserWords by cr and
> On Apr 19, 2021, at 1:47 PM, Mark Wieder via use-livecode
> wrote:
>
> On 4/19/21 11:04 AM, J. Landman Gay via use-livecode wrote:
>
>> I don't think lineoffset supports wildcards, but you could do it with
>> matchChunk.
>
> Ah! matchChunk and the the number of lines of... etc...
> That
> On Apr 13, 2021, at 5:28 AM, Andre Garzia via use-livecode
> wrote:
>
> I like all that I read here. There are things that are really hard when
> building standalone apps that I don’t think should be handled by LC HQ, such
> as “adding AppleScript dictionary” to your app. This is harder
Craig,
It's because when you try to sort something, it's got to be a variable that's
being sorted. So all of the examples you used put "toSort" into the statement
to be "done" coming out compiled as:
sort items of "A,C,T,B" ascending
... which won't work. You need to execute:
do
If you're willing to do something "hackish", you could do this:
on mouseDown
lock screen
show grc "mygraphic"
put within(grc "mygraphic",the clickloc)
hide grc "mygraphic"
unlock screen
end mouseDown
:D
Ken
> On Feb 22, 2021, at 1:49 PM, jbv via use-livecode
> wrote:
>
> Hi list,
> On Jan 21, 2021, at 8:36 AM, Keith Clarke via use-livecode
> wrote:
>
> Thanks Brian. I looked at matchChunk in the dictionary & it seems to return a
> boolean, rather than the offset.
The boolean is just whether or not the matchChunk operation was successful; you
need to provide
Wow... I've been using Livecode since its inception (and Revolution before
that, and even MetaCard before *that*!), and I never knew this existed!
Just goes to show that there's always something new to learn about our favorite
development tool.
(I wonder if anyone's put together a "list of
Graham, here's the basic approach (assuming your XML is in the variable 'tXML'):
put revXMLCreateTree(tXML,false,true,false) into tTreeID
put "/gpx/trk/trkseg/trkpt[1]" into tNode -- the brackets identify
the instance of "trkpt" to work with
put revXMLAttribute(tTreeID,
Klaus,
I have a function that generally works with this AppleScript:
function stsGetFrontmostProcess
put "tell app `System Events`" & cr & \
"get (the name of every application process whose frontmost is true)
as string" & cr & \
"end tell" into tScript
replace
10 matches
Mail list logo