Search found 625 matches

by Thierry
Tue Jun 18, 2019 5:22 pm
Forum: Talking LiveCode
Topic: OpenStack not runnning
Replies: 16
Views: 279

Re: OpenStack not runnning

I don't know if this applies in your case, but if you close a stack and destroystack is false, the stack remains in RAM. Not relevant in this case. However, doing few manipulations with LC, I managed to fire an error in revdebuglibrary, on __Resolved function Line 1957 Looks like something as ghost...
by Thierry
Thu Jun 13, 2019 1:17 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: What is the opposite of launch?
Replies: 13
Views: 521

Re: What is the opposite of launch?

There's no direct way to 'cleanly' close a running macOS app - but applescript can be used.... Here is how I do that in one of my LC tutorial: try get shell(format( \ "osascript -e 'tell application \"MidiKeys\" to quit'")) get shell(format( \ "osascript -e 'tell application \"MIDIMonitor.app\" to ...
by Thierry
Thu Jun 06, 2019 12:01 pm
Forum: Databases
Topic: CSV-UTF-8
Replies: 5
Views: 364

Re: CSV-UTF-8

GregWills wrote:
Is there a way to export data from Livecode to this format?
Hi Greg,

I believe if you're looking in the dictionary for
textEncode() and textDecode() that will make you happy...

Regards,

Thierry
by Thierry
Mon May 06, 2019 2:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Easier way to do this? Find variables in text
Replies: 17
Views: 664

Re: Easier way to do this? Find variables in text

Here is a minimal stack that does the job using regex Hi Kaveh, If you don't mind, here is a slightly optimized and less verbose version of your code: on mouseup local tOriginal, tResult put fld "Original" into tOriginal repeat forever if not matchChunk(tOriginal, "@{(.+?)}", tStart, tEnd) then exi...
by Thierry
Sun May 05, 2019 5:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Easier way to do this? Find variables in text
Replies: 17
Views: 664

Re: Easier way to do this? Find variables in text

Klaus wrote: ...
Sorry, didn't find it funny at all :roll:

Best
by Thierry
Sun May 05, 2019 5:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Easier way to do this? Find variables in text
Replies: 17
Views: 664

Re: Easier way to do this? Find variables in text

I wonder if anyone will pop in with the ultimate regex solution, cause that is the only thing I think we haven't covered so far in normal use. Hi bogs, Here is one: if sunnYextract( theText, "(?m)@\{(\w+)}", "\1\n", R) then put R and, of course if you have such a text as an input (theText): "xxx @{...
by Thierry
Tue Apr 23, 2019 10:29 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Help in refactoring code
Replies: 5
Views: 254

Re: Help in refactoring code

I am indeed using Mark's generous gift to the community to rename clean up, move handlers, etc. But it is not doing what I am asking for. Perhaps Mark has a suggestion? Therefore, I kindly suggest to get in touch with Mark who, if my memory is fine, is more active on the user's list. and show him p...
by Thierry
Tue Apr 23, 2019 10:13 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Help in refactoring code
Replies: 5
Views: 254

Re: Help in refactoring code

Hi,

Check for Mark Wieder last astonishing work !

He made a refactoring library not too long ago.

HTH,

Thierry
by Thierry
Tue Apr 09, 2019 5:54 pm
Forum: Talking LiveCode
Topic: textEncode and Google Forms
Replies: 23
Views: 792

Re: textEncode and Google Forms

Did someone call? I don't know that I am qualified to assume the go-to mantle here, but AFAIK: Hi Sparkout, Everyone is the hero of someone or about something... :D Thanks for your comment, makes sense. Interesting, when I started working on Simon's problem, the google answer had wrong characters f...
by Thierry
Tue Apr 09, 2019 4:30 pm
Forum: Talking LiveCode
Topic: textEncode and Google Forms
Replies: 23
Views: 792

Re: textEncode and Google Forms

get IT & "Accept-Language: fr-FR" & CRLF get IT & "Content-Language: fr-FR" & CRLF Simon, I've played a bit with my code and it still works getting rid of these 2 lines of script but keeping the Content-type settings. Otherwise, I wouldn't follow you on the generic form. I believe it's more complic...
by Thierry
Tue Apr 09, 2019 11:44 am
Forum: Talking LiveCode
Topic: textEncode and Google Forms
Replies: 23
Views: 792

Re: textEncode and Google Forms

Thierry, it works! Well done, I'd have never done it myself. Thanks god french and portuguese characters are alike... Yes, we are all from the same root :roll: I believe this will work with any language.... till someone pops up some errors. Many thanks and I'm pretty sure your code will help others...
by Thierry
Tue Apr 09, 2019 10:34 am
Forum: Talking LiveCode
Topic: textEncode and Google Forms
Replies: 23
Views: 792

Re: textEncode and Google Forms

Hi Simon, Out of curiosity, as I do know nothing about google spreadsheets, I gave a try and here is working solution with French characters. Screenshot of your google spreadsheet: sunnY- 2019-04-09 à 11.20.54.png and the code: on mouseUp put "......" into myKey put "https://docs.google.com/forms/d/...
by Thierry
Mon Apr 08, 2019 2:12 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to force a handler to finish it's job before proceeding with something else
Replies: 17
Views: 769

Re: How to force a handler to finish it's job before proceeding with something else

I thought that this send only worked at functions.
Certainly not true. I do that very often.
by Thierry
Mon Apr 08, 2019 1:57 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to force a handler to finish it's job before proceeding with something else
Replies: 17
Views: 769

Re: How to force a handler to finish it's job before proceeding with something else

on preOpenstack if blablabla does not exist then downloadstuff end if (you get the idea) anotherhandler got to card"nowme" end preOpenstack Any usefull tip about how to do this? Hi sphere, a bit shooting in the dark, but you could try this: on preOpenstack send "preOpenStack_2" to me in 1 tick end ...
by Thierry
Thu Apr 04, 2019 2:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Trying to understand arrays
Replies: 10
Views: 527

Re: Trying to understand arrays

And how can I get the output "orange" from array food? Thanks!
try this:

Code: Select all

put food[1][2]
and then listen to bogs advice... :roll:

Good luck,

Thierry

Go to advanced search