Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Alex Tweedly via use-livecode
Oh dear - replying to myself again :-) The 'itemDel' method still does the long search through the text - even though it does it at engine speed, and in neat tidy looking script. But, re-reading your earlier description, it occurred to me that (maybe) you are doing lots of different processin

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Alex Tweedly via use-livecode
OK, I may be going in the wrong direction here, but put (the opening string) into temp set the itemDelimeter to temp put the number of chars in item 1 to -2 of theWholeText into theAnswer ?? Alex. On 23/03/2023 17:24, François via use-livecode wrote: Yes, this is the big picture. Plus,

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread François via use-livecode
Yes, this is the big picture. Plus, some environments may live within other environments. And yes, one of the things the app does all the time is finding matched opening strings and closing strings, like finding matched parentheses in a programming language. Fun, as you said! François > Le 23

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Craig Newman via use-livecode
Fun, fun… So if you collect ALL the opening and closing strings, and hopefully these never overlap, then each pair can be “ordered”. Now identifying each is just a matter of thinking in terms of “pairs” of offsets. You can then identify each by their “paired” position in the forward direction.

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread François via use-livecode
An example of when a backwards search would be useful is the following: In the app, you have to find command environments. Environments are delimited by an opening string and a closing string. Usually, I search forward for the opening string, then search for the closing string afterwards. Once

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Craig Newman via use-livecode
Francois. I am sure you know what you have and what you need. But just for my curiosity, if I had to do what you want, I would have used the “offset” function and its “charsToSkip” parameter to find all instances of the text to find, and then use those values in sequence to work backwards. But

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread François via use-livecode
The text source is not very big. However I implement transcoding from one language to another and I do an VERY large amount of search and replace. I think I have quite optimized my LC code but transcoding can take 5 minutes to do, and I need the whole process to chase unexpected bugs. This is u

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Craig Newman via use-livecode
Francois. Who wouldn’t? But unless you are working with VERY large datasets, I bet a handler would process quickly. Craig > On Mar 23, 2023, at 10:58 AM, François via use-livecode > wrote: > > @Ben > > Too bad… > > @ Craig > > I would rather have an optimized version, I do a lot of text

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread François via use-livecode
@Ben Too bad… @ Craig I would rather have an optimized version, I do a lot of text processing in my app. Thanks to both of you! François > Le 23 mars 2023 à 14:43, Craig Newman via use-livecode > a écrit : > > @Ben. > > 20 years! Congratulations!. > > @Francois > > This can be scripted

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Craig Newman via use-livecode
@Ben. 20 years! Congratulations!. @Francois This can be scripted easily. Do you need help with that? Craig > On Mar 23, 2023, at 8:21 AM, Ben Rubinstein via use-livecode > wrote: > > https://quality.livecode.com/show_bug.cgi?id=584 (20th anniversary this > September!) > > Also > https://q

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Ben Rubinstein via use-livecode
https://quality.livecode.com/show_bug.cgi?id=584 (20th anniversary this September!) Also https://quality.livecode.com/show_bug.cgi?id=8353 On 23/03/2023 11:35, François via use-livecode wrote: I would like to search for a string within another string, starting at a given position, but backw

Re: Is it possible to implement Mac App Store in-app purchases in LiveCode?

2021-01-12 Thread kee nethery via use-livecode
Tom, Thank you for the link. According to the docs these calls are only for iOS and Android. I need them for macOS. No idea why the iOS ones are not compatible with macOS, but according to the docs they are not. Kee > On Jan 11, 2021, at 7:30 PM, Tom Glod via use-livecode > wrote: > > H.

Re: Is it possible to implement Mac App Store in-app purchases in LiveCode?

2021-01-11 Thread Tom Glod via use-livecode
HI am surprised no one answered this, I found this. https://lessons.livecode.com/m/4069/l/186807-how-do-i-implement-in-app-purchases-in-livecode-apple-appstore On Sun, Jan 3, 2021 at 5:11 PM kee nethery via use-livecode < use-livecode@lists.runrev.com> wrote: > And if it is possible to

Re: Is it possible to get the clicked cell for a table field, if the table is empty?

2020-05-02 Thread William Prothero via use-livecode
Paul: Well, I’ve gotten so many good tips from Mike. He is amazing! I never would have found that one. Yes, it does actually work. Thanks! Bill William A. Prothero https://earthlearningsolutions.org > On May 2, 2020, at 5:38 PM, Paul Hibbert via use-livecode > wrote: > > Mike Bonner posted

Re: Is it possible to get the clicked cell for a table field, if the table is empty?

