Search found 767 matches

by Thierry
Wed Sep 02, 2020 5:06 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can the void space within a group be made "Clickable"?
Replies: 26
Views: 723

Re: Can the void space within a group be made "Clickable"?

KimD wrote:
Wed Sep 02, 2020 4:01 am
I realise that I could solve this by creating an object within the group,
and always resizing that object to have the same size as the group.
Hi Kim,

AFAIK, this is the only way to do it...

till someone is coming with another solution :)

Regards,

Thierry
by Thierry
Tue Sep 01, 2020 5:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Removing extra spaces and or hyphens
Replies: 8
Views: 221

Re: Removing extra spaces and or hyphens

dunbarx wrote: By the way, I always trust Thierry's regex expertise.
Thank you!
dunbarx wrote: I just rarely understand it.
So do I :)

Thierry
by Thierry
Tue Sep 01, 2020 5:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Removing extra spaces and or hyphens
Replies: 8
Views: 221

Re: Removing extra spaces and or hyphens

bn wrote:
Tue Sep 01, 2020 5:14 pm
Hallo Thierry,

???

I even upgraded BBEdit to have the regex playground. I am trying to get there...
Wow, Bernd jumping in! Congratulations.

Actually, I misread the OP,
so to only replace double or more spaces, change this part:

Code: Select all

[ ]+
with:

Code: Select all

 [ ][ ]+
Better?

Thierry
by Thierry
Tue Sep 01, 2020 5:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Removing extra spaces and or hyphens
Replies: 8
Views: 221

Re: Removing extra spaces and or hyphens

bn wrote:
Tue Sep 01, 2020 4:56 pm
What I do is:
What I do is:

Code: Select all

put replaceText( yourInputText, "([ ]+|-+)", "-")
ans slighty faster as it doesn't replace single hyphen:

Code: Select all

put replaceText(someText, "([ ]+|--+)", "-")

As usual, different ways...

Regards,

Thierry
by Thierry
Tue Aug 25, 2020 8:54 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: (Solved)Focus on nothing not working in preopencard
Replies: 4
Views: 236

Re: Focus on nothing not working in preopencard

EddieLee wrote:
Tue Aug 25, 2020 6:50 am
I tried putting focus on nothing at the start and end of the preopencard handler
but it still doesn’t work. Any idea why?
Hi Eddie,

Did you tried to move it in the opencard handler?

HTH,

Thierry
by Thierry
Fri Aug 21, 2020 8:36 am
Forum: Talking LiveCode
Topic: Table field: Title Row & no input
Replies: 9
Views: 420

Re: Table field: Title Row & no input

Hi Simon,

May be that you will find useful this excellent tableField from Bernd
called modTableField.

Here a screenshot:

bernd-modTableField.jpg

I have version 0.2.6 and don't know if it's the latest official version.


Kind regards,

Thierry
by Thierry
Fri Aug 14, 2020 1:05 pm
Forum: Bug Triage
Topic: passing hex value to an external.bundle
Replies: 7
Views: 381

Re: passing hex value to an external.bundle

Hi Thierry, maybe you can also post to https://gitter.im/LiveCode/Lobby e.g. Monte, Trevor, and Paul McClernan visit Gitter regularly. Kind regards Bernd Vielen Dank, Bernd, Didn't know about this one; I'll give a try.... I did post here, as I guess edinbourgh's Gods are watching... Thierry
by Thierry
Fri Aug 14, 2020 1:03 pm
Forum: Bug Triage
Topic: passing hex value to an external.bundle
Replies: 7
Views: 381

Re: passing hex value to an external.bundle

sphere wrote:
Fri Aug 14, 2020 12:55 pm
Sorry, can't be of any help there i guess.
No problem, and thank you :)
by Thierry
Fri Aug 14, 2020 10:28 am
Forum: Bug Triage
Topic: passing hex value to an external.bundle
Replies: 7
Views: 381

Re: passing hex value to external

I did something in the past with sending HEX to a Touchscreen, which worked OK. I did too and I was used to get right values. Because only the question "any thoughts?" does not ring a bell. Sorry, if this was not clear; I guess the word 'external' was too wild... In the OP context, it's all about p...
by Thierry
Fri Aug 14, 2020 8:52 am
Forum: Bug Triage
Topic: passing hex value to an external.bundle
Replies: 7
Views: 381

passing hex value to an external.bundle

Hi, I'm coding a C++ external with: MacOS Mojave, LC 9.6.0, Xcode 11.3.1 Passing hex value to a function() of the external ( .bundle), 0x0A is transformed to 0, 0x0B to 1, 0x3E to 48,... in LC: get test( 0x09, 0x0A, 0x0B ) in lcidl: function test in v0 as integer in v1 as integer in v2 as integer re...
by Thierry
Fri Aug 07, 2020 4:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Count occurences, case sensitive?
Replies: 2
Views: 230

Re: Count occurences, case sensitive?

Zax wrote:
Fri Aug 07, 2020 3:33 pm
All ...offset() functions I found are case insensitive. So, is there a simple way to do that?
Bonjour Zax,

Check caseSensitive in the dictionary

Thierry
by Thierry
Fri Aug 07, 2020 7:26 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: [SOLVED] Something is not right with my data
Replies: 45
Views: 2359

Re: [SOLVED] Something is not right with my data

That really is so clear and elegant that even a beginner can understand it clearly. Love it! Kudos! Thanks Bob and Kellly. @Kelly: TBH, I wasn't expecting a beginner to appreciate those lines of code. So, I guess you are not really a beginner :) One nice things about this code, is that text fields ...
by Thierry
Fri Aug 07, 2020 7:13 am
Forum: Using Externals
Topic: [SOLVED] Has anyone recently compiled a ChartMaker included graph with no errors?
Replies: 3
Views: 561

Re: Has anyone recently compiled a ChartMaker included graph with no errors?

karmacomposer wrote:
Thu Aug 06, 2020 9:33 pm
I found out the cause.
Hi Mike,

Clearly stated in flexiblelearning documentation:


chartmaker doc.jpg


Regards,

Thierry
by Thierry
Thu Aug 06, 2020 4:38 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: [SOLVED] Something is not right with my data
Replies: 45
Views: 2359

Re: [SOLVED] Something is not right with my data

If someone can figure out how to use the "combine" function here, it might make the script even simpler. CountsByMonth.livecode.zip Hi Bob, Here is a replacement for the 55 lines of CountsByMonth, using combine with some adjustements and simplification: put the monthNames into tMonthsArray replace ...
by Thierry
Sun Aug 02, 2020 8:30 am
Forum: Talking LiveCode
Topic: Searching a text field
Replies: 7
Views: 546

Re: Searching a text field

Hi Barry, Yo could try this if you wish, and then adapt this script to your needs: put "(?m)^Subject:(.*?)$" into theRegex -- get the position of the subject's text in between p0 and p1: if matchChunk(emailText, theRegex, p0, p1) then -- replace your subject with another string: put " *** THE NEW SU...

Go to advanced search