Search found 789 matches

by Thierry
Mon Feb 22, 2021 10:32 am
Forum: Databases
Topic: Regex removing/replacing before DB in practice...
Replies: 3
Views: 3910

Re: Regex removing/replacing before DB in practice...

Hi liveme, Your orignal regex: [-$&~'#%?!@°,*+=></\(){} ] The new one: [-$&~'#%?!@°,*+=></\(){} \\ [\] \x22 ] I've added some spaces to draw attention, please drop them in your code. \\ will match any \ [\] will match [ and ] \x22 is the hex value for the double quote not tested! HTH, Thierry
by Thierry
Fri Feb 19, 2021 5:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using stack "On startup" does not work. - (in IDE)
Replies: 14
Views: 5410

Re: Using stack "On startup" does not work.

The startup event is consumed by the IDE in the stack home.livecodescript
and not available to IDE Users. That's the first event thrown by the engine
when you start an app ( the IDE is an app).

In case you don't believe me:

screenshot 2021-02-19 à 16.57.46.jpg
startup in home.livecodescript

Regards,

Thierry
by Thierry
Fri Feb 19, 2021 3:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Geocoding issue
Replies: 25
Views: 9329

Re: Geocoding issue

Is there a way I could send my testing App to somebody so you can test on your machines?
Feel free to send it to me (zipped please)

I'll do my best

Thierry
by Thierry
Fri Feb 19, 2021 3:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Geocoding issue
Replies: 25
Views: 9329

Re: Geocoding issue

PaulDouBret wrote:
Fri Feb 19, 2021 2:58 pm
Are you the Thierry who used to work with Hypercard??? Loooong time ago...
Well, maybe... We are few thierry I guess :)
I've started using hypercard at the very beginning
and did a couple of apps in France at the end of the 80's...

Are you French ?

Thierry
by Thierry
Fri Feb 19, 2021 2:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Geocoding issue
Replies: 25
Views: 9329

Re: Geocoding issue

I am getting very upset :D :D :D Well don't do that,.... Well, feeling upset with 3 smilies, you still have some chance :) Sorry, I don't have a key to do a real test, but did you try the 2 lines of script given by simon ? This is straightforward and if this doesn't work, then you can start thinkin...
by Thierry
Fri Feb 19, 2021 1:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Geocoding issue
Replies: 25
Views: 9329

Re: Geocoding issue

Hi Paul, on mouseUp -- ..... put "https://maps......" into loriginalrequest put return & "Step 1: " & the seconds after field "Timing" put URL loriginalrequest into field "Result" put return & "Step 2: " & the seconds after field "Timing" replace "//" with "" in loriginalrequest put URL loriginalreq...
by Thierry
Fri Feb 12, 2021 1:27 pm
Forum: Talking LiveCode
Topic: Fun With APNG & LC
Replies: 23
Views: 11367

Re: Fun With APNG & LC

No worriers, thanks for your time Thierry and don't be shy I'm certainly not putting out commercial code here. You're welcome :) I'm not shy but only cautious due to my limited free time. I'm more interested in getting my elephant to work. :D Ok, I'll do my best to send your jumping elephant to you...
by Thierry
Fri Feb 12, 2021 12:56 pm
Forum: Talking LiveCode
Topic: Fun With APNG & LC
Replies: 23
Views: 11367

Re: Fun With APNG & LC

The crc32 stack I found took a long time to calculate the crc for large apng files so I put the hex into the memory rather than from a field(See in my stack). It got a little improvement but not much. Hi istech, if you look at my crc32 tests few posts before, you'll see all this took 20 seconds. We...
by Thierry
Fri Feb 12, 2021 10:10 am
Forum: Talking LiveCode
Topic: Fun With APNG & LC
Replies: 23
Views: 11367

Re: Fun With APNG & LC

This text produces this crc 32 error: C62E7 Correct answer is: 000C62E7 (3 missing zeros) The solution is using format: function Crc32Str str ..... put format("%08s", baseConvert(tHex3,10,16)) into fld 3 end Crc32Str Thanks Al, and good catch ! Back to this thread which is about coding/decoding APN...
by Thierry
Thu Feb 11, 2021 2:30 pm
Forum: Talking LiveCode
Topic: Fun With APNG & LC
Replies: 23
Views: 11367

Re: Fun With APNG & LC

In fact, I posted this stack long, long time ago, and back then discovered that hashing some kind of data produces wrong results. Using the crc32b produced by the built-in Livecode function "compress" is more reliable. Hi Al, Thanks a lot for this information! Out of curiosity, I did play for a cou...
by Thierry
Thu Feb 11, 2021 12:58 pm
Forum: Off-Topic
Topic: What can be done to get LiveCode used in far more schools?
Replies: 17
Views: 9187

Re: What can be done to get LiveCode used in far more schools?

.... Somebody makes an outrageous claim that certain politicians are eating children. enfer.jpg BTW, I would certainly *not* suggest you send the people you talk to out to do criminal things Well, as long you didn't say they are eating cheese, I guess you're politically correct ? :roll: Have a nice...
by Thierry
Tue Feb 09, 2021 2:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to line break/return with <br/> in LC
Replies: 7
Views: 2818

Re: How to line break/return with <br/> in LC

I was therefore wondering if it is therefore possible to replace the code LC is using for a line break/return with a <br/> instead? Hi Glenn, This one is straightforward: replace cr with "<br/>" in variableWithYourText Otherwise, I have no idea if this will resolve your main issue... HTH, Thierry
by Thierry
Mon Feb 08, 2021 8:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Random numbers with no duplicates
Replies: 7
Views: 3684

Re: Random numbers with no duplicates

Thanks for your help!!
Hi Mike,

another one....

Code: Select all

function get6RandomNumbersFrom aList
   repeat 4
      delete any item of aList
   end repeat
   return aList
end get6RandomNumbersFrom

on mouseUp
   put get6RandomNumbersFrom("1,2,3,4,5,6,7,8,9,10") into fld 1
end mouseUp
Thierry
by Thierry
Wed Feb 03, 2021 5:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Transferring an Array from desktop to mobile
Replies: 12
Views: 5039

Re: Transferring an Array from desktop to mobile

Hi Glenn, From the dicionary: Description Use the arrayDecode function to rebuild an array from an encoded string produced by the arrayEncode function. Encoding and decoding arrays is designed to allow arrays to be written to a file on disk, or sent across a network. See the arrayEncode reference fo...
by Thierry
Wed Jan 27, 2021 4:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problems with calling wikipedia API
Replies: 20
Views: 9079

Re: Problems with calling wikipedia API

Hi Thierry, Thank you so much, I now have a better understanding of the Array syntax. This was a great help. Excellent :) I would like to show you a couple of things you could do with your wiki array to make the code may be a bit more readable. You could replace your repeat loop: repeat with x = 1 ...

Go to advanced search