2020-05-02 Thread Paul Hibbert via use-livecode
Mike Bonner posted this back on the 14th February 2020… Found an interesting behavior.. I was trying to set up a custom control that keeps track of the current row and column and put the script in the group, but rawkeyup or rawkeydown messages never reach the group. I'm wondering if its because t

Re: Is it possible to implement Weizenbaum's original Eliza as a chatbot with LIVECODE?

2019-10-12 Thread Jjs via use-livecode
Nice! I thought first what the h Is it. But then i saw the screenshot, and it flashed thru my mind. I remember having it on the MSX too. Asking questions and getting answers. It's the same right? Actually the first AI heh hh via use-livecode schreef op 12 oktober 2019 00:38:43 CEST: >> I w

Re: Is it possible to implement Weizenbaum's original Eliza as a chatbot with LIVECODE?

2019-10-11 Thread Alejandro Tejada via use-livecode
Hi Ingar, Check this stack: https://forums.livecode.com/viewtopic.php?f=10&t=33212 based on this HyperCard stack: http://umich.edu/~archive/mac/hypercard/fun/spectresmart2.5.sit.hqx Al ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Is it possible to implement Weizenbaum's original Eliza as a chatbot with LIVECODE?

2019-10-11 Thread hh via use-livecode
> I wrote: > You could build on https://www.masswerk.at/elizabot/ > ... > You could similarly make a LC GUI based on elizabot.js in > a browser widget. > ... Here is a basic LiveCode GUI: Browser Widget usage example #28: ELIZA_bot http://forums.livecode.com/viewtopic.php?p=184198#p184198 The jsl

Re: Is it possible to implement Weizenbaum's original Eliza as a chatbot with LIVECODE?

2019-10-11 Thread hh via use-livecode
You could build on https://www.masswerk.at/elizabot/ They build there in javascript on it for a "terminal" or speech i/o. You could similarly make a LC GUI based on elizabot.js in a browser widget. Or moreover translate elizabot.js to LiveCode. The js is already object oriented and has 1.7K in

Re: is it possible to readfromfile line x to y

2019-08-10 Thread Tom Glod via use-livecode
turns out when i try to parse the lines 1 by 1 (after just loading the file) in 9.05 there is no crash and the process finishes...albeit slowly. will report bug for 9.04. thanks for all the suggestions, learned alot by asking you guys and investigating workaround. On Sat, Aug 10, 2019 at 3:0

Re: is it possible to readfromfile line x to y

2019-08-10 Thread hh via use-livecode
1. Read for N lines reads sequentially, doesn't need an offset. 2. You could instead try to do that in one strike: put url ("file:"&) into str filter str with "*" typical line for further extracting: U+1F600 ___ use-livecode mailing list use-live

Re: is it possible to readfromfile line x to y

2019-08-10 Thread Tom Glod via use-livecode
thank you both. the offset is what i was looking for, this way I can read just a few lines at a time I also must read them in sequence so I do have to use the line counter sequentially. There are probably many reasons why it hands the way i was doing it. Thankfully I only have to do this one

Re: is it possible to readfromfile line x to y

2019-08-10 Thread Dar Scott Consulting via use-livecode
Oh, and that repeat will take a very long time. Fixing that might be better than the other solution. Use repeat for each line this_line of unicode_file_to_parse and don't forget to clear unicode_file_to_parse after the repeat if it is not handler local > On Aug 10, 2019, at 11:26 AM, Tom Glod

Re: is it possible to readfromfile line x to y

