memory management
If I load a large file into a variable, I believe the variable is stored in RAM, right? When I am finished using the variable, how do I remove it from memory? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
import snapshot
I am importing a snapshot from an image object. LC places the snapshot (to my specified size) in a new image object in the middle of my stack. But how do I programatically know what the name of the newly created image object is? (so I can then do stuff to it) TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
copying an image
I'm using 6.1.1 (rc 4) I cannot figure out how to copy an image (that is imported into my stack) to the clipboard I am using; copy image myImage And the image does not end up in the clipboard Nothing, nada, zip, zilch TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: import snapshot
Thank you John and Richmond Larry - Original Message - From: Richmond richmondmathew...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, May 05, 2014 4:54 AM Subject: Re: import snapshot on mouseUp import snapshot from graphic ggg set the name of last image to XYZ end mouseUp Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying an image
Hello Jacqueline, Thanks for trying to help, but I am still lost. I used your: put the clipboarddata[image] in a variety of ways, but could not make it work. The dictionary says set the clipboardData... not put. Then I used this code in a button: on mouseUp set the clipboardData[image] to image myLastImage put the clipboard end mouseUp The message box pops up saying image BUT, I still having nothing on my Windows (XP) clipboard!! I can copy from just about any other application on my computer, but not from LiveCode. sadly, Larry - Original Message - From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, May 05, 2014 9:51 AM Subject: Re: copying an image On 5/5/14, 5:50 AM, la...@significantplanet.org wrote: I'm using 6.1.1 (rc 4) I cannot figure out how to copy an image (that is imported into my stack) to the clipboard I am using; copy image myImage And the image does not end up in the clipboard Nothing, nada, zip, zilch It should be there, but since it isn't text you need to use the expanded clipboard syntax: put the clipboarddata[image] will give you the binary data. If you ask for the type of content in the clipboard: put the clipboard it should say objects. You can paste the image, or set the imagedata of another image to the clipboarddata[image]. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying an image
Thanks Jacquelin, I'm still in coding kindergarten and need everything spelled out! Not until you mentioned that the ability to paste elsewhere would depend on the receiving app's ability, did I even think about that. I just go around assuming that everything is supposed to work right. So copy img 1 works fine and I can paste into Microsoft Word with no problem. However, my email program, Outlook Express, (also from Microsoft) will not recognize the img being on the clipboard. I had been using Outlook Express to test the pasting, not even thinking that it lacks the ability. And that is the eternal question: Why would Microsoft program Word with the ability to paste the copy, but not program their email app, Outlook Express, to also paste the copy? A person could go crazy trying to answer that question, so I won't bother. (and anyway, a lot of people think I'm already half-way there!) Thanks again for helping me figure out what was going on!! Larry It works with either of these: copy img 1 set the clipboarddata[image] to img 1 So maybe we need a way to specify that only a certain format should be included in the image content. I would guess the ability to paste elsewhere would depend on the receiving app's ability to separate the two formats and choose one. Graphic Converter is good that way, it puts up a dialog and asks which one to use. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying an image
you're right. let's (you) write an app to fix all that - Original Message - From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, May 05, 2014 12:16 PM Subject: Re: copying an image On 5/5/14, 12:35 PM, la...@significantplanet.org wrote: And that is the eternal question: Why would Microsoft program Word with the ability to paste the copy, but not program their email app, Outlook Express, to also paste the copy? It's sort of like the European Union or the United States -- lots of different subdivisions under the same canopy, but none of them agree with each other. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying an image
Hello Richmond, That is what really threw me. Outlook Express accepts copy/paste from other programs, notably ACDC, a photo organizer software that I use all the time. I haven't really tried it with too many other programs. The bottom line is that Word accepts from LC and Outlook Express does not. Weird to me. One day (probably long after I'm dead) computer software will come out of the dark ages and into the light. Larry - Original Message - From: Richmond richmondmathew...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, May 05, 2014 1:37 PM Subject: Re: copying an image On 05/05/14 22:22, la...@significantplanet.org wrote: you're right. let's (you) write an app to fix all that If you can fix the European Union you should have everybody clamouring at your door! Richmond. By-ther-way: have you found out whether Outlook Express will accept copied images from other programs? My experience with copying stuff from Livecode to external programs has been erratic. I use Linux as my main OS, and have found that copying from Livecode will allow me to paste elsewhere if the copying was done by mousing up to the 'Edit' menu, but not by doing Ctrl-C, and not by a Copy from a right mouse contextual menu. snip ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Windows 8 and 8.1
I built a standalone with the old Rev 2.9 that works fine on Windows 8. I'm not 100% sure if it works on 8.1, but I think so (I think one of my sons has 8.1) Hope that helps! - Original Message - From: Richmond richmondmathew...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Thursday, May 22, 2014 2:03 PM Subject: Windows 8 and 8.1 Do Livecode standalones work on Winodws 8 and 8.1? And, if so, can you tell me what is the earliest version of Livecode that produces standalones that work on these systems? Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
please help!!
I am using 6.1.1 (rc 4) on XP I have spent HOURS trying to do something that seems fairly simple. I have a column of buttons labeled tile11, tile12, etc After I label the buttons, they are all alpha-numeric characters except for one being labeled ? Then I call up the following command: on doOpaque put 0 into x repeat rowNum times put x + 1 into x put (tile1 x) into thisButton if the label of button thisButton = ? then set the opaque of button thisButton to true else set the opaque of button thisButton to false end if end repeat end doOpaque If I debug and step through it, it always seems to work. However if I just run it, it invariably sets the opaque of the ? button to false and some other button (NOT ?) to true. I'm really going crazy with this and would appreciate it if anyone knows why this is happening. Thanks in advance, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: please help!!
Thank you Randy, but that's not the case here. After I got your email, I triple checked. It's something else going on. - Original Message - From: Randy Hengst iowahen...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, June 07, 2014 9:21 PM Subject: Re: please help!! When I've had similar problems I had multiple buttons with the same name. On Jun 7, 2014, at 9:41 PM, la...@significantplanet.org wrote: I am using 6.1.1 (rc 4) on XP I have spent HOURS trying to do something that seems fairly simple. I have a column of buttons labeled tile11, tile12, etc After I label the buttons, they are all alpha-numeric characters except for one being labeled ? Then I call up the following command: on doOpaque put 0 into x repeat rowNum times put x + 1 into x put (tile1 x) into thisButton if the label of button thisButton = ? then set the opaque of button thisButton to true else set the opaque of button thisButton to false end if end repeat end doOpaque If I debug and step through it, it always seems to work. However if I just run it, it invariably sets the opaque of the ? button to false and some other button (NOT ?) to true. I'm really going crazy with this and would appreciate it if anyone knows why this is happening. Thanks in advance, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: please help!!
hey Paul, I changed it to contains (as you suggested) and now it works. Thanks. Still seems like a bug to me since I KNOW that I don't have a space or return or anything in the name. 2) I was not aware that RC versions are not necessarily considered stable. I had kept using that version, because just about every time I upgraded to a new version I had some new problems. Do you recommend any newer version as truly stable? Unfortunately, my experience with LC is that I just trade one set of problems for a newer set of problems. Thanks, Larry - Original Message - From: Paul Hibbert paulhibb...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, June 07, 2014 9:43 PM Subject: Re: please help!! Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC versions, but I'm also on a Mac, however, at least it proves the script sample is fine. Just a thought, could the label of button ? also have a space or return char in the name? Maybe try swapping the = for contains e.g. if the label of button thisButton contains ? then Paul On 2014-06-07, at 8:39 PM, la...@significantplanet.org wrote: Thank you Randy, but that's not the case here. After I got your email, I triple checked. It's something else going on. - Original Message - From: Randy Hengst iowahen...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, June 07, 2014 9:21 PM Subject: Re: please help!! When I've had similar problems I had multiple buttons with the same name. On Jun 7, 2014, at 9:41 PM, la...@significantplanet.org wrote: I am using 6.1.1 (rc 4) on XP I have spent HOURS trying to do something that seems fairly simple. I have a column of buttons labeled tile11, tile12, etc After I label the buttons, they are all alpha-numeric characters except for one being labeled ? Then I call up the following command: on doOpaque put 0 into x repeat rowNum times put x + 1 into x put (tile1 x) into thisButton if the label of button thisButton = ? then set the opaque of button thisButton to true else set the opaque of button thisButton to false end if end repeat end doOpaque If I debug and step through it, it always seems to work. However if I just run it, it invariably sets the opaque of the ? button to false and some other button (NOT ?) to true. I'm really going crazy with this and would appreciate it if anyone knows why this is happening. Thanks in advance, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: please help!!
You have all been very kind in trying to help me. Right now, I am completely disillusioned with LiveCode. I've wasted an entire day trying everything I could think of and everything you all have suggested. I cannot get it to work consistently. I mean I cannot get the error consistently and, much worse, I cannot get the program to behave as it should. Probably I will go learn some other program because I have had way too many of these sessions where LiveCode just lets me down. All the people on this list have been extremely wonderful and helpful. Right now I am too frustrated and tired to keep going. Thank you all. - Original Message - From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, June 07, 2014 11:24 PM Subject: Re: please help!! On 6/7/2014, 11:55 PM, J. Landman Gay wrote: What happens if you omit the rowNum variable in the repeat loop: repeat with x = 1 to rowNum put (tile1 x) into thisButton set the opaque of btn thisButton to (the label of btn thisButton = ?) end repeat Which obviously I didn't. I meant to just test a different type of repeat structure, but I don't really think it's going to make any difference. But do double-check that the button names and labels match. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: please help!!
Hello Jacqueline, You are incredibly kind! I did rest up and then started over this morning. I went back to my original stack before this latest problem and just rebuilt it from scratch. I don't know that I did anything differently, but now it works just fine. Every once in awhile I will get the most random error message when running a program, but it never seems to ultimately matter. That is one of my frustrations with LiveCode. And as you point out, it's going to be hard to learning any new language. So, for today, I am tired but moving on. Maybe you'll give me a rain check to look at one of my stacks in the future? Thank you again, Larry - Original Message - From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, June 08, 2014 12:00 AM Subject: Re: please help!! On 6/8/2014, 12:41 AM, la...@significantplanet.org wrote: Right now I am too frustrated and tired to keep going. Yeah, been there. It's normal but it's really frustrating. Learning a new language is hard, no matter which one you choose. Send me your stack if you want and I can probably tell you where it's going off the rails. But rest up first. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
which release do you recommend?
Hello All, I'm still getting some very weird behavior with the compiled program using Windows XP and 6.1.1 (rc4) - behavior that doesn't show up in the IDE, but does show up in the compiled. Do you have a recommendation as to any later release that would be more stable? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
which is faster for searching?
I have a large variable containing about 3000 lines of data - each line about 100 characters. I want to search through the variable and find all the lines that contain a specified string Should I use (repeatedly) lineoffset..., or should I use repeat for each line... or maybe some other faster way? Or with only 3000 lines of data, does it even matter? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: which is faster for searching?
Thanks to Mark and jbv for the good advice. I ended up using the for each line... since that was easy and fast Larry - Original Message - From: j...@souslelogo.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Tuesday, June 17, 2014 8:38 AM Subject: Re: which is faster for searching? Larry, repeat for each line... is definitely faster and repeat for each line j in myVar if j contains myText then end if end repeat should be pretty fast. jbv I have a large variable containing about 3000 lines of data - each line about 100 characters. I want to search through the variable and find all the lines that contain a specified string Should I use (repeatedly) lineoffset..., or should I use repeat for each line... or maybe some other faster way? Or with only 3000 lines of data, does it even matter? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: which is faster for searching?
Thanks Pete, Which version exactly is it? Larry - Original Message - From: Peter Haworth p...@lcsql.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Tuesday, June 17, 2014 11:25 AM Subject: Re: which is faster for searching? You might want to try the filter command too, especially the new version that has a lot more options including the ability to put the qualifying lines into a different container. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Tue, Jun 17, 2014 at 7:22 AM, la...@significantplanet.org wrote: I have a large variable containing about 3000 lines of data - each line about 100 characters. I want to search through the variable and find all the lines that contain a specified string Should I use (repeatedly) lineoffset..., or should I use repeat for each line... or maybe some other faster way? Or with only 3000 lines of data, does it even matter? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Maiden speech from an old man
I've said it before and I'll say it again: I wish RunRev would allow me to add MY OWN notes to the Dictionary. That way, when I read something useful here or discover some workaround on my own, I can add it how I want to the IDE dictionary and not have to try and remember where I last read it or how I last did it. It infuriates me that RunRev as a company (as far as I know) has never addressed this issue, never commented on it. Good documentation is the bane of most software and all I'm asking is that RunRev allow me to upgrade the documentation on my own. I know there are some out there who have created some sort of workaround. That is not what I want. I want the simple common-sense feature of being able to add MY OWN notes to the Dictionary. I do not think such a request is unreasonable. Even as an amateur programmer, I know it is not that difficult for someone to do. Since I AM an amateur programmer, I cannot do it. I wish RunRev would shore up their existing project before moving on to other stuff. Just my opinion, so please don't flame me. Larry - Original Message - From: Alex Tweedly a...@tweedly.net To: use-livecode@lists.runrev.com Sent: Friday, July 25, 2014 9:34 AM Subject: Re: Maiden speech from an old man On 25/07/2014 16:24, Richmond wrote (my emphasis added): From my point of view the *only thing that is an advantage* of the Use-List is that messages come sequentially: one doesn't have to keep hunting through the sections of the Forums to find out whether new posting are there. What more advantage does anyone need ? It's beyond me how anyone can be bothered with the forums (which makes me wonder if what I need for the forums is a Forums for Dummies guide). How do you tell which forums and/or which topics have posts you haven't read yet ? How do you tell which forums and/or which topics have posts you have newly arrived ? (Yes, those are two different questions). How do you set it up so that each morning (while you drink your coffee), you laptop will download all the new posts and have them (already identified as above) ready for you to read (i.e. while offline) ? How do you compose a reply while offline ? (No, writing a reply in an editor or email and then copying/pasting won't count). If I could solve those questions then I might have a chance of sticking to using the forums for more than a couple of days. The topic comes up ever so often, I go look at the forums, see ow much good stuff there is in there, swear to myself I will use them and try to keep up - and within a week I've lapsed because it is just too time consuming and frustrating. So - is there a beginner's guide ? -- Alex. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Maiden speech from an old man
Thank you Richard for the information. If I had the knowledge, I'd write the plugin myself and just give it away. But I've never had any formal programming training. The thing that I LOVE about LiveCode the most is that it is such an easy way for a person to learn programming concepts AND fairly quickly start creating actual programs that do something. So, I am echoing Richard in saying that I wish someone with the ability would create a plugin allowing us to add notes to the Dictionary. AND if there is anything I could do to help with that project, please let me know. Larry - Original Message - From: Richard Gaskin ambassa...@fourthworld.com To: use-livecode@lists.runrev.com Sent: Friday, July 25, 2014 10:56 AM Subject: Re: Maiden speech from an old man larry wrote: I've said it before and I'll say it again: I wish RunRev would allow me to add MY OWN notes to the Dictionary. I've said it before* and I'll say it again: I wish anyone here wanted this sort of notebook badly enough to just write it as a plugin. I appreciate your submitting an enhancement request for this: http://quality.runrev.com/show_bug.cgi?id=10887 That's a necessary first step, and given sufficient resources I'm sure the team would love to add that themselves. But with LC being open source, RunRev has a sizable full-time staff working on a tool that is given away for free to a majority of its users. Right now the main priorities are completing the features already on their plate, so anything like this is unlikely to be actionable for many months. Open source software is a wonderful gift, but it works best when it creates a gift economy in which everyone who relies on LiveCode considers what they want from the platform, find those things they can take care of themselves, and then do it. We've seen some great strides in this budding open source process already, with many new features and enhancements brought to the engine through contributions from Monte Goulding, Jan Schenkel, Mark Wieder, and many others, and I'm pleased to report that as of this morning all of the IDE FIX items have been confirmed and folded into the main branch for the next build - thanks to Mike Kerner, Mark Wieder, and others for providing those. As you wrote: I wish RunRev would shore up their existing project before moving on to other stuff. That's very much their focus. Which is why I find suggestions like yours potentially exciting opportunities for the community to take care of the simpler things that can be done outside of the main branch. A notebook plugin that ties in with the Dictionary wouldn't take long to make, and for those who want it would be a nice thing to have and share. If anyone here has sufficient interest in starting this project I'd be happy to make a section in the forums where your team can flesh it out and see it through to completion. Just my opinion, so please don't flame me. Larry On the contrary, it's a good suggestion and an excellent example of the sorts of things we as a community can do for ourselves to get immediate results now, leaving the core dev team to complete their engine commitments. * http://lists.runrev.com/pipermail/use-livecode/2014-March/199733.html -- Richard Gaskin LiveCode Community Manager rich...@livecode.org ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: RevOnline User Comments in the Dictionary
Hello Peter, I went to your link below. I see what appears to be a LiveCode stack. Do I have to compile that before I put in the plugins folder? Sorry, I'm a VERY newbie. Thanks, Larry OK, here's a quick-and-dirty plugin called LCdictPlugin. Pop it into your plugins folder and restart LC. I realized that with my original plugin it's impossible to tell if you have a user note for a given dictionary entry without checking each entry every time with a right-click. So I've revised the plugin. It now places a button at the top of your revDictionary window (actually a palette stack that moves with the dictionary stack) labeled user note. The label appears in red if you have an existing note, and in black if you don't. Click on the button to see/enter/edit your note. (No popup needed, so popChoose is no longer part of the plugin.) still available at: https://dl.dropboxusercontent.com/u/3504108/LCdictPlugin.livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: RevOnline User Comments in the Dictionary
OK, thanks Peter. I'll wait for the improvements. Larry - Original Message - From: Peter M. Brigham pmb...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, July 27, 2014 12:31 PM Subject: Re: RevOnline User Comments in the Dictionary On Jul 27, 2014, at 2:21 PM, la...@significantplanet.org wrote: Hello Peter, I went to your link below. I see what appears to be a LiveCode stack. Do I have to compile that before I put in the plugins folder? Sorry, I'm a VERY newbie. No, just drop it into your plugins folder and restart LC. On the Mac these days the plugins folder is within the LiveCode app package (LiveCode xxx.app/Contents/Tools/Plugins/). On Windows the plugins folder should be visible with no hassle. You might want to wait for the finished product (see Peter Hayworth's suggestions and improvements). Hopefully in a few days. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
sending data somehow...
I read the following lesson: http://lessons.runrev.com/m/4071/l/13197-how-do-i-create-an-html-e-mail Supposedly this only works if Thunderbird is the default email client. Does anyone know if there is a way to send an email from a stack if Thunderbird is NOT the default email client? ACTUALLY, what I want to do is this: create some data in a stack send that data (by email or whatever) to another person who has a stack that imports the data and makes use of it. Can that be done? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sending data somehow...
Hi Simon, Thanks - I will look into those links. Larry - Original Message - From: Simon Smith he...@simonsmith.co To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, August 06, 2014 1:11 AM Subject: Re: sending data somehow... Hi Larry Take a look at the SMTP stack on http://www.troz.net/rev/index.irev?category=All I have used http://commandlinesendmail.blogspot.com/ though in the past (windows only) Simon On Wed, Aug 6, 2014 at 6:37 AM, la...@significantplanet.org wrote: I read the following lesson: http://lessons.runrev.com/m/4071/l/13197-how-do-i-create-an-html-e-mail Supposedly this only works if Thunderbird is the default email client. Does anyone know if there is a way to send an email from a stack if Thunderbird is NOT the default email client? ACTUALLY, what I want to do is this: create some data in a stack send that data (by email or whatever) to another person who has a stack that imports the data and makes use of it. Can that be done? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sending data somehow...
Hi Skip, Yes, I'd like to learn more about that technique. Please send more info. Larry - Original Message - From: Magicgate Software - Skip Kimpel s...@magicgate.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, August 06, 2014 8:37 AM Subject: Re: sending data somehow... In Windows, I also use a VBScript technique that sends stuff out through my Outlook client without any interaction. Just a thought if you want to go down that route SKIP On Wed, Aug 6, 2014 at 10:01 AM, la...@significantplanet.org wrote: Hi Simon, Thanks - I will look into those links. Larry - Original Message - From: Simon Smith he...@simonsmith.co To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, August 06, 2014 1:11 AM Subject: Re: sending data somehow... Hi Larry Take a look at the SMTP stack on http://www.troz.net/rev/index.irev?category=All I have used http://commandlinesendmail.blogspot.com/ though in the past (windows only) Simon On Wed, Aug 6, 2014 at 6:37 AM, la...@significantplanet.org wrote: I read the following lesson: http://lessons.runrev.com/m/4071/l/13197-how-do-i-create-an-html-e-mail Supposedly this only works if Thunderbird is the default email client. Does anyone know if there is a way to send an email from a stack if Thunderbird is NOT the default email client? ACTUALLY, what I want to do is this: create some data in a stack send that data (by email or whatever) to another person who has a stack that imports the data and makes use of it. Can that be done? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
mouseUp question
In a field I have two scripts - one for mouseUp and another one for mouseDoubleUp When the user clicks a line in the field (mouseUp) it plays the .wav file they click on When the user double clicks it copies the .wav file to another field. The problem is that LC runs BOTH scripts when the user dbl clicks. There is the small delay of time after the first click and before the second click. How do I get LC to ignore mouseUp when the user dbl clicks?? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: mouseUp question
Hi Terry, You put me on the right track. I'm sure your script below would work, but I don't like messing with pendingMessages, so I did the following: global myClick on mouseUp put 1 into myClick send soundChoice to me in .3 seconds end mouseUp on mouseDoubleUp put 2 into myClick soundChoice end mouseDoubleUp on soundChoice if myClick = 1 then put the hilitedtext of field allMySounds into thisSound play ac thisSound end if if myClick = 2 then put return the hilitedtext of field allMySounds after field eventSounds sort field eventSounds if line 1 of field eventSounds is empty then delete line 1 of field eventSounds put 3 into myClick -- SO IT DOESN'T PUT IT IN TWICE end if end soundChoice Thanks for your help! Larry - Original Message - From: Terry Judd terry.j...@unimelb.edu.au To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, August 06, 2014 10:28 PM Subject: Re: mouseUp question Hi Larry, one approach is to do something like the code below, which delays the mouseUp handler from running until after the doubleClick interval has expired. You can adjust the double-click interval to be whatever you like (shorter times will cause less obvious delays in the mouseUp handler running). on mouseUp send doStuff to me in (the doubleClickInterval)+1 millisecs end mouseUp on doStuff put mouseUpcr after fld 1 end doStuff on mouseDoubleUp repeat for each line tMessage in the pendingMessages if tMessage contains doStuff then cancel (item 1 of tMessage) end repeat put mouseDoubleUp cr after fld 1 end mouseDoubleUp Terry... On 7/08/2014 2:11 pm, la...@significantplanet.org la...@significantplanet.org wrote: In a field I have two scripts - one for mouseUp and another one for mouseDoubleUp When the user clicks a line in the field (mouseUp) it plays the .wav file they click on When the user double clicks it copies the .wav file to another field. The problem is that LC runs BOTH scripts when the user dbl clicks. There is the small delay of time after the first click and before the second click. How do I get LC to ignore mouseUp when the user dbl clicks?? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Using an internal file for PDF for manual
Hi Charles, I use a PDF in my app for a manual. In windows, at least, if you launch the PDF document and the user has Adobe Reader installed, then it is the default program for a PDF file and will automatically launch it. I don't know how it works on a Mac. Larry - Original Message - From: Charles Szasz csz...@me.com To: use-livecode@lists.runrev.com Sent: Friday, August 08, 2014 8:17 PM Subject: Using an internal file for PDF for manual I have added a PDF file to my app. I want to show the PDF manual using the user's PDF application Preview on the Mac and Acrobat Reader on Windows. So far I have unable to use the Launch Document because of not knowing the path for a PDF added to the app. Does anybody know how to script to show a PDF manual from a menu? Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Using an internal file for PDF for manual
Hi Charles, I used the following: launch document myHelp.pdf if the result empty then answer the result with OK end if With the launch document command, the result will be empty unless an error occurred. If no error occurs, the default program will launch the document. So I added the if statement at the end to show the error if one occurred. I hope that helps! Larry - Original Message - From: Charles Szasz csz...@me.com To: use-livecode@lists.runrev.com Sent: Friday, August 08, 2014 9:17 PM Subject: Re: Using an internal file for PDF for manual Larry, How did you script this for windows? Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Using an internal file for PDF for manual
Hi Charles, I don't know if it makes a difference, but I have the PDF file in a folder myData which I set as the default folder when I start up my app. So LC goes to that default folder to launch the document and uses the default Windows program to do so. Good luck! Larry - Original Message - From: Charles Szasz csz...@me.com To: use-livecode@lists.runrev.com Sent: Friday, August 08, 2014 11:11 PM Subject: Re: Using an internal file for PDF for manual Larry, I tried that script earlier (without the script for Ok button) before I posted a message for help. It did not work. In the standalone settings, I added the PDF Manual as a file to my settings. I will go back and see why it did not work. Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
sorting
I have a field I want to sort. Each line has 4 words. I want to sort by the first word (ascending) and then do a 2nd sort by the 3rd word without changing the order of the first word. Example: apple box apple pie apple zoo baby blue baby rattle baby zoo etc. TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sorting
Hello Alex, OK, in my previous email I gave some hypothetical data. In my app I actually have a field where the first word is either Advanced or Beginner The 2nd word is a number ranging from 2 to 25, showing how many items. There are some other words after those, but I'm not concerned about them. As lines are added to the field, they are in jumbled order. What I want is this on the sort: (All the Beginners in numeric order, followed by all the Advanced in numeric order) Beginner 1 Beginner 2 Beginner 3 (etc.) Advanced 1 Advanced 2 Advanced 3 (etc.) Thanks, Larry - Original Message - From: Alex Tweedly a...@tweedly.net To: use-livecode@lists.runrev.com Sent: Saturday, August 09, 2014 3:51 AM Subject: Re: sorting Larry, can you be more explicit about how it doesn't work ? Actually, can you explain better what you want to do ? You said you want to sort by the 2nd and then the 3rd word - but gave an example that appeared to show sorting by 2nd and 1st - and not even have a 3rd word in any line. So how about a slightly less terse description, and an example showing both before and after and hopefully we can get you to where you want -- Alex. On 09/08/2014 09:14, la...@significantplanet.org wrote: Sorry, that doesn't work - Original Message - From: Björnke von Gierke b...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, August 09, 2014 12:58 AM Subject: Re: sorting sort theList by word 2 of each sort theList by word 1 of each sort order is retained in-between commands, that's why it works. On 09 Aug 2014, at 08:24, la...@significantplanet.org wrote: I have a field I want to sort. Each line has 4 words. I want to sort by the first word (ascending) and then do a 2nd sort by the 3rd word without changing the order of the first word. Example: apple box apple pie apple zoo baby blue baby rattle baby zoo etc. TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sorting
Hello Craig, That doesn't work either. When I use the following line, it works: sort lines of field myList numeric by word 2 of each But then when I try to do two sorts with the following line, I get the error message below: sort lines of field myList descending by word 1 of each numeric by word 2 of each (Error) button Button: execution error at line 2 (Handler: can't find handler) near by, char 74 If I leave out the second by I get a compile error saying I need to put it in. At this point I am believing that there are lots of theories about how to make it work, but nobody actually knows how to make it work. Thank you anyway, Larry - Original Message - From: dunb...@aol.com To: use-livecode@lists.runrev.com Sent: Saturday, August 09, 2014 7:59 AM Subject: Re: sorting Way back from 1987, and undocumented everywhere except in the user notes in the dictionary here, is this; Multiple stable sorts may be implemented directly by concatenating sortKeys: sort container by sortKey1 sortKey2 sortKey3... Sortkey order determines the sorting sequence So you can: sort lines of yourList by word 1 of each word 3 of each Craig Newman -Original Message- From: Alex Tweedly a...@tweedly.net To: use-livecode use-livecode@lists.runrev.com Sent: Sat, Aug 9, 2014 5:52 am Subject: Re: sorting Larry, can you be more explicit about how it doesn't work ? Actually, can you explain better what you want to do ? You said you want to sort by the 2nd and then the 3rd word - but gave an example that appeared to show sorting by 2nd and 1st - and not even have a 3rd word in any line. So how about a slightly less terse description, and an example showing both before and after and hopefully we can get you to where you want -- Alex. On 09/08/2014 09:14, la...@significantplanet.org wrote: Sorry, that doesn't work - Original Message - From: Björnke von Gierke b...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, August 09, 2014 12:58 AM Subject: Re: sorting sort theList by word 2 of each sort theList by word 1 of each sort order is retained in-between commands, that's why it works. On 09 Aug 2014, at 08:24, la...@significantplanet.org wrote: I have a field I want to sort. Each line has 4 words. I want to sort by the first word (ascending) and then do a 2nd sort by the 3rd word without changing the order of the first word. Example: apple box apple pie apple zoo baby blue baby rattle baby zoo etc. TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sorting - THANK YOU PAUL!!
Hi Paul, After trying MANY suggestions and my own trial and ERRORS, you finally provided me with a solution that actually works. I very much appreciate that you actually tested it. I have the feeling that many times in this list well-meaning people post solutions that they have not tested and therefore often do not work. Thanks again, Larry - Original Message - From: Paul Hibbert paulhibb...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, August 09, 2014 9:57 AM Subject: Re: sorting Larry, If I understand right, just change the direction of the second sort to put the beginners first, this worked for my test: on mouseUp sort lines of fld sortField by word 2 of each sort lines of fld sortField descending by word 1 of each end mouseUp Paul On 2014-08-09, at 4:56 AM, la...@significantplanet.org wrote: Hello Alex, OK, in my previous email I gave some hypothetical data. In my app I actually have a field where the first word is either Advanced or Beginner The 2nd word is a number ranging from 2 to 25, showing how many items. There are some other words after those, but I'm not concerned about them. As lines are added to the field, they are in jumbled order. What I want is this on the sort: (All the Beginners in numeric order, followed by all the Advanced in numeric order) Beginner 1 Beginner 2 Beginner 3 (etc.) Advanced 1 Advanced 2 Advanced 3 (etc.) Thanks, Larry - Original Message - From: Alex Tweedly a...@tweedly.net To: use-livecode@lists.runrev.com Sent: Saturday, August 09, 2014 3:51 AM Subject: Re: sorting Larry, can you be more explicit about how it doesn't work ? Actually, can you explain better what you want to do ? You said you want to sort by the 2nd and then the 3rd word - but gave an example that appeared to show sorting by 2nd and 1st - and not even have a 3rd word in any line. So how about a slightly less terse description, and an example showing both before and after and hopefully we can get you to where you want -- Alex. On 09/08/2014 09:14, la...@significantplanet.org wrote: Sorry, that doesn't work - Original Message - From: Björnke von Gierke b...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, August 09, 2014 12:58 AM Subject: Re: sorting sort theList by word 2 of each sort theList by word 1 of each sort order is retained in-between commands, that's why it works. On 09 Aug 2014, at 08:24, la...@significantplanet.org wrote: I have a field I want to sort. Each line has 4 words. I want to sort by the first word (ascending) and then do a 2nd sort by the 3rd word without changing the order of the first word. Example: apple box apple pie apple zoo baby blue baby rattle baby zoo etc. TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sorting - THANK YOU Colin!!
Hi Colin Thanks for clarifying! Larry - Original Message - From: Colin Holgate co...@verizon.net To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, August 09, 2014 10:51 AM Subject: Re: sorting - THANK YOU PAUL!! I tried Craig’s approach, but with the correct syntax, not the condensed example he gave. I put your example list into field 1, and had this script in a button: on mouseUp put fld 1 into fld 2 sort fld 2 by word 1 of each word 2 of each end mouseUp I then scrambled (manually) the lines of field 1. That consistently gives back the list in the sorted order you showed. Next I tried this script: on mouseUp repeat with a = 1 to 100 put item random(2) of advanced,beginner random(100) into line a of fld 1 end repeat put fld 1 into fld 2 sort fld 2 by word 1 of each word 2 of each end mouseUp Field 1 had a random list of advanced and beginner entries, with a level too, and after clicking the button field 2 showed the list as sorted. Now, it’s an alpha sort not a numeric sort, and Paul’s approach, which was the same as Björnke’s, also fails in that way. So, Craig’s suggestion was good, just not with the syntax expanded. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Helping newcomers anticipate that standalones can't save tothemselves
Great concept from Paul. To that I would add this: I agree 100% that the LC documentation is slowly improving, but has a LONG way to go. Speaking of tutorials, what would be really helpful is a series of videos that are screen capture tutorials - someone who knows what they're doing literally walking a newbie through a specific lesson. As you all know, there is a ton of free or for purchase screen capture software out there. I am not sure the best way to organize this idea, but if this list could somehow come up with an organized list of topics, then one or more programmers on the list could create the video(s) for a particular topic and post it somewhere. Personally, I would recommend a series of videos that range from something as simple as how to drag a button onto the IDE and set its properties (even I could make that video) to something as complex as creating a plugin for the IDE. (for someone else to make!) If we had a video series such as this, I would absolutely encourage some of my (young) grandchildren to learn programming basics with LC and the videos. I really do believe that one of the great strengths of LC is that a newbie can actually make a simple program that actually works - and not just Hello World. I've never taken a programming class, but because of LC (and this list helping me) I've written dozens of little programs that I personally use a lot and a couple of bigger more sophisticated programs. That's my opinion of what this list might want to think about. Larry - Original Message - From: Paul Hibbert paulhibb...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, August 15, 2014 9:28 AM Subject: Re: Helping newcomers anticipate that standalones can't save tothemselves From my own point of view, I struggled trying to understand some of the basic principles of using LC (Revolution as it was then), until I finally picked apart some sample stacks such as the calculator etc., then a few things started to fall in to place. After that I looked for stacks that had a similar use or techniques to the project I wanted to build (I still do to an extent), to find ideas and learn about how LC works in ways that I maybe don't know or understand. My biggest frustration at the time was the disjointed documentation and lack of structured tutorials, many people have also made the same comments over the years. I feel the tutorials especially have improved and the documentation is improving slowly. Thinking back to when I discovered that I needed an anchor window (or splash screen), again I had to do more research to find out what was needed until I eventually understood the reasons and principles behind this process. Maybe this could be addressed with a good, well structured My First Application tutorial that ships with each new user download, or a package that's easily visible and readily available for new users to download. Currently there is just a free mobile template that tries to entice users to download the community version. I'm sure there are enough teachers and ex-teachers on this list that could maybe help with this. A well structured tutorial can help to guide the new user with the right techniques from the start. Moving forward from the anchor window (or splash screen), I also feel a series of basic project templates (or starting points) could be useful, not as complex as the GLX framework, but something that already has an anchor window, preferences, menu bar and a few basic (commented) scripts for printing, saving etc. Obviously these templates would be different for desktop, mobile or tablet, but starting from a template rather than a single empty stack would eventually help to guide the new user towards a better understanding of the techniques needed for each platform. Paul On 2014-08-15, at 7:13 AM, Richard Gaskin ambassa...@fourthworld.com wrote: One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or splash screen) pattern, or completely rewrite everything to use an external text file or database or what have you. The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. Clearly something more is needed. What should that be? Putting a note in the Standalone Builder might help, but if they've
screen resolution
Hi All, Is there a way to detect screen resolution in Windows? I'm creating a stack that is 1280 x 980, but I know some people still have a 1024 x 768 monitor (like my dad.) I'd like to know if there is a way to automatically or programatically resize my stack and the elements in the stack so it will display on the smaller monitor. TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
how to stop mouse clicks from executing?
I have a situation in my program where I'm showing the user some stuff. I do not want the user to be able to click with the mouse during this time. What is the best way to do that? Actually it would be great if the user couldn't even move the mouse (within my program) during this time. TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: how to stop mouse clicks from executing?
Hi Paul, As Richmond says, That's a clever idea. However, I have no understanding of what a frontScript is and no understanding of how to trap those events. Perhaps you'd be willing to elaborate for me? Thanks, Larry - Original Message - From: Paul Dupuis p...@researchware.com To: use-livecode@lists.runrev.com Sent: Monday, September 01, 2014 12:22 PM Subject: Re: how to stop mouse clicks from executing? insert a frontScript containing mouseDown and mouseUp handlers to trap those events when you want to block them and remove the frontScript when done That will still allow mouseStillDown and mouseRelease messages to be passed for drag operations On 9/1/2014 2:14 PM, Richmond wrote: On 1.09.2014 21:03, miked...@gmail.com wrote: How about setting the cursor to none and locking the cursor? Because the chap may still need the cursor for something else (such as grab). Mike Original Message From: Richmond Sent: Monday, September 1, 2014 1:59 PM To: How to use LiveCode Reply To: How to use LiveCode Subject: Re: how to stop mouse clicks from executing? On 1.09.2014 20:23, la...@significantplanet.org wrote: I have a situation in my program where I'm showing the user some stuff. I do not want the user to be able to click with the mouse during this time. What is the best way to do that? Actually it would be great if the user couldn't even move the mouse (within my program) during this time. TIA Larry ___ How about this sort of code in your cardScript: on mouseUp if fld NIX contains 1 then ---do nix end if end mouseUp then have an offscreen fld NIX that you put 1 onto when your slide-show starts, and you put 'empty' into when it finishes? of course you could move that script out of the cardScript into all your buttons on the card like this: on mouseUp if fld NIX contains 1 then ---do nix else --do whatever you want this button to do end if end mouseUp Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: how to stop mouse clicks from executing?
Hi Peter, Thanks very much for the explanation. Larry - Original Message - From: Peter M. Brigham pmb...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Tuesday, September 02, 2014 6:12 AM Subject: Re: how to stop mouse clicks from executing? On Sep 1, 2014, at 3:50 PM, la...@significantplanet.org la...@significantplanet.org wrote: Hi Paul, As Richmond says, That's a clever idea. However, I have no understanding of what a frontScript is and no understanding of how to trap those events. Perhaps you'd be willing to elaborate for me? Create a button with the following script: on mousedown if put your conditions here then -- block mousedown else pass mousedown end if end mousedown on mouseup if put your conditions here then -- block mouseup else pass mouseup end if end mouseup Then in an openstack handler put the following line: insert script of btn myFrontScript into front A front script resides at the very front of the message path, and all messages will pass to it before going to any controls, cards, or stacks. Anything not handled by the frontscript will then pass to the normal message path. Any message blocked by the frontscript will stop there without getting passed. Frontscripts are very useful for handling special actions that must prevail everywhere in your stack. In most cases you will want to be sure to put the following in your closestack handler: remove script of btn myFrontScript from front to be sure that your blocking action does not persist when it is not needed. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
copying files
Hello All, I need to copy some files from one folder to another in Windows. I have searched the dictionary and cannot figure it out. Is there a way to have thisFile.txt in one folder and copy the file to another folder? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying files
Thank you Kay - Original Message - From: Kay C Lan lan.kc.macm...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 05, 2014 6:57 PM Subject: Re: copying files On Sat, Sep 6, 2014 at 6:00 AM, la...@significantplanet.org wrote: I need to copy some files from one folder to another in Windows. I have searched the dictionary and cannot figure it out. I opened the Dictonary, typed 'move' into the search field and found 'revMoveFolder'. Reading that entry, at the bottom is a User Note by Rodney that says: to move a file see 'rename'. So I typed 'rename' in the search field and under that entry it says: Gives a file or folder a new name or moves it to a new location or both. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
icon sizes
does anyone know the sizes needed to include an icon in a Windows build? thanks p.s. why does LC make this information so difficult to find? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: icon sizes
Yes, Thanks Charles Larry - Original Message - From: Charles E Buchwald char...@buchwald.ca To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, September 08, 2014 12:20 PM Subject: Re: icon sizes Hi Larry, Is this helpful? http://buchwald.ca/lc/Windows-Icons.png - Charles On 08 Sep 2014, at 12:43 PM, la...@significantplanet.org wrote: does anyone know the sizes needed to include an icon in a Windows build? thanks p.s. why does LC make this information so difficult to find? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca Email Notice: http://wp.me/P3aT4d-33 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
2 lines on a button?
Hi All, I have a large button and I want the label to read either Show Instructions or Hide Instructions but I cannot figure out how to put the two words on two different lines in the label of the button. Is that possible to do? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
re: 2 lines on a button
Never Mind! I was trying to do it in the property inspector and then I realized I can just say in the script: set the label of button myInstructions to Show return Instructions so simple, but in my defense, I'm still learning! Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 2 lines on a button
ha ha (I only wish I could be fast all the time!) - Original Message - From: Mark Wieder mwie...@ahsoftware.net To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, September 08, 2014 5:47 PM Subject: Re: 2 lines on a button larry- Dang! You're getting way too fast at this! I was thinking that would probably work, but I didn't even get a chance to test it before you answered your own question. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 2 lines on a button
Thanks Phil, In many cases that will be easier! ( and I checked; you can put as many \n as the space on the button will allow: First\nSecond\nThird, etc.) Larry - Original Message - From: Phil Davis rev...@pdslabs.net To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, September 08, 2014 8:46 PM Subject: Re: 2 lines on a button Larry, Another way to do it in the Property Inspector is type \n between the first and second lines of the label, like this: first line\nsecond line Regards - Phil On 9/8/14, 4:43 PM, la...@significantplanet.org wrote: Never Mind! I was trying to do it in the property inspector and then I realized I can just say in the script: set the label of button myInstructions to Show return Instructions so simple, but in my defense, I'm still learning! Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Congrats LC 7.0! You finally broke my DB!
Sorry that happened Mark. LC seems to be following the same rule of business as Microsoft - Let's not worry too much about making our new stuff backward compatible with the old stuff. What do we care if people cannot run their old stuff anymore? an emphathetic coder Larry - Original Message - From: Mark Mitchell cowh...@mac.com To: use-livecode@lists.runrev.com Sent: Tuesday, September 09, 2014 2:44 PM Subject: Congrats LC 7.0! You finally broke my DB! First of all, LC is an absolutely amazing product. It's actually so amazing that I don't want to tell anyone about it, as I can make my computer dance and sing, and everyone thinks I am a programming wiz... However, my basic data base app has been running my small company for about 14 years? I think it started with the free meta-card, which was limited to just 10 lines of code, so you had to keep passing your code from hidden object to object, in order to keep it free... anyone remember those days? It was like NASA controlling Voyager! Then, this app went through paid metacard, Revolution Beta, paid Revolution, all versions of Livecode and FINALLY LC 7.0 managed to break it... I don't want to seem like a whiner; I HAVE paid hundreds of dollars for various incarnations and complicated licenses of this, ever since I was a beta tester. (And I never received a stuffed animal!) But this DB app has run on, quite literally, more than 20 different computers and various operating systems. It has managed my company and allowed me to raise more than 7 cats. The DB used 'color coding' of the lines, so the color of the lines is vital information. LC 7.0 erases all the previous 13 year of coloring on the entire fields and reverts them to plain text.. thus dumping 13 years of essential information. All is OK, for the time being, I have trashed LC 7.0 and restored all stacks (which worked fine with LC 6.6 but will not open with LC 7.0). I have tested on multiple machines, and it has failed, yet it still works fine on LC 6.6. Is this not a bug? I have a feeling it is tied to the revamped unicode which LC 7.0 has promised, but which I have not yet had a chance to test. I have narrowed down the offending code to this: global planDate,linNum put absolutely anything into line linNum of card field plan -- It gets 'put' alright, but card field plan loses all previous formatting. Big, big bug if it changes folks' stacks forever! I've tried putting a global or a non-variable, and I get the same result. I would say I am doing something stupid, but I didn't DO anything, except upgrade to 7.0 (edit: in a previous post, I included an extraneous 'the' as I was testing to see if the type of variable mattered. Anyway, the 'the' doesn't matter. You still lose formatting without it.) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
copying files in Windows 8
I have a little program where I copy some files from one folder to another with revCopyFile myFile,myFolder and also delete myFile The compiled program works fine on XP and Windows 7, but I get strange behavior on Windows 8. Is that perhaps because Windows 8 uses some different type of folder and file management? I am completely mystified. Thanks for any insights... Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
player question
I have the following lines of code below: I put a number such as 10 into field myStart and then execute the code. The player still starts playing at the very beginning of the song. ? TIA Larry put field myStart * the timeScale of player myPlayer into tStart set the startTime of player myPlayer to tStart start player myPlayer ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: player question
Thanks Paul! That was all that was needed. Larry - Original Message - From: Paul Hibbert paulhibb...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 12, 2014 6:53 PM Subject: Re: player question Try adding the line: set the playSelection of player myPlayer to true Paul On 2014-09-12, at 4:56 PM, la...@significantplanet.org wrote: I have the following lines of code below: I put a number such as 10 into field myStart and then execute the code. The player still starts playing at the very beginning of the song. ? TIA Larry put field myStart * the timeScale of player myPlayer into tStart set the startTime of player myPlayer to tStart start player myPlayer ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: No WAV playback on Win in v6.6.2?
Hello Richard, I had a problem once with playing .wav Turns out that I had the wrong flavor of .wav I had to convert my wav files from 32 bit to 16 bit. Apparently LC doesn't handle wav files above 16 bit. Anyway, that was my experience. Good luck! Larry - Original Message - From: Richard Gaskin ambassa...@fourthworld.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 12, 2014 7:37 PM Subject: No WAV playback on Win in v6.6.2? I could have sworn I'd been able to play WAV files in Windows (no QuickTime installed) within a LiveCode player object, but today I'm having no luck. Am I imagining things? LC seems to do well with MP3, but it would be very convenient for this project if I could use WAV. Am I missing something? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
url question
Hello, I use the following: launch url myUrl and LC opens a browser tab in my default browser - cool. My question is this: Is there any way to close that tab when I want to? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
closing a browser tab?
Hello, I use the following: launch url myUrl and LC opens a browser tab in my default browser - cool. My question is this: Is there any way to close that tab when I want to? TIA Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
browser app?
Hello, I came across this article: http://newsletters.livecode.com/february/issue149/newsletter4.php It describes a browser app for mobile phones. Does anyone know if the app could be adapted for a Windows desktop environment? Thanks for the help! Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: browser app?
Thanks Richard!! - Original Message - From: Richard Gaskin ambassa...@fourthworld.com To: use-livecode@lists.runrev.com Sent: Monday, September 15, 2014 11:30 AM Subject: Re: browser app? Larry wrote: I came across this article: http://newsletters.livecode.com/february/issue149/newsletter4.php It describes a browser app for mobile phones. Does anyone know if the app could be adapted for a Windows desktop environment? That article describes the revBrowser control for mobile. The desktop version has been available longer (for Mac and Win), and the LiveCode IDE install includes a demo showing how to use it: Click Resources in the toolbar, then in the Resource Center window click Tutorials - Internet - Browser Sampler -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
trouble with 6.1.1 (rc4)
I'm using 6.1.1 (rc 4) on Windows XP I made a mistake in one of my card scripts and BLOOEY!!!, LiveCode went beserk and changed most of my buttons and fields to about 48 pt text size. Now, whenever I drag a NEW button onto my card, it still has that huge text size by default. I went to Preferences and clicked on Reset to Defaults and then closed LC entirely. If I open a New Stack, the button has the default text size of 10 or 12 or whatever it is. But if I open my existing stack where the trouble began, then a new button still has the 48 text size. This is driving me crazy!! So please help me not have to start taking lots of drugs... How can this be fixed? Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
large arrays
Hello, I made a program some years ago with Rev studio 2.9 that had some very large arrays in it. No problem. Then I got Rev 3.5 and it choked on the large arrays - took forever to load and display in Variables. Several years ago, I spoke to RunRev about it and they said they were going to resolve it. I am using LC 6.1.1 (rc 4) and was just working with it on my old (large array) program. I can hardly do anything because LC is SO sluggish. If I want to edit a script, it takes several seconds to display what I am typing - so it is extremely difficult to see what I'm doing. Does anyone know of this issue and if it ever was fixed in some later version of LC? Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: large arrays
Thanks Fraser, I will try that. Larry - Original Message - From: Fraser Gordon fraser.gor...@livecode.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 19, 2014 5:51 AM Subject: Re: large arrays On 19 Sep 2014, at 12:46, la...@significantplanet.org wrote: Hello, I made a program some years ago with Rev studio 2.9 that had some very large arrays in it. No problem. Then I got Rev 3.5 and it choked on the large arrays - took forever to load and display in Variables. Several years ago, I spoke to RunRev about it and they said they were going to resolve it. I am using LC 6.1.1 (rc 4) and was just working with it on my old (large array) program. I can hardly do anything because LC is SO sluggish. If I want to edit a script, it takes several seconds to display what I am typing - so it is extremely difficult to see what I'm doing. Does anyone know of this issue and if it ever was fixed in some later version of LC? We have completely re-written how arrays are handled internally in LiveCode 7 so you could give it a go in that and let us know how you get on. Regards, Fraser ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: large arrays
Hello Richard, Here are the numbers: I wrote a program that is an anagram finder several years ago using Rev 2.9 and had NO problems with the arrays. As I mentioned, it choked starting with Rev 3.5 and every iteration of Rev or LC that I've tried since, up to the current 6.1.1 (rc 4) I haven't tried it in LC 7.0 yet. I have a hidden stack with my word fields in it - for words in length from 2 to 12. The word lists are optimized with a key for faster searching. When the program loads, it puts each of the 11 word list fields into one array - which takes about 1 second on my XP with 4gb of ram. The word lists vary in length (3-ltr words is 1292 lines the largest, 9-ltr words, is 40,727 lines.) Each line in all the lists averages less than 100 characters. The size of the field for 9-ltr words is 796kb if copied into a txt document. My old computer that I wrote the original program on with Rev 2.9 had less than 1gb of ram, so I don't think that is the issue. If I put in a 9 letter word such as ELEPHANTS, the program will find all anagrams (words found within the letters of ELEPHANTS) in about 4/10 of a second. The time varies slightly depending on whatever else is going on with my computer. That's a total of 596 words with my word lists and the program lists words and the number of words for each word length from 9 to 2. So the compiled version of my program works very satisfactorily. I'm now adding some other features to the program and, as I said, it is like trying to program on a typewriter that is full of mud. I spoke to someone at RunRev years ago and they acknowledged that there was an issue with arrays. Maybe it has been fixed in 7.0, but I haven't tried that yet. If you have any additional insights, I sure would appreciate it. Thanks, Larry - Original Message - From: Richard Gaskin ambassa...@fourthworld.com To: use-livecode@lists.runrev.com Sent: Friday, September 19, 2014 10:18 AM Subject: Re: large arrays Just curious: How large is large? It would be interesting to know the number of elements. depth, and aggregate size. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: large arrays
Hello Richard, I had to leave for awhile but now here is the updated info: Using put len(arrayEncode(myArray)) I got the following: there are actually 11 different arrays - one for each of the word lengths from 2 to 12 letters. The 3-ltr word array is 17672 The 9-ltr word array is 1159610 (there are a lot more 9-ltr words than 3-ltr words.) I didn't do all the others, but that will give you an idea. 7 and 8-ltr words will be close to 9-ltr words in size I haven't yet had time to test with later versions, but once I do, I will let you know. The problem is not the time it takes to load the arrays. As I mentioned, it loads all 11 in just over 1 second. Once they are loaded, I access the data directly from the arrays and not from the fields. The number elements (lines) in the arrays varies. The 3-ltr array has 1292 lines - I guess that means elements. The 9-ltr array has 40,727 lines or elements. Each line is in a format like this: apt,APT,PAT,TAP where apt is the key, which only needs to be found once and it shows all the 3-ltr words that can be made with those letters. Of course, that speeds up the search process tremendously. The time (about .4 seconds) I mentioned for finding the 596 words found in ELEPHANTS is what I tested today. But I know that even on a slower computer using the stack built with Rev 2.9, the time was very close to that - about 1/2 of a second. About 5 or 6 years ago when I was using 2.9 and then upgraded to 3.5, I not only spoke to someone at RunRev (forgot who) but I also spoke to Jerry Daniels, of Daniel and Mara, on the phone about several RunRev things and we discussed the array issue. He acknowledged that with the release of 3.5 there were some serious array issues, that RunRev knew about them and Jerry hoped that they would soon be fixed. They were not fixed with the release of RunRev 4.0 and the only version of LC that I've used extensively is 6.1.1 and the array issues are still not fixed in that release - although I would say it is a big improvement over RunRev 3.5. The crazy thing is this: I haven't made any significant changes to my stack over the years - mostly cosmetic stuff and the array sizes are what they've always been. RunRev 2.9 never flinched, brought up the data in the arrays almost instantly. But since then it has been worse than trying to get my little grandson to wear a shirt. I'm working on other projects now, but wanted to incorporate some of the anagram features in my latest project. I am very reluctant to do so because the complete sluggishness of it makes it way too frustrating to try and program. Someday soon I will get around to trying LC 7.0 or 7.1 or whatever is there and HOPEFULLY the issue will be solved. In the meantime, thank you and Jacqueline SO MUCH for your kind attention and offers of help. All the best, Larry - Original Message - From: Richard Gaskin ambassa...@fourthworld.com To: use-livecode@lists.runrev.com Sent: Friday, September 19, 2014 1:19 PM Subject: Re: large arrays larry wrote: As I mentioned, it choked starting with Rev 3.5 and every iteration of Rev or LC that I've tried since, up to the current 6.1.1 (rc 4) The current shipping version is 6.6.3, and the latest test version lower than 7 is 6.7RC2. Please let us know if you see any significant change with either version. I have a hidden stack with my word fields in it - for words in length from 2 to 12. The word lists are optimized with a key for faster searching. When the program loads, it puts each of the 11 word list fields into one array - which takes about 1 second on my XP with 4gb of ram. If the problem is the time it takes to load the array, and the loading is happening from fields, the problem may not be in the arrays and perhaps in the field accesses. The word lists vary in length (3-ltr words is 1292 lines the largest, 9-ltr words, is 40,727 lines.) Each line in all the lists averages less than 100 characters. The size of the field for 9-ltr words is 796kb if copied into a txt document. So there are 11 elements in the array? If you run the array through arrayEncode and obtain its length, what is the size reported? put len(arrayEncode(tSomeArray)) If I put in a 9 letter word such as ELEPHANTS, the program will find all anagrams (words found within the letters of ELEPHANTS) in about 4/10 of a second. Is that the old time or the new time? If new, what is the old time (or vice versa)? I spoke to someone at RunRev years ago and they acknowledged that there was an issue with arrays. It would be interesting to know exactly what they'd said. While arrays have undergone revision a few times over the years, they tend to be very fast in every version I've used. Hopefully once we understand more of the details of your code we'll pin down the bottleneck and get your performance back on par. -- Richard Gaskin Fourth World Systems Software Design
Re: Usng an image to disable a group
Hi Peter, I'm not sure what you're exactly looking for in looks but I just now made a little test stack with colored buttons. You can adjust the blendlevel so that the group is as opaque or as transparent as you wish it to be. That's one idea. Larry - Original Message - From: Peter Haworth p...@lcsql.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, September 20, 2014 10:20 AM Subject: Usng an image to disable a group I have a stack with a series of groups on it. I need to control the order in which data is entered into the groups. The obvious/easy way is to enable/disable the groups as needed but I'm not happy with the way groups look when they are disabled. I vaguely remember a thread about using images to do this since clicks within the image don't make it through to the underlying controls. When I tried this, clicks on buttons that were under the image did not trigger any mouse events on them, as hoped, but field controls still get focus and I can type into them. It seems like this isn't going to work so looking for other ways to achieve this without having to go through every control in the group and adjusting their properties to disable them. Alternatively, is there a way to control how a group looks when it is disabled? Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
reading a file
Hello, Could anyone please explain why the following script does not work? (It puts into the field the name of the selected file and not the contents of the file. on mouseUp answer file Select a file. put quote it quote into thisFile open file thisFile read from file thisFile until EOF put it into field myOutput close file thisFile end mouseUp Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: reading a file
Thanks Alain, Why is it that if I explicitly want to open a file, I have to put quotes around the name, but if I put the name in a variable, I do not need the quotes? Thank you again, Larry - Original Message - From: Alain Farmer alain_far...@yahoo.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, September 21, 2014 4:09 PM Subject: Re: reading a file replace: put quote it quote into thisFile with put it into thisFile On Sunday, September 21, 2014 6:03 PM, la...@significantplanet.org la...@significantplanet.org wrote: Hello, Could anyone please explain why the following script does not work? (It puts into the field the name of the selected file and not the contents of the file. on mouseUp answer file Select a file. put quote it quote into thisFile open file thisFile read from file thisFile until EOF put it into field myOutput close file thisFile end mouseUp Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
repeat with each
Hello, I have never been able to understand how to use the each form in a repeat statement. Can anyone explain why this code does not work? It is almost verbatim from the example in the LC dictionary. on mouseUp repeat for each word thisWord in field justOne put , after thisWord end repeat sort items of field justOne end mouseUp It does not insert the commas. Supposedly the each form is a lot faster than using put x + 1 into x put , after word x of field justOne Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
file size
Hello, I know I can use: put the files into field Current Files to get the size of a file (in bytes), but is there any way to use answer file or some other way to get the size of just one specific file? Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: file size
Thanks Paul and Alex and Richard, I ended up using Paul's code: on mouseUp answer file ? put binfile: it into tFile put the length of URL tFile / 1000 KB into fld myResultField end mouseUp It works just great! Larry - Original Message - From: Paul Hibbert paulhibb...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, September 22, 2014 4:50 PM Subject: Re: file size Larry, Try: on mouseUp answer file ? put binfile: it into tFile put the length of URL tFile / 1000 KB into fld myResultField end mouseUp Paul On Sep 22, 2014, at 2:29 PM, la...@significantplanet.org wrote: Hello, I know I can use: put the files into field Current Files to get the size of a file (in bytes), but is there any way to use answer file or some other way to get the size of just one specific file? Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: file size
Hi Mike, good point, but actually my line is: put the length of URL tFile into field myResult because I want the actual number and not how many kb. Larry - Original Message - From: miked...@gmail.com To: use-livecode@lists.runrev.com; How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, September 22, 2014 6:28 PM Subject: Re: file size To be technically correct divide by 1024. Mike Original Message From: la...@significantplanet.org Sent: Monday, September 22, 2014 8:21 PM To: How to use LiveCode Reply To: How to use LiveCode Subject: Re: file size Thanks Paul and Alex and Richard, I ended up using Paul's code: on mouseUp answer file ? put binfile: it into tFile put the length of URL tFile / 1000 KB into fld myResultField end mouseUp It works just great! Larry - Original Message - From: Paul Hibbert paulhibb...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, September 22, 2014 4:50 PM Subject: Re: file size Larry, Try: on mouseUp answer file ? put binfile: it into tFile put the length of URL tFile / 1000 KB into fld myResultField end mouseUp Paul On Sep 22, 2014, at 2:29 PM, la...@significantplanet.org wrote: Hello, I know I can use: put the files into field Current Files to get the size of a file (in bytes), but is there any way to use answer file or some other way to get the size of just one specific file? Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
sort lines by length
Hello, this line doesn't work: sort lines of field myField by length of each Can someone please tell me the code for sorting a field by length of line? Thanks! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
searching for chars within a string
Hello, I have done a lot research and cannot find any way to do this: I have a string, AELPP and I want to see if all 5 of those letters are in search string If search string is: ABCDEKLP, then NO it isn't because there are two P's in the string I'm searching for. But if search string is: ABCDEKLLLMMOOPP, then YES the string I'm searching for is found in the search string. It is important to my program that I just find the 5 chars anywhere within the search string and they do not have to be sequential in the search string. Thanks for any help, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
P.S. on searching for chars within a string
Hello again, I know how to do it with brute force, but I want to know the FASTEST way to find the chars. Thanks ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
variable trouble
Hello, I'm using 6.6.3 on Windows XP. This line of code works just fine: put the keys of wgList03 into theseKeys but the following lines of code do NOT work: (where N is 3) -- and yes, it IS a ZERO after wgList put wgList0 N into thisVar put the keys of thisVar into theseKeys To me, this is just inexplicable and very frustrating. Any help will be greatly appreciated. Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: variable trouble
Hi Scott, I meant to say inexplicable to me. Your solution works great. However, I cannot figure out the next part: I want to put the value of thisKey into a variable when it matches. So I tried a few iterations of: put value(thisVar[thisKey]) space after newVar but could not get anything to work - with the parenthesis in different places. Do you know the syntax for adding the bracketed thisKey ?? Thanks, Larry - Original Message - From: Scott Rossi sc...@tactilemedia.com To: LiveCode Mail List use-livecode@lists.runrev.com Sent: Wednesday, September 24, 2014 12:28 AM Subject: Re: variable trouble Hi Larry: Your situation is very explicable. In your script you're treating thisVar as an array, instead of accessing the array that you put into thisVar. You're trying to use one variable to refer to another. If I understand the result you want, one way would be to use the value function, to retrieve the data of the array stored in thisVar: put wgList0 N into thisVar put the keys of value(thisVar) into theseKeys Hope this works for you. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 9/23/14 11:07 PM, la...@significantplanet.org la...@significantplanet.org wrote: Hello, I'm using 6.6.3 on Windows XP. This line of code works just fine: put the keys of wgList03 into theseKeys but the following lines of code do NOT work: (where N is 3) -- and yes, it IS a ZERO after wgList put wgList0 N into thisVar put the keys of thisVar into theseKeys To me, this is just inexplicable and very frustrating. Any help will be greatly appreciated. Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: P.S. on searching for chars within a string
Hi Craig, Thanks for the tip. I am using a for each loop and have run some benchmark time tests. I am able to find (match) the words I want in about 1/7 of the time that it used to take me using a different procedure - and the old way was pretty fast! To find all the smaller words (length of 2 - 7) contained in a 12-ltr word, it used to take 3.46 seconds. Now it only takes 0.56 seconds. (finding 1698 words) And even better, the new way allows for getting the smaller words from a string of, say 30 chars, and it doesn't increase the time much - about 0.85 seconds for searching within 30 chars. With the old way, I couldn't even search on more than 12 chars, because it just took too long. So I learned a lot today! Larry P.S. Yes, I am using arrays. - Original Message - From: dunb...@aol.com To: use-livecode@lists.runrev.com Sent: Tuesday, September 23, 2014 9:10 PM Subject: Re: P.S. on searching for chars within a string Larry. Just read your brute force comment. Not sure how much data you want to compare, but a loop using the for each variant will run an awful lot of text in an awfully short time. What about that array thing, just for modernity and compactness/ Craig -Original Message- From: larry la...@significantplanet.org To: use-livecode use-livecode@lists.runrev.com Sent: Tue, Sep 23, 2014 8:25 pm Subject: P.S. on searching for chars within a string Hello again, I know how to do it with brute force, but I want to know the FASTEST way to find the chars. Thanks ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
sorting question
Hello, I have the following items in a field: AD, AE, AI, AN, AR, AS, AT, DE, DI, DO, EE, EN, ER, ES, ET, IN, IO, IS, IT, NO, NU, OE, OP, OR, OS, OU, PA, PE, PI, ST, TO, UP, UR, UT, DA, EA, ED, ID, NA, NE, OD, OI, ON, PO, RE, SI, SO, TA, TE, TI, UN, US You can see that they are not sorted alphabetically. I have a test button with: on mouseUp sort items of field myField end mouseUp However, the order of the items remains unchanged. I also tried: sort items of field myField text ascending but it didn't make a difference Thanks for the help, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
re: sorting question
Sorry, never mind! Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
now a paste question
Hello Dave, Yes, you guessed it correctly. However I have a new weird thing. I have a large amount of text - over 10,000 5-ltr words. I can copy and paste the entire text with no problem from one txt document to another via the clipboard. But when I try to paste the entire amount into a LC field (either 6.1.1 or 6.6.3) it will not paste in the whole amount. It seems that a couple of years ago someone told me that LC has some weird limitation on how much can be put into a field at one time. Does anyone know anything about that - or why I cannot paste the entire text into a LC field all at once. I can do pieces and keep going until all of it is in the field. Thanks, Larry - Original Message - From: Dave Kilroy d...@applicationinsight.com To: use-revolut...@lists.runrev.com Sent: Wednesday, September 24, 2014 2:40 AM Subject: Re: re: sorting question Sounds like you've sorted it Larry :) For others wondering what the cause was, it was likely that the spaces in each item were confusing things - so if they are removed prior to the sort it all works fine (they can be put back in after...) on mouseUp replace space with empty in fld fldTest sort items of fld fldTest replace comma with , in fld fldTest end mouseUp - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/sorting-question-tp4683684p4683687.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: now a paste question
THANKS Dave, I was going crazy trying to figure out the weird behavior. I guess I should have read the user guide! So I just put a return after every entry and, now, no problems! Thanks very much for your help. Larry - Original Message - From: Dave Kilroy d...@applicationinsight.com To: use-revolut...@lists.runrev.com Sent: Wednesday, September 24, 2014 3:52 AM Subject: Re: now a paste question Hi Larry Page 43 of the LC User Guide states the maximum line length of a line in a field is 65,536 characters storage (No more than 32,786 pixels wide for display) Is your text all in one line by any chance? I haven't heard of a max size for a field but if you are having problems using a field how about using a custom property instead? - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/sorting-question-tp4683684p4683690.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 6.6.2 or 6.6.3???
Hi Bob, I had the exact same experience that you did. I just assumed it was a display bug with LC and ignored it. When I got the alert about 6.6.3, I just chose Skip this version. Maybe you or someone will report it as a bug. Larry - Original Message - From: Bob Sneidar bobsnei...@iotecdigital.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 26, 2014 12:00 PM Subject: 6.6.2 or 6.6.3??? Hi all. I’m wondering if any other Windows users are encountering this: I downloaded and installed the 6.6.3 installer, the commercial version, to test in my Windows 7 environment. But when the app launches it reports that it is 6.6.2! So I get an alert that there is a new version, 6.6.3, so I install that over top. It still reports that it is version 6.6.2!!! So which is it? 6.6.2, or 6.6.3? Is this just a display bug? The About Livecode splash screen is indicating 6.6.2 build 4012. Bob S ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: searching for chars within a string
Hello Peter, Thanks for sending your functions. I'm still sort of a newbie and I had to get a programming friend give me a quick course in how functions work (especially the local variables.) Anyway, I ran a test using your functions against the offset() function in LC Searching 78 characters (the entire alphabet repeated 3 times) for all possible 7-ltr words (32,856 is the result) we have: your functions: 3045 milliseconds offset(): 1249 milliseconds But I'm going to file away your functions because I may use them later in some other manner - and what I learned today about functions was very helpful. So thanks again. Larry P.S. I'm using LC 6.6.3 on Windows XP with 4gb of ram. - Original Message - From: Peter M. Brigham pmb...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 26, 2014 11:53 AM Subject: Re: searching for chars within a string I'm curious, Larry -- how fast is this on your machine compared to the regex solutions? function isInString testStr, targetStr repeat for each char c in testStr add 1 to countArray[c] end repeat put the keys of countArray into letterList repeat for each line L in letterlist put countArray[L] into nbrCharsTest put howMany(c,targetStr,comma) into nbrCharsNeeded if nbrCharsNeeded nbrCharsTest then return false end repeat return true end isInString function howmany tg,container,divChar -- how many tg = target string is in container replace tg with divChar in container set the itemdelimiter to divChar put the number of items of container into h if char -1 of container = divChar then return h -- trailing delimiter is ignored return h-1 end howmany -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Sep 26, 2014, at 11:58 AM, la...@significantplanet.org la...@significantplanet.org wrote: Hello Kay, Good stuff. I did some time tests and offset() is about twice as fast as matchText(). Don't know why. Larry - Original Message - From: Kay C Lan lan.kc.macm...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 26, 2014 12:54 AM Subject: Re: searching for chars within a string A simple way would be just to use basic matchText() for each single letter and regex matchText() for repeating letters. P.*P will find double Ps, P.*P.*P will find triple Ps etc. Seems to be relatively fast but if you have very large data sets other alternatives would need to be investigated. in the message box: put ABCDEKLP into X put ABCDEKMMOOPP into Y put 10 into Z put 0 into a put 0 into b put 0 into c put 0 into d put the millisec into tStart repeat Z times if (matchText(X, A) AND matchText(X, E) AND matchText(X, L) AND matchText(X, P.*P)) then add 1 to a else add 1 to b end if if (matchText(Y, A) AND matchText(Y, E) AND matchText(Y, L) AND matchText(Y, P.*P)) then add 1 to c else add 1 to d end if end repeat put the millisec into tEnd put X Passed a times. cr into msg put X Failed b times. cr after msg put Y Passed c times. cr after msg put Y Failed d times. cr after msg put Z repeats took tEnd - tStart ms after msg The above should take less than 1 sec but for a million repeats I got: X Passed 0 times. X Failed 100 times. Y Passed 100 times. Y Failed 0 times. 100 repeats took 1997 ms NOTE: the above only works if the letters you are looking for can appear in ANY order. If you need a specific order then you'd have to regex matchText() for all searches, ie if (matchText(X, A.*E.*L.*P) AND matchText(X,P.*P)) then Yes, the P must appear in both searches to ensure a P has both an L before it and a P after it. HTH On Wed, Sep 24, 2014 at 8:22 AM, la...@significantplanet.org wrote: Hello, I have done a lot research and cannot find any way to do this: I have a string, AELPP and I want to see if all 5 of those letters are in search string If search string is: ABCDEKLP, then NO it isn't because there are two P's in the string I'm searching for. But if search string is: ABCDEKLLLMMOOPP, then YES the string I'm searching for is found in the search string. It is important to my program that I just find the 5 chars anywhere within the search string and they do not have to be sequential in the search string. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Replacing Characters
My experience is that when doing string searching offset() is by far the fastest way. But I don't know everything. Larry - Original Message - From: JB sund...@pacifier.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 26, 2014 10:26 PM Subject: Replacing Characters I want to replace every third character in a text string if it is a certain character. So lets say I have a list of characters there range from A thru F and the list is possibly 10,000 characters long. I want to check every third character in the list and if it is a D then I want to change it to a +. I can probably do it with a repeat and use a variable for a counter that resets every three times and then check the character when the counter gets to three but I was wondering if it could be done faster somehow. John Balgenorth ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
sort question for today
Hello, I am trying to sort lines 7 through the last line of a field. This doesn't work: sort lines (7 to last) of field myStats by word 2 of each Does anyone know the code that will work? Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sort question for today
Hi Paul, That is essentially what I did, but not as elegantly as your solution. But it works and it is very quick, so I'm happy. Thanks very much for helping me see an even better way. Larry - Original Message - From: Paul Hibbert paulhibb...@mac.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, September 29, 2014 1:28 AM Subject: Re: sort question for today Larry, This should work… put line 7 to -1 of fld myStats into tLinesToSort sort lines of tLinesToSort by word 2 of each put tLinesToSort into line 7 to -1 of fld myStats You can only sort all Lines or Items of a container, so if you need to sort specific lines or items, you must put them into a separate container to do the sort, then replace them. Paul On Sep 28, 2014, at 8:35 PM, la...@significantplanet.org wrote: Hello, I am trying to sort lines 7 through the last line of a field. This doesn't work: sort lines (7 to last) of field myStats by word 2 of each Does anyone know the code that will work? Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
position of field scrollbar
Hello, I have a field with a vScrollbar Does anyone know how to set the position of the scrollbar to 0 ?? I'm sorry, but the LC dictionary is of NO help in this matter - at least not that I could see. Thanks, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
create a new label field
I can use create field to create a new field, but it is a rectangular field with square corners. How do I create a new label field programatically? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: create a new label field
Hi Craig, Yes, but how do I do that? I cannot find any command that distinguishes from label or regular field. I do use templateField for other properties, but nothing I've tried will set the property of a label field. Thanks, Larry - Original Message - From: dunb...@aol.com To: use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 5:14 PM Subject: Re: create a new label field Hi. Set up the templateField as a label field. Then all new fields created will have its properties. Craig Newman -Original Message- From: larry la...@significantplanet.org To: use-livecode use-livecode@lists.runrev.com Sent: Sun, Oct 5, 2014 6:32 pm Subject: create a new label field I can use create field to create a new field, but it is a rectangular field with square corners. How do I create a new label field programatically? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: create a new label field
Hi Craig, Thanks for elaborating. I really appreciate it. I know your first message meant perfect sense to you, but I just don't have much experience. I should have thought to do what you just said in this most recent post. Now I have a better understanding of how to do stuff like that. Again, thanks very much. Larry - Original Message - From: dunb...@aol.com To: use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 6:24 PM Subject: Re: create a new label field Make a label field the way you want it. Set the properties of the templateField to the properties of your label field. Craig -Original Message- From: larry la...@significantplanet.org To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sun, Oct 5, 2014 7:20 pm Subject: Re: create a new label field Hi Craig, Yes, but how do I do that? I cannot find any command that distinguishes from label or regular field. I do use templateField for other properties, but nothing I've tried will set the property of a label field. Thanks, Larry - Original Message - From: dunb...@aol.com To: use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 5:14 PM Subject: Re: create a new label field Hi. Set up the templateField as a label field. Then all new fields created will have its properties. Craig Newman -Original Message- From: larry la...@significantplanet.org To: use-livecode use-livecode@lists.runrev.com Sent: Sun, Oct 5, 2014 6:32 pm Subject: create a new label field I can use create field to create a new field, but it is a rectangular field with square corners. How do I create a new label field programatically? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: create a new label field
Thanks Jacque, That note is actually very enlightening to me! Larry - Original Message - From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 6:50 PM Subject: Re: create a new label field Just for reference, LiveCode has only one field and one button object. All the field variations in the tool palette are just a single field object with different properties set. The same goes for all the buttons. I think it's misleading for new users because it gives the impression that there are different types of button and field controls. On October 5, 2014 7:36:14 PM CDT, la...@significantplanet.org wrote: Hi Craig, Thanks for elaborating. I really appreciate it. I know your first message meant perfect sense to you, but I just don't have much experience. I should have thought to do what you just said in this most recent post. Now I have a better understanding of how to do stuff like that. Again, thanks very much. Larry - Original Message - From: dunb...@aol.com To: use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 6:24 PM Subject: Re: create a new label field Make a label field the way you want it. Set the properties of the templateField to the properties of your label field. Craig -Original Message- From: larry la...@significantplanet.org To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sun, Oct 5, 2014 7:20 pm Subject: Re: create a new label field Hi Craig, Yes, but how do I do that? I cannot find any command that distinguishes from label or regular field. I do use templateField for other properties, but nothing I've tried will set the property of a label field. Thanks, Larry - Original Message - From: dunb...@aol.com To: use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 5:14 PM Subject: Re: create a new label field Hi. Set up the templateField as a label field. Then all new fields created will have its properties. Craig Newman -Original Message- From: larry la...@significantplanet.org To: use-livecode use-livecode@lists.runrev.com Sent: Sun, Oct 5, 2014 6:32 pm Subject: create a new label field I can use create field to create a new field, but it is a rectangular field with square corners. How do I create a new label field programatically? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
how to detect insertion point
Hello, I have several fields... myField1, myField2, etc. When the user clicks within a field, I want to detect the (?? selection, insertion ??) and run a script. I've experimented for over an hour with no luck. The only thing I found that sort of works is: on mouseEnter do stuff end mouseEnter The problem with that is that one of the things I want to do is change the color of the field while the script is doing stuff and only change back to the original color when the stuff is finished, and not when the mouse leaves. It is too clunky to require the user to leave the mouse in the field while the stuff is being done. I hope that makes sense. Thanks for any help. Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: how to detect insertion point
Thanks Kay, For some reason, neither focusIn nor focusOut works. I can get what I want with openField but I haven't found anything that works when the focus is no longer on the field; focusOut doesn't work and neither does closeField (because closeField only works if the user changed the contents of the field) So I'm just here tearing my hair out! Larry - Original Message - From: Kay C Lan lan.kc.macm...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 8:35 PM Subject: Re: how to detect insertion point Maybe the focusIn messgae might help. On Mon, Oct 6, 2014 at 10:30 AM, la...@significantplanet.org wrote: Hello, I have several fields... myField1, myField2, etc. When the user clicks within a field, I want to detect the (?? selection, insertion ??) and run a script. I've experimented for over an hour with no luck. The only thing I found that sort of works is: on mouseEnter do stuff end mouseEnter The problem with that is that one of the things I want to do is change the color of the field while the script is doing stuff and only change back to the original color when the stuff is finished, and not when the mouse leaves. It is too clunky to require the user to leave the mouse in the field while the stuff is being done. I hope that makes sense. Thanks for any help. Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: how to detect insertion point
Thanks Mike! Now I can keep the rest of my hair! Larry - Original Message - From: miked...@gmail.com To: use-livecode@lists.runrev.com; How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 8:47 PM Subject: Re: how to detect insertion point What about exitfield? Mike Original Message From: la...@significantplanet.org Sent: Sunday, October 5, 2014 10:45 PM To: How to use LiveCode Reply To: How to use LiveCode Subject: Re: how to detect insertion point Thanks Kay, For some reason, neither focusIn nor focusOut works. I can get what I want with openField but I haven't found anything that works when the focus is no longer on the field; focusOut doesn't work and neither does closeField (because closeField only works if the user changed the contents of the field) So I'm just here tearing my hair out! Larry - Original Message - From: Kay C Lan lan.kc.macm...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 8:35 PM Subject: Re: how to detect insertion point Maybe the focusIn messgae might help. On Mon, Oct 6, 2014 at 10:30 AM, la...@significantplanet.org wrote: Hello, I have several fields... myField1, myField2, etc. When the user clicks within a field, I want to detect the (?? selection, insertion ??) and run a script. I've experimented for over an hour with no luck. The only thing I found that sort of works is: on mouseEnter do stuff end mouseEnter The problem with that is that one of the things I want to do is change the color of the field while the script is doing stuff and only change back to the original color when the stuff is finished, and not when the mouse leaves. It is too clunky to require the user to leave the mouse in the field while the stuff is being done. I hope that makes sense. Thanks for any help. Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: how to detect insertion point
Thanks Craig, I learned a lot today from your post and Jacque's post. Larry - Original Message - From: dunb...@aol.com To: use-livecode@lists.runrev.com Sent: Sunday, October 05, 2014 10:06 PM Subject: Re: how to detect insertion point Larry. It takes a while to learn the many LC commands, functions and properties that pertain to the task at hand. Experimentation is the best way, but also do use the dictionary, trying out various words that seem to fit what you are looking for. And especially the see also entries when you do. In your original post, you mentioned the word selection. That, or maybe select by itself, would likely have led you to many possible lines of experimentation. After a while, you will have a a sense of what and how to search for in the dictionary, and the array of options presented there will lead you farther. I would keep the filter set to all. Craig -Original Message- From: Mark Schonewille m.schonewi...@economy-x-talk.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sun, Oct 5, 2014 11:26 pm Subject: Re: how to detect insertion point Hi Larry, To detect the insertion pint when the user clicks in a field, you can do this: on selectionChanged put the selectedchunk end selectionChanged -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 6 okt. 2014 om 04:30 heeft la...@significantplanet.org het volgende geschreven: Hello, I have several fields... myField1, myField2, etc. When the user clicks within a field, I want to detect the (?? selection, insertion ??) and run a script. I've experimented for over an hour with no luck. The only thing I found that sort of works is: on mouseEnter do stuff end mouseEnter The problem with that is that one of the things I want to do is change the color of the field while the script is doing stuff and only change back to the original color when the stuff is finished, and not when the mouse leaves. It is too clunky to require the user to leave the mouse in the field while the stuff is being done. I hope that makes sense. Thanks for any help. Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
from here to there
Hello, Can someone please tell me the syntax for putting words x to y from one field/var to another? I tried: put words 1 to 40 of field fld1 into field fld2 but that doesn't work. I don't even know how to look up the syntax! Sorry. Thanks Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: from here to there
Thanks Klaus and Dave, It is sort of strange to me that I want more than 1 word and so I used words, but you guys are right of course. Just use word Larry - Original Message - From: Klaus major-k kl...@major-k.de To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, October 06, 2014 4:34 PM Subject: Re: from here to there Hi Larry, Am 07.10.2014 um 00:25 schrieb la...@significantplanet.org la...@significantplanet.org: Hello, Can someone please tell me the syntax for putting words x to y from one field/var to another? I tried: put words 1 to 40 of field fld1 into field fld2 but that doesn't work. I don't even know how to look up the syntax! Sorry. avoid the plural :-) put word 1 to 40 of field fld1 into field fld2 Thanks Larry Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: from here to there
I'm echoing John: Thanks Kay for the detailed explanation. That really helps us understand the LC syntax so much better! Larry - Original Message - From: Kay C Lan lan.kc.macm...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, October 06, 2014 8:31 PM Subject: Re: from here to there On Tue, Oct 7, 2014 at 6:37 AM, la...@significantplanet.org wrote: It is sort of strange to me that I want more than 1 word and so I used words, As to how grammatically correct it is I'm sure Richmond could tell us, but I like to think of it this way, I'm not actually specifying plural what I'm doing is specifying a start point and an end point and these are always singular. char 1 to char 21 word 5 to word -2 this is then conveniently shorthanded to: item 2 to 22 token 34 to -9 byte -8 to -1 Also, if I ask myself, how do I get every word from a variable - note I've used the singular, so the answer is, word 1 to -1 --again I use the singular And just in case it comes up, remember a word in LC includes any punctuation that may follow what we typically think of as a word, in the message box put this is, a word into tStore put word 1 to 2 of tStore into msg if you don't want the punctuation you might find trueword is what you need put this is, a word into tStore put trueword 1 to 2 of tStore into msg HTH ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
reporting a bug?
Hello, I've just spent about 3 hours trying to debug my program and finally found out: There is a problem in the IDE, but when I compile, the problem goes away. I am creating several fields using the templateField and create field I set the locktext to false for all the fields - both in the templateField and after they are created - just to be sure. (Originally I just had: set the locktext of the templateField to false) Each created field has its script set to a master script that has an openField command in it. When I open the IDE and create my fields, and then try to click in a newly created field, nothing happens. I found out, just by trial and error, that if I first drag a button or field using the tool bar on to my stack and then delete that button or field and then create my fields, everything works as it should. However, if I PROGRAMMATICALLY create the button and then delete it, I still cannot click in a newly created field. So after 3 hours of stuff like that, I finally compiled my program and everything works fine. I am just reporting this to the list because I'm not smart enough to know if that is a bug or not. But if anyone was experiencing anything like that, then you now know what happened with me. btw, I'm using 6.6.3 on an XP machine. Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
quotes question
Hello All, I've been given some good advice from a couple of people on this list about being sure to put quotes around object names. So I'm going back through my code and doing that. Question: If I'm using a variable as part of a field name, should it have quotes around it? In other words, which of the two examples below is the right way to do it? create field set the name of the last field to (myfield x) OR create field set the name of the last field to (myfield x) ?? Thanks Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LC 6.6.3 and 6.6.4 really slower than LC 6.1.2
My (limited) experience: I found several bugs in 6.6.3 Without changing the code at all, I opened my stack in 6.1.1 and everything ran perfectly. Larry - Original Message - From: Alain Vezina alain.vez...@logilangue.com To: LiveCode How to use-livecode@lists.runrev.com Sent: Thursday, October 09, 2014 9:41 AM Subject: LC 6.6.3 and 6.6.4 really slower than LC 6.1.2 Hi All, When I press a btn to go back to a previews card it takes 1/10 of a second with LC 6,1,2, but it takes 3.28 second with LC 6.6.3 and 6.6.4. That the same when my app is a standalone. I use the same script for all trials on mouseUp global sBrowserId BrowserInvisible02 hide btn accidPronomi hide btn Rectif go to cd LaRecherche show btn avance show btn recule show fld flexions if fld info is not empty then show fld info end if revBrowserSet sBrowserId, visible, true show image browserimage of cd LaRecherche end mouseUp I am on Maveriks and XCode 6.0.1 for LC 6.6.3 and 6.6.4 and on Maveriks and XCode 5.1.1 for the LC 6.1.2 version. I dont understand. Is it a bug I have to report? Anybody has an idea of what is the problem? Alain Vezina Logilangue www.logilangue.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
problem with counting words
Hello, I'm posting this to help any other poor saps who run into this insanity: I want to count the words in a field. I have: set the itemDel to space put the number of words of field myTest into field myNumber Here is what happens: I am testing the word count in LiveCode 6.1.1. Believe it or not, LiveCode will count all these words as 23 words because everything contained within the quotes is counted as ONE word!!! There is nothing that I could find that says LiveCode will treat everything within quotes as one word, even when I have itemDel set to space. I doubt the RunRev people will see this as a bug, but just how it is. Well, it's really stupid - and beyond that, it is not documented in the Dictionary that I could see. btw, I spoke to a programmer friend of mine (who used to work for Novell) and he said he'd never heard anything like that in the several programming languages he knows. Yes, I do know how to do a work around to count all the actual words, but that is not the point. The point is that I wasted over 2 hours of my time figuring out why my word count was inaccurate. quite depressed, Larry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode