Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Dick Kriesel via use-livecode
> On Jan 21, 2021, at 2:34 AM, Keith Clarke via use-livecode > wrote: > I was just keen to understand why offset wasn’t happy with the ‘not(tab)’ in > this instance. expression "not(tab)" evaluates to true, which doesn’t serve your purpose — Dick

Re: Trying to use the Segmented Control

2021-01-21 Thread Ralf Bitter via use-livecode
Thank you, I'm glad to see that there is someone who finds use for the widget. Ralf On 20.01.21 22:33, J. Landman Gay via use-livecode wrote: On 12/4/20 3:32 AM, Niggemann, Bernd via use-livecode wrote: Ralf Bitter wrote See:

Re: LC Community Ask Password

2021-01-21 Thread panagiotis merakos via use-livecode
Hello Bob, I just did a quick test in LC 9.6.2 RC-2 and I cannot reproduce this bug. I put this code in a button: on mouseUp pButtonNumber ask password "Please log in:" titled "Password Test" end mouseUp I also tried putting this button in a modal stack. In both cases, I can type in the ask

How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
Hi folks, Please can anyone advise on the correct syntax for trying to find the first non-tab character offset in a string, as 'offset(not(tab), tString)’ seems to be returning strange results - i.e. a number but not the correct one? Best, Keith

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Dick Kriesel via use-livecode
> On Jan 21, 2021, at 2:25 AM, Dick Kriesel via use-livecode > wrote: > > Hi, Keith. You could test each character until you find a tab: > correction: until you find one that’s not a tab ___ use-livecode mailing list

Call lc from php?

2021-01-21 Thread Neville Smythe via use-livecode
A slightly less cursory investigation informs me that works, as I should;d have known. Neville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Dick Kriesel via use-livecode
> On Jan 21, 2021, at 1:30 AM, Keith Clarke via use-livecode > mailto:use-livecode@lists.runrev.com>> wrote: > > Please can anyone advise on the correct syntax for trying to find the first > non-tab character offset in a string Hi, Keith. You could test each character until you find a tab:

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
Thanks Dick, this would definitely work - and I’m iterating through characters and lines anyway as I attempt to prettify a long data string for eased human readability. I was just keen to understand why offset wasn’t happy with the ‘not(tab)’ in this instance. Best, Keith > On 21 Jan 2021,

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
Thanks Brian. I looked at matchChunk in the dictionary & it seems to return a boolean, rather than the offset. Thanks all - I’ve stopped trying to find the syntax for ‘find any char but this’ in offset and instead, taken Dick’s advice to iterate through the chars and count the loops until

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Brian Milby via use-livecode
Just to clarify my suggestion, it isn’t the return value that you would use (other than to check for success), but the third variable in the call that has the position that you would be looking for. When you say that you are prettifying... are you doing something to adjust each tab in the

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Brian Milby via use-livecode
You could also use matchChunk with a regular expression that excludes the tab character. Sent from my iPhone > On Jan 21, 2021, at 7:14 AM, Keith Clarke via use-livecode > wrote: > > Ah yes indeed, I’d forgotten I could test with 'put not(tab)’ in the message > box - that certainly proves

Re: Call lc from php?

2021-01-21 Thread Rick Harrison via use-livecode
Hi Neville, Why are you still using PHP when LC is better? Why are you still using PHP when the hackers are all trying to hack it, and are apparently quite successful at it too! If you check your system logs you will discover that hackers try to install PHP on your system if it isn’t running

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
Ah, thanks, Brian - re-reading more carefully, I see how the first item in the positionVarsList would provide the offset of the first non-tab character. Re prettification, I’m trying to create a quick & dirty tool to process a set of comma-delimited query strings - to see their common patterns.

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
Ah yes indeed, I’d forgotten I could test with 'put not(tab)’ in the message box - that certainly proves the syntax was wrong! :-) Best, Keith > On 21 Jan 2021, at 10:49, Dick Kriesel via use-livecode > wrote: > > > >> On Jan 21, 2021, at 2:34 AM, Keith Clarke via use-livecode >> wrote: >

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Curry Kenworthy via use-livecode
Always remember who is the computer, and who is the coder! The computer may need to perform a loop under the hood, but that doesn't mean you need to use the "repeat" keyword. It's often cleaner/faster when you don't. For those who value concise code and good performance in LiveCode, avoid

I Want to Print Out the Entire "mobile (ad,Control,Set,Get,Do"

2021-01-21 Thread Sannyasin Brahmanathaswami via use-livecode
It seems to be NOT in the guide. At least printable ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Fwd: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode)

2021-01-21 Thread Brian K. Duck via use-livecode
Copy to the list... > Begin forwarded message: > > From: "Brian K. Duck" > Subject: Re: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode) > Date: January 22, 2021 at 12:52:40 AM EST > To: Martin Koob , David Bovill , > Brian Duck > Cc: i...@mac.com, Alex , chi...@themartinz.com,

Re: I Want to Print Out the Entire "mobile (ad,Control,Set,Get,Do"

2021-01-21 Thread Brian Milby via use-livecode
I think you will need to print the dictionary entries for mobileControlSet and mobileControlGet and mobileControlDo. Sent from my iPhone > On Jan 21, 2021, at 9:31 PM, Sannyasin Brahmanathaswami via use-livecode > wrote: > > It seems to be NOT in the guide. At least printable >

Re: Call lc from php?

2021-01-21 Thread Richard Gaskin via use-livecode
Rick Harrison wrote: >> On Jan 21, 2021, at 6:13 AM, Neville Smythe wrote: >> A slightly less cursory investigation informs me that >> > > Why are you still using PHP when LC is better? I agree of course that LC is a strong contender against any popular server-side language, as LC's chunk

Fwd: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode)

2021-01-21 Thread Brian K. Duck via use-livecode
 Martin, et al. I see both Friday 9-11 am EST and Tuuesday 9-11 am as good working times. David Boville has offered his premium Zoom account, so I’ve forwarded meeting notices to him to see if he is available. If anyone has a PRO/paid zoom account and may be able to host meetings, please

Re: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode)

2021-01-21 Thread Martin Koob via use-livecode
Hi Brian I put my availability for https://www.when2meet.com/?10756300-eiYV4 Mine overlaps with yours and Henk’s availability on Friday Jan 22, 2021 9:30 am - 10:00 am EST and on Tuesday Jan 26, 2021 from 9:30 am - 10:45 am EST Anyone else