2019-08-10 Thread hh via use-livecode
Did you already try (use a counter add 42 to lineCntr read from file for 42 lines --> placed into it (check the result for empty or "eof") Note. The file contains base64 encoded imagedata (which is in one long line). Such a line may be too long to display in a LC field (-> may cause a hang). So

Re: is it possible to readfromfile line x to y

2019-08-10 Thread Dar Scott Consulting via use-livecode
Sorry about that. The https reference threw me off. Use open file, read file with range (repeatedly), and then close file. open file myBigFile for UTF-8 text read read from file myBigFile at myOffset for myNumLines lines close... Adjust myOffset with the length of

Re: is it possible to readfromfile line x to y

2019-08-10 Thread Tom Glod via use-livecode
Hi Dar, thanks for the tips. However I am loading the file locally. The file is 48mb, so it loads fine and fits fine. I am attempting to parse just 1 line at a time, but it still doesn't work. This is my code and even this freezes it. ---

Re: is it possible to readfromfile line x to y

2019-08-10 Thread Dar Scott Consulting via use-livecode
Remember to unload after load and parsing (if you use load). Also, look for variables you are leaving full of big things. If that doesn't help enough, look at the httpHeaders property. Use the Range request header. Unfortunately, that might be limited to byte as a unit. If so, you might also wa

Re: R: Re: Is it possible ?

2015-10-13 Thread dunbarx
: baccheschi To: use-livecode Sent: Tue, Oct 13, 2015 10:04 am Subject: R: Re: Is it possible ? Messaggio originale Da: dunb...@aol.com Data: 13-ott-2015 15.28 A: Ogg: Re: Is it possible ? Hi. I doubt it. This would have been noticed, er, a while ago. Can you give more details?

R: Re: Is it possible ?

2015-10-13 Thread bacches...@tin.it
Messaggio originale Da: dunb...@aol.com Data: 13-ott-2015 15.28 A: Ogg: Re: Is it possible ? Hi. I doubt it. This would have been noticed, er, a while ago. Can you give more details? Craig Newman Thanks for your kind and prompt response I want to show and then hide an image

Re: Is it possible ?

2015-10-13 Thread dunbarx
Hi. I doubt it. This would have been noticed, er, a while ago. Can you give more details? Craig Newman -Original Message- From: baccheschi To: use-livecode Sent: Tue, Oct 13, 2015 6:19 am Subject: Is it possible ? Hi everybody Is it possible that the command "wait for ..." comp

Re: is it possible to zoom in an iOS browser control?

2012-11-06 Thread Matthias Rebbe
Hi John. I know, but was wondering what i do have to change that i can zoom the browser content. Found out now, that i have to resize the rect of the browser control to get the content resized. Matthias -- Matthias Rebbe matthias (at) rebbe.tk Tel +49.5741.31 Tel +49.160.5504462 -- "Life is

Re: is it possible to zoom in an iOS browser control?

2012-11-06 Thread Matthias Rebbe
Mark, thanks. I will look at it. Regards Matthias -- Matthias Rebbe matthias (at) rebbe.tk Tel +49.5741.31 Tel +49.160.5504462 -- "Life is too short for boring code" Am 06.11.2012 um 17:18 schrieb Mark Schonewille : > Hi Matthias, > > I don't know about the iOS browser control (I'd

RE: is it possible to zoom in an iOS browser control?

2012-11-06 Thread John Dixon
Pinch.. > From: matthias_livecode_150...@m-r-d.de > Subject: is it possible to zoom in an iOS browser control? > Date: Tue, 6 Nov 2012 17:09:02 +0100 > To: use-livecode@lists.runrev.com > > Hi, > > is there a way to zoom the content of an ios browser control? > On Android i am able to zoom in

Re: is it possible to zoom in an iOS browser control?

2012-11-06 Thread Mark Schonewille
Hi Matthias, I don't know about the iOS browser control (I'd think it is possible), but in Safari, you can add a meta tag with viewport properties. One of the properties is initial-scale. You can set this to a larger scale, e.g. 2.0. Zooming by hand is possible of the user-scalable property is

Re: is it possible to hide datagrid column dividers?

2012-06-18 Thread Terry Judd
On 18/06/2012, at 08:04 PM, André Bisseret wrote: Le 18 juin 2012 à 11:21, Terry Judd a écrit : I'd like to hide the column dividers in a datagrid I'm using in a custom popup menu. Does anyone know if this is possible? Bonjour Terry, Yes it is: set the dgProp[ "show column dividers" ] of gro

Re: is it possible to hide datagrid column dividers?

2012-06-18 Thread André Bisseret
Le 18 juin 2012 à 11:21, Terry Judd a écrit : > I'd like to hide the column dividers in a datagrid I'm using in a custom > popup menu. Does anyone know if this is possible? Bonjour Terry, Yes it is: set the dgProp[ "show column dividers" ] of group "data grid 1" to false Best regards from Gre

Re: Is it possible to get rid of The Save Stack Dialog?

2011-06-05 Thread Todd Geist
Thanks Jan On Sun, Jun 5, 2011 at 11:08 AM, Jan Schenkel wrote: > --- On Sun, 6/5/11, Todd Geist wrote: > > Hello > > > > How does one stop the Save Stack Dialog that pops up in the > > IDE when ever > > you close a stack? In my testing On closeStackRequest > > doesn't fire until > > AFTER the

Re: Is it possible to get rid of The Save Stack Dialog?

2011-06-05 Thread Jan Schenkel
--- On Sun, 6/5/11, Todd Geist wrote: > Hello > > How does one stop the Save Stack Dialog that pops up in the > IDE when ever > you close a stack? In my testing On closeStackRequest > doesn't fire until > AFTER the dialog pops up and the user clicks "Save", So > doing this > > *on* closeStackReq

Re: Is it possible to get rid of The Save Stack Dialog?

2011-06-05 Thread Todd Geist
Thanks Ok At least I am not crazy. This really can't be done easily Thanks Todd On Sun, Jun 5, 2011 at 9:03 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi Todd, > > Are you on a Mac? What you are trying to do won't work without lots of > editing in the front scripts of t

Re: Is it possible to get rid of The Save Stack Dialog?

2011-06-05 Thread Mark Schonewille
Hi Todd, Are you on a Mac? What you are trying to do won't work without lots of editing in the front scripts of the IDE. If I remember correctly, the reason is that the gRevStackStatus will contain true as soon as a field gets focus and the closeStackRequest handler in the frontscript will make

Re: Is it possible to get rid of The Save Stack Dialog?

2011-06-05 Thread Robert Brenstein
suspendStack serves a different purpose but the save dialog will pop even if you save the stack in the script of any handler... If you want to avoid that, set the stack mode to modeless in the preopenstack handler. Robert On 05.06.2011 at 8:31 Uhr -0700 Todd Geist apparently wrote: actually

Re: Is it possible to get rid of The Save Stack Dialog?

2011-06-05 Thread Todd Geist
actually no it doesn't work gr On Sun, Jun 5, 2011 at 8:27 AM, Todd Geist wrote: > I stumbled on this message > > suspendStack > > This fires before the Save Dialog shows. So this will prevent the dialog > from ever showing > > on suspendStack >save this stack > end suspendStack > > Todd

Re: Is it possible to get rid of The Save Stack Dialog?

2011-06-05 Thread Todd Geist
I stumbled on this message suspendStack This fires before the Save Dialog shows. So this will prevent the dialog from ever showing on suspendStack save this stack end suspendStack Todd On Sun, Jun 5, 2011 at 8:02 AM, Todd Geist wrote: > Hello > > How does one stop the Save Stack Dialog t

Re: Is it possible to adjust the border corner radius of a native rounded rectangle graphic?

2011-03-16 Thread Keith Clarke
Hi Bernd, Brilliant, thanks. Wow - I've never even noticed the border section on the basic properties tab before! I guess that's the problem of setting the preference for LiveTalk property names to force some learning - not all the property descriptions (such as 'corner') are in the Dictionary

Re: Is it possible to adjust the border corner radius of a native rounded rectangle graphic?

2011-03-16 Thread BNig
Hi Keith, -- on mouseUp set the roundradius of grc 1 to 20 end mouseUp --- Look in the property inspector way down for the roundRadius or Corner Radius. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Is-it-possible-to-

Re: is it possible...

2010-12-08 Thread Bob Sneidar
Also the list address has changed. A LOT of people are still using the old address and I cannot figure out why. Please update your address book to use the address use-livecode@lists.runrev.com Thanks. Bob On Dec 8, 2010, at 8:55 AM, bacches...@tin.it wrote: > Hi to everybody > I am a beginner

Re: is it possible...

2010-12-08 Thread Jim Ault
One method is to use the message path, but the more direct way is to use the long ID of the field type into the message box with one of the stacks as frontmost "put the long id of fld 1" and the main stack long id field id 1004 of card id 1002 of stack "/Users/jault/Documents/ JmaMainSt

Re: is it possible...

2010-12-08 Thread Bob Sneidar
One way is to get and set the dialogData. This is a global property available to all stacks. It works like any property. set the dialogData to "This is my answer." -- in the substack get the dialogData -- in the mainstack answer it with "Oh I see!" Bob On Dec 8, 2010, at 8:55 AM, bacches...@

R: Re: is it possible...

2010-12-08 Thread bacches...@tin.it
Messaggio originale Da: m.schonewi...@economy-x-talk.com Data: 8-dic-2010 18.08 A: "How to use LiveCode" Ogg: Re: is it possible... Hi Mario, I'm pretty sure that it is possible, but what exactly do you want to do with this variable, or with the question and the answe

Re: is it possible...

2010-12-08 Thread Mark Schonewille
Hi Mario, I'm pretty sure that it is possible, but what exactly do you want to do with this variable, or with the question and the answer? If you want to compare the two, try if fld 1 of stack "Name of substack" is fld 1 of stack "Name of mainstack" then... If you want to put the field of the