From bdrunrev at gmail.com Wed Feb 1 05:33:57 2012 From: bdrunrev at gmail.com (Bernard Devlin) Date: Wed, 1 Feb 2012 10:33:57 +0000 Subject: database write error In-Reply-To: <1328041347724-4345754.post@n4.nabble.com> References: <1327996211408-4343759.post@n4.nabble.com> <4F27DF55.7030007@crcom.net> <4F27E41C.9080303@kencorey.com> <1328041347724-4345754.post@n4.nabble.com> Message-ID: Perhaps I am misunderstanding the problem here. I am a great fan of the concept of merge. And it is certainly possible to use merge() to produce the list of fields with each field value enclosed by either single or double quotes. It just requires a litte indirection. (I've put some arbitrary values into the first 2 variables in your list). on mouseUp put "globaldate tmaternalname tmaternalphin tmaternalphin tmaternalmhsc tmaternaldob" & \ "tmaternalage tmaternalpc tmaternaled tmaternalocc tmaternalage tsite tmaternalchart" & \ "tcareprovider1 tcareprovider2 tcareprovider3 tnote" into tColumnWords put "women's" into globaldate put "and she said" && quote & "Hi!" & quote into tmaternalname repeat for each word tCol in tColumnWords --put "[[quote &" & tCol & " & quote]]," after tColItems put "[[' &" & tCol & " & ']]," after tColItems end repeat delete char -1 of tColItems put "Values(" & tColItems & ")" into tStatement put merge(tStatement) end mouseUp I hope that helps. Bernard On Tue, Jan 31, 2012 at 8:22 PM, Mark Smith wrote: > > Peter Haworth-2 wrote >> >> ?If you use single quotes, double quotes don't need to be escaped in the >> literal, and vice versa. ?So, if you're sure that your data won't contain >> double quotes, then you can use double quotes to enclose the literals and >> single quotes won't cause a problem. >> >> Pete >> > > Thanks for the suggestion Pete. I was going to try that but the relevant > code section reads as follows > merge("VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]', > '[[tmaternalmhsc]]', '[[tmaternaldob]]', '[[tmaternalage]]', > '[[tmaternalpc]]', '[[tmaternaled]]'," & \ > ? ? ? ? "'[[tmaternalocc]]', '[[tmaternalage]]', '[[tsite]]', > '[[tmaternalchart]]', '[[tcareprovider1]]', '[[tcareprovider2]]', > '[[tcareprovider3]]', '[[tnote]]')") into tCmd > > Wouldn't replacing the single quotes with double quotes mess up the merge > command (ie. it would not know where the string beings/ends??) Or can you > replace the "outer" quotes with single quotes as well? > > -- Mark > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4345754.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Feb 1 09:09:52 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 01 Feb 2012 16:09:52 +0200 Subject: Squeezed Grapes Message-ID: <4F2947B0.4050003@gmail.com> For those of you who care about this sort of thing: Attempting to install Livecode/RunRev 4.0 for Windows under WINE 1.4 rc-1 gets nowhere. Attempting to install Livecode/RunRev 4/5 - dp 4 under WINE 1.4 re-1 works, but, then Livecode/RunRev does not run. Just in case anybody, other than myself, had a sudden urge to be awkward . . . :) From m.schonewille at economy-x-talk.com Wed Feb 1 09:17:52 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Feb 2012 15:17:52 +0100 Subject: Squeezed Grapes In-Reply-To: <4F2947B0.4050003@gmail.com> References: <4F2947B0.4050003@gmail.com> Message-ID: Richmond, why do you keep trying? We know that it doesn't work. Even if you do get it to work, images won't render. Why don't you just forget about it? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 1 feb 2012, at 15:09, Richmond wrote: > For those of you who care about this sort of thing: > > Attempting to install Livecode/RunRev 4.0 for Windows under WINE 1.4 rc-1 gets nowhere. > > Attempting to install Livecode/RunRev 4/5 - dp 4 under WINE 1.4 re-1 works, > > but, then Livecode/RunRev does not run. > > Just in case anybody, other than myself, had a sudden urge to be awkward . . . :) From richmondmathewson at gmail.com Wed Feb 1 09:18:33 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 01 Feb 2012 16:18:33 +0200 Subject: [OT] Is this an extended joke? Message-ID: <4F2949B9.4000004@gmail.com> I went here: http://revweb.runrev.com/ and read this: "/The Linux edition of the revWeb Plugin is coming soon." and then this: "/Copyright RunRev Ltd 2009 All rights reserved." Oddly enough, rather like a persistent dog, I have been visiting that web-page on a monthly basis for ages and ages. Have I missed something, or is my sense of humour faulty, as I fail to see the joke, and would rather like to deploy some stuff online so that it can be leveraged on various platforms, including Linux. So; a word of advice to the good folks in Edinburgh: Either, get on with things and release a Linux edition of the revWeb Plugin, or, update your website so it doesn't give chaps like me false, albeit dwindling, hope. Richmond. From richmondmathewson at gmail.com Wed Feb 1 09:25:14 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 01 Feb 2012 16:25:14 +0200 Subject: [OT] Is this an extended joke? In-Reply-To: <4F2949B9.4000004@gmail.com> References: <4F2949B9.4000004@gmail.com> Message-ID: <4F294B4A.1040202@gmail.com> Further to the previous message, on visiting here: http://revweb.runrev.com/downloads.php I was able to download something called "LiveCodePlayer-R9" in various flavours which does suggest that they are something rather different from various things called "revWebInstaller" I was able to download a couple of years ago. Are the things termed "LiveCodePlayer-R9" in fact web-plugins, or are the just players for end users to run Livecode stacks with? Certainly if they are the latter it is extremely disingenuous allowing them to be downloaded on a link from the RevWeb Installer page. Grunt, grunt, grunt . . . stomps off in a huff. Richmond. From richmondmathewson at gmail.com Wed Feb 1 09:26:23 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 01 Feb 2012 16:26:23 +0200 Subject: Squeezed Grapes In-Reply-To: References: <4F2947B0.4050003@gmail.com> Message-ID: <4F294B8F.9070608@gmail.com> On 02/01/2012 04:17 PM, Mark Schonewille wrote: > Richmond, why do you keep trying? We know that it doesn't work. Even if you do get it to work, images won't render. Why don't you just forget about it? I'm perfectly prepared to forget about it if RunRev would; however their website is positively misleading. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za > > On 1 feb 2012, at 15:09, Richmond wrote: > >> For those of you who care about this sort of thing: >> >> Attempting to install Livecode/RunRev 4.0 for Windows under WINE 1.4 rc-1 gets nowhere. >> >> Attempting to install Livecode/RunRev 4/5 - dp 4 under WINE 1.4 re-1 works, >> >> but, then Livecode/RunRev does not run. >> >> Just in case anybody, other than myself, had a sudden urge to be awkward . . . :) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Wed Feb 1 09:38:48 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Feb 2012 15:38:48 +0100 Subject: [OT] Is this an extended joke? In-Reply-To: <4F294B4A.1040202@gmail.com> References: <4F2949B9.4000004@gmail.com> <4F294B4A.1040202@gmail.com> Message-ID: Richmond, These installers install the revWeb plugin, which allow a LiveCode app to run in the web browser. They are not that different from regular standalone engines. Inside the installer package for Mac OS Intel (and probably PPC), there is a file called payload. This is a zip file. Unzip it and you'll see a list of everything that is being installed. I agree it is very confusing and I dislike the fact that these installers don't work without an internet connection. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 1 feb 2012, at 15:25, Richmond wrote: > Further to the previous message, on visiting here: http://revweb.runrev.com/downloads.php > I was able to download something called "LiveCodePlayer-R9" in various flavours > > which does suggest that they are something rather different from various things called "revWebInstaller" > I was able to download a couple of years ago. > > Are the things termed "LiveCodePlayer-R9" in fact web-plugins, or are the just players for > end users to run Livecode stacks with? > > Certainly if they are the latter it is extremely disingenuous allowing them to be downloaded on > a link from the RevWeb Installer page. > > Grunt, grunt, grunt . . . stomps off in a huff. > > Richmond. From m.schonewille at economy-x-talk.com Wed Feb 1 09:40:24 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Feb 2012 15:40:24 +0100 Subject: Squeezed Grapes In-Reply-To: <4F294B8F.9070608@gmail.com> References: <4F2947B0.4050003@gmail.com> <4F294B8F.9070608@gmail.com> Message-ID: <258B3DF0-3A41-44F0-9EE4-3B2E6A4F3D4C@economy-x-talk.com> Richmond, I don't agree on this with you. AFAIK RunRev nowhere says that their software works with WINE and WINE says that only specific software is compatible. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 1 feb 2012, at 15:26, Richmond wrote: > On 02/01/2012 04:17 PM, Mark Schonewille wrote: >> Richmond, why do you keep trying? We know that it doesn't work. Even if you do get it to work, images won't render. Why don't you just forget about it? > > I'm perfectly prepared to forget about it if RunRev would; however their website is positively misleading. From richmondmathewson at gmail.com Wed Feb 1 09:52:19 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 01 Feb 2012 16:52:19 +0200 Subject: Squeezed Grapes In-Reply-To: <258B3DF0-3A41-44F0-9EE4-3B2E6A4F3D4C@economy-x-talk.com> References: <4F2947B0.4050003@gmail.com> <4F294B8F.9070608@gmail.com> <258B3DF0-3A41-44F0-9EE4-3B2E6A4F3D4C@economy-x-talk.com> Message-ID: <4F2951A3.4020100@gmail.com> On 02/01/2012 04:40 PM, Mark Schonewille wrote: > Richmond, > > I don't agree on this with you. AFAIK RunRev nowhere says that their software works with WINE and WINE says that only specific software is compatible. I'm sorry, I got my wires crossed: I thought your response to my fooling around with WINE referred to my fooling around with revWeb. I am well aware that Livecode "goes all funny" with WINE (although with WINE 1.3, apart from WINE's lack of proper PNG implementation, Livecode was working); and my posting was NOT intended as a criticism of RunRev (while my posting about revWeb WAS a criticism). What my posting re WINE was was 2-fold: 1. A general observation about compatibility between WINE 1.4 rc-1 and Livecode. 2. A supposition as to whether Windows standalones generated from Livecode would run under WINE 1.4 rc-1. ----------------------------------------------------------------------------------------------------------------------------------------------------- So; to restate: The statement on RunRev's website that a Linux revWeb plugin is on its way is probably a porky. And RunRev had better sort that out, one way or another. Livecode does not do very much under WINE 1.4 rc-1. ----------------------------------------------------------------------------------------------------------------------------------------------------- Now can we "kiss and make up"? > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za > > On 1 feb 2012, at 15:26, Richmond wrote: > >> On 02/01/2012 04:17 PM, Mark Schonewille wrote: >>> Richmond, why do you keep trying? We know that it doesn't work. Even if you do get it to work, images won't render. Why don't you just forget about it? >> I'm perfectly prepared to forget about it if RunRev would; however their website is positively misleading. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ken at kencorey.com Wed Feb 1 10:42:37 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 01 Feb 2012 15:42:37 +0000 Subject: How does a command find out who called it? Message-ID: <4F295D6D.6@kencorey.com> I have some tiny http utility functions I'm using to do a 'get' on an iOS device. Up to now, I've had these functions in the same card as the handlers dealing with that card. Now I want to make them into a library. The problem I'm hvaing is that they are asynchronous: they require a callback. Up to now, it was in the same card, so I didn't have to specify it. Unfortunately, now that the functions are in a separate stack being used as a library, I need to know the name of the calling card, so I can know the context in which to do the callback. Right now my httpGet looks like this: httpGet "http://blah.com/testing.html?a=1&b=2","myCallback" The code returns immediately, and when the answer comes back, nyCallback is called with the result. However, my library dies because there's no callback with the given name in it. It's in the original calling card. I'd rather not change the API if I could get away with it... Anyone know how to find out who called a given command? -Ken From scott at tactilemedia.com Wed Feb 1 10:47:13 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 01 Feb 2012 07:47:13 -0800 Subject: RevBrowser -> IE Security Warning Workaround? Message-ID: Hi List: I'm trying to workaround a RevBrowser problem that has me stumped -- specifically, IE's refusal to run HTML that contains Javascript without throwing up an ActiveX security warning. Hoping someone has a creative solution... I have a LiveCode stack based on RevBrowser that uses HTML/Javascript to pass login credentials to a site so the site can be displayed in the stack in RevBrowser. The stack works fine on Mac, but fails on Windows, apparently because of IE's ActiveX warning when running anything it considers a threat. In a test EXE, I've tried setting the UAC Execution Level in the standalone builder to ?Highest Available? and ?Require Administrator? -- neither option works, both of these seem to hang. And I'm sure the HTML works because a test page loads correctly in Firefox, Safari, and Chrome. IE is the only one with the ActiveX warning. Sadly, RevBrowser is based on IE. So anybody have a suggestion on how I can keep IE/RevBrowser happy while running code that contains Javascript? Thanks for any suggestions. Regards, Scott Rossi Creative Director Tactile Media, UX Design From m.schonewille at economy-x-talk.com Wed Feb 1 11:04:13 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Feb 2012 17:04:13 +0100 Subject: How does a command find out who called it? In-Reply-To: <4F295D6D.6@kencorey.com> References: <4F295D6D.6@kencorey.com> Message-ID: <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> Hi Ken, Use this syntax: send "someCallback" to the target in 0 millisecs -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 1 feb 2012, at 16:42, Ken Corey wrote: > I have some tiny http utility functions I'm using to do a 'get' on an iOS device. > > Up to now, I've had these functions in the same card as the handlers dealing with that card. Now I want to make them into a library. > > The problem I'm hvaing is that they are asynchronous: they require a callback. > > Up to now, it was in the same card, so I didn't have to specify it. > > Unfortunately, now that the functions are in a separate stack being used as a library, I need to know the name of the calling card, so I can know the context in which to do the callback. > > Right now my httpGet looks like this: > > httpGet "http://blah.com/testing.html?a=1&b=2","myCallback" > > The code returns immediately, and when the answer comes back, nyCallback is called with the result. > > However, my library dies because there's no callback with the given name in it. It's in the original calling card. > > I'd rather not change the API if I could get away with it... > > Anyone know how to find out who called a given command? > > -Ken From roger.e.eller at sealedair.com Wed Feb 1 11:10:03 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 1 Feb 2012 11:10:03 -0500 Subject: RevBrowser -> IE Security Warning Workaround? In-Reply-To: References: Message-ID: On Wed, Feb 1, 2012 at 10:47 AM, Scott Rossi wrote: > Hi List: > > I'm trying to workaround a RevBrowser problem that has me stumped -- > specifically, IE's refusal to run HTML that contains Javascript without > throwing up an ActiveX security warning. Hoping someone has a creative > solution... > > I have a LiveCode stack based on RevBrowser that uses HTML/Javascript to > pass login credentials to a site so the site can be displayed in the stack > in RevBrowser. The stack works fine on Mac, but fails on Windows, > apparently because of IE's ActiveX warning when running anything it > considers a threat. > > In a test EXE, I've tried setting the UAC Execution Level in the standalone > builder to ?Highest Available? and ?Require Administrator? -- neither > option > works, both of these seem to hang. And I'm sure the HTML works because a > test page loads correctly in Firefox, Safari, and Chrome. IE is the only > one with the ActiveX warning. Sadly, RevBrowser is based on IE. > > So anybody have a suggestion on how I can keep IE/RevBrowser happy while > running code that contains Javascript? > > Thanks for any suggestions. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > http://support.microsoft.com/gp/howtoscript ~Roger From ken at kencorey.com Wed Feb 1 11:28:43 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 01 Feb 2012 16:28:43 +0000 Subject: How does a command find out who called it? In-Reply-To: <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> Message-ID: <4F29683B.2030300@kencorey.com> On 01/02/2012 16:04, Mark Schonewille wrote: > send "someCallback" to the target in 0 millisecs Thanks, Mark, but I need the call from the other direction... Let's say I have a card "testing" in stack "wild". The stack script says: on openCard start using "minihttp.livecode" end openCard The card script says: on someHandler ... httpGet "http://blah.com","myCallback" end someHandler on myCallback ... -- do someting brilliant with the data we've requested end myCallback Finally, I have a stack called "minihttp.livecode". The stack script looks like: on httpGet pUrl,pCallback -- save the callback put pCallback into gMCB -- kick off asynchronous httpGet operations with a local callback mysocketOpen "address","mySocketCallback" -- now return end httpGet on mySocketCallback args -- Yay! Finally have the data. Hand it back send gMCB to XXX in 0 milliseconds end mySocketCallback The question is: How do I know what "XXX" is in the mySocketCallback? If there were a way in httpGet to say: put the name of my caller into gDataTarget Then in mySocketCallback I could just say: send gMCB to gDataTarget in 0 milliseconds See what I'm going for here? Is there a way to get this information in Livecode? -Ken From m.schonewille at economy-x-talk.com Wed Feb 1 11:49:10 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Feb 2012 17:49:10 +0100 Subject: How does a command find out who called it? In-Reply-To: <4F29683B.2030300@kencorey.com> References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> Message-ID: <7414E4F0-FF35-4A0D-A973-BA8041A76ADF@economy-x-talk.com> Hi Ken, You could use a different callback message for each control or include the id of the target in the data sent to the server and make the server return the id together with other data. I think that using a different callback for control is the easiest approach. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 1 feb 2012, at 17:28, Ken Corey wrote: > On 01/02/2012 16:04, Mark Schonewille wrote: >> send "someCallback" to the target in 0 millisecs > > Thanks, Mark, but I need the call from the other direction... > > Let's say I have a card "testing" in stack "wild". > The stack script says: > on openCard > start using "minihttp.livecode" > end openCard > > The card script says: > > on someHandler ... > httpGet "http://blah.com","myCallback" > end someHandler > > on myCallback ... > -- do someting brilliant with the data we've requested > end myCallback > > > Finally, I have a stack called "minihttp.livecode". > The stack script looks like: > > on httpGet pUrl,pCallback > -- save the callback > put pCallback into gMCB > -- kick off asynchronous httpGet operations with a local callback > mysocketOpen "address","mySocketCallback" > -- now return > end httpGet > > on mySocketCallback args > -- Yay! Finally have the data. Hand it back > send gMCB to XXX in 0 milliseconds > end mySocketCallback > > > The question is: How do I know what "XXX" is in the mySocketCallback? > > If there were a way in httpGet to say: > put the name of my caller into gDataTarget > > Then in mySocketCallback I could just say: > send gMCB to gDataTarget in 0 milliseconds > > > > See what I'm going for here? Is there a way to get this information in Livecode? > > -Ken From kkaufman at snet.net Wed Feb 1 11:54:24 2012 From: kkaufman at snet.net (Kurt Kaufman) Date: Wed, 1 Feb 2012 11:54:24 -0500 Subject: LiveCode to the rescue (once again) Message-ID: Had a call from a doctor who recently switched medical billers. Seems her new biller used software that did not display all of the fields in the caret-delimited text files ("iPlexus") that were sent as batched bills. It took just a few hours (and would have taken some on the list here far less time) to whip up a one-trick-pony application to pull the bills that contained data in those missing fields, format and display, and enable printing of the data. Since I hadn't used LiveCode in a while, I initially made the mistake that I'm sure I've made before: confusing the data to be incremented with the counters that control the looping. Fortunately, the LC editor let me know immediately by indicating that the types on each side of the operand did not match (can't add a number to a variable holding a string!). Anyway, it's another instance of LC being used to quickly provide a solution. -KK From richmondmathewson at gmail.com Wed Feb 1 12:08:53 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 01 Feb 2012 19:08:53 +0200 Subject: LiveCode to the rescue (once again) In-Reply-To: References: Message-ID: <4F2971A5.50705@gmail.com> On 02/01/2012 06:54 PM, Kurt Kaufman wrote: > Had a call from a doctor who recently switched medical billers. Seems her new biller used software that did not display all of the fields in the caret-delimited text files ("iPlexus") that were sent as batched bills. It took just a few hours (and would have taken some on the list here far less time) to whip up a one-trick-pony application to pull the bills that contained data in those missing fields, format and display, and enable printing of the data. > > Since I hadn't used LiveCode in a while, I initially made the mistake that I'm sure I've made before: confusing the data to be incremented with the counters that control the looping. Fortunately, the LC editor let me know immediately by indicating that the types on each side of the operand did not match (can't add a number to a variable holding a string!). > > Anyway, it's another instance of LC being used to quickly provide a solution. > > -KK > _______________________________________________ > Luckily, here in Bulgaria, as well as in Britain, we never have to face medical bills as we have socialised medicine; very civilised. From kkaufman at snet.net Wed Feb 1 12:21:39 2012 From: kkaufman at snet.net (Kurt Kaufman) Date: Wed, 1 Feb 2012 12:21:39 -0500 Subject: LiveCode to the rescue (once again) Message-ID: "Luckily, here in Bulgaria, as well as in Britain, we never have to face medical bills as we have socialised medicine; very civilised." Having lived in Belgium, in general I can vouch for the civility of the socialized medical system. However, I believe that physicians there still have to send records of their procedures, etc. to the central medical database. Whatever happens in the US, the current system will have to change, as it is inefficient and wasteful. KK From bobs at twft.com Wed Feb 1 12:44:18 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 1 Feb 2012 09:44:18 -0800 Subject: LiveCode to the rescue (once again) In-Reply-To: References: Message-ID: So is every social system we have created so far. If you want to see inefficient and wasteful, send yet more trillions of dollars to our federal government. But we are not supposed to be talking about this on this list right? :-) Bob On Feb 1, 2012, at 9:21 AM, Kurt Kaufman wrote: > Whatever happens in the US, the current system will have to change, as it is inefficient and wasteful. From bobs at twft.com Wed Feb 1 12:48:49 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 1 Feb 2012 09:48:49 -0800 Subject: Compiled app using a LOT of processing power Message-ID: <1FDFA73F-5D88-4792-B301-923C0D795A8C@twft.com> Hi all. You may vaguely remember a thread about using a standalone as a kind of ad hoc animated dialog using Applescript commands? Well as it turns out that app while running is using 16% to 18% of my processor just sitting there with it's stack hidden! The only thing happening is the animated gif is spinning. Do animated gif's really use that much processor power?? Is there a way to start and stop the animation? If not, I suppose I can just have the app quit when not in use. Bob From bvg at mac.com Wed Feb 1 12:54:14 2012 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 01 Feb 2012 18:54:14 +0100 Subject: Compiled app using a LOT of processing power In-Reply-To: <1FDFA73F-5D88-4792-B301-923C0D795A8C@twft.com> References: <1FDFA73F-5D88-4792-B301-923C0D795A8C@twft.com> Message-ID: <1F280005-3D73-4E1A-91C4-244102D5E86D@mac.com> GIFs don't, but LC does when you have them, or the mac os x default button visible. You can create animated images by setting the icon of a button in a loop to each frame, it's more code, but takes up almost no cpu when done right. On 01.02.2012, at 18:48, Bob Sneidar wrote: > Hi all. > > You may vaguely remember a thread about using a standalone as a kind of ad hoc animated dialog using Applescript commands? Well as it turns out that app while running is using 16% to 18% of my processor just sitting there with it's stack hidden! The only thing happening is the animated gif is spinning. Do animated gif's really use that much processor power?? Is there a way to start and stop the animation? If not, I suppose I can just have the app quit when not in use. > > Bob > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kkaufman at snet.net Wed Feb 1 12:55:10 2012 From: kkaufman at snet.net (Kurt Kaufman) Date: Wed, 1 Feb 2012 12:55:10 -0500 Subject: LiveCode to the rescue (once again) Message-ID: <1C82F84D-A62F-42B6-8CD4-1CD3ED151146@snet.net> "...But we are not supposed to be talking about this on this list right? :-)" Yes; I humbly request that we end this discussion of the relative merits of medical systems forthwith. To help ensure list efficiency, back to LiveCode, please. KK From scott at tactilemedia.com Wed Feb 1 12:56:19 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 01 Feb 2012 09:56:19 -0800 Subject: Compiled app using a LOT of processing power In-Reply-To: <1FDFA73F-5D88-4792-B301-923C0D795A8C@twft.com> Message-ID: I'm pretty sure hiding an animated GIF should prevent processor use, but if it doesn't, you can set the repeatCount property of the GIF image to 0. Don't know if this will solve your processor use issue though... Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Bob Sneidar wrote: > Hi all. > > You may vaguely remember a thread about using a standalone as a kind of ad hoc > animated dialog using Applescript commands? Well as it turns out that app > while running is using 16% to 18% of my processor just sitting there with it's > stack hidden! The only thing happening is the animated gif is spinning. Do > animated gif's really use that much processor power?? Is there a way to start > and stop the animation? If not, I suppose I can just have the app quit when > not in use. > > Bob > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From janschenkel at yahoo.com Wed Feb 1 12:57:30 2012 From: janschenkel at yahoo.com (Jan Schenkel) Date: Wed, 1 Feb 2012 09:57:30 -0800 (PST) Subject: Compiled app using a LOT of processing power In-Reply-To: <1FDFA73F-5D88-4792-B301-923C0D795A8C@twft.com> References: <1FDFA73F-5D88-4792-B301-923C0D795A8C@twft.com> Message-ID: <1328119050.73544.YahooMailNeo@web65408.mail.ac4.yahoo.com> Hi Bob, There's a property for that :-) set the repeatCount of image "SpinningImage" to 0 -- stop looping HTH, Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) ________________________________ From: Bob Sneidar To: How to use LiveCode Sent: Wednesday, February 1, 2012 6:48 PM Subject: Compiled app using a LOT of processing power Hi all. You may vaguely remember a thread about using a standalone as a kind of ad hoc animated dialog using Applescript commands? Well as it turns out that app while running is using 16% to 18% of my processor just sitting there with it's stack hidden! The only thing happening is the animated gif is spinning. Do animated gif's really use that much processor power?? Is there a way to start and stop the animation? If not, I suppose I can just have the app quit when not in use. Bob _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Wed Feb 1 13:06:47 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 1 Feb 2012 10:06:47 -0800 Subject: The Fill color of a group Message-ID: How do you set the fill (or perhaps background is a better term) color of a group? I tried the all the options available in the Colors tab of the inspector palette but they didn't have any effect. Thanks, -- Pete Molly's Revenge From cbodell at live.com Wed Feb 1 13:28:28 2012 From: cbodell at live.com (Christopher Bodell) Date: Wed, 1 Feb 2012 13:28:28 -0500 Subject: The Fill color of a group In-Reply-To: References: Message-ID: Set the opaque property to true to make the color visible. > From: pete at mollysrevenge.com > Date: Wed, 1 Feb 2012 10:06:47 -0800 > Subject: The Fill color of a group > To: use-livecode at lists.runrev.com > > How do you set the fill (or perhaps background is a better term) color of a > group? I tried the all the options available in the Colors tab of the > inspector palette but they didn't have any effect. > Thanks, > > -- > Pete > Molly's Revenge > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revmaillist at positivme.com Wed Feb 1 13:32:18 2012 From: revmaillist at positivme.com (Thunder) Date: Wed, 1 Feb 2012 10:32:18 -0800 (PST) Subject: The Fill color of a group In-Reply-To: References: Message-ID: <1328121138894-4348896.post@n4.nabble.com> I think you must first set the Opaque then change the color of the group -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/The-Fill-color-of-a-group-tp4348801p4348896.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Wed Feb 1 13:43:14 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 1 Feb 2012 10:43:14 -0800 Subject: The Fill color of a group In-Reply-To: <1328121138894-4348896.post@n4.nabble.com> References: <1328121138894-4348896.post@n4.nabble.com> Message-ID: Thanks guys, got it. On Wed, Feb 1, 2012 at 10:32 AM, Thunder wrote: > I think you must first set the Opaque then change the color of the group > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/The-Fill-color-of-a-group-tp4348801p4348896.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- Pete Molly's Revenge From pete at mollysrevenge.com Wed Feb 1 13:43:14 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 1 Feb 2012 10:43:14 -0800 Subject: The Fill color of a group In-Reply-To: <1328121138894-4348896.post@n4.nabble.com> References: <1328121138894-4348896.post@n4.nabble.com> Message-ID: Thanks guys, got it. On Wed, Feb 1, 2012 at 10:32 AM, Thunder wrote: > I think you must first set the Opaque then change the color of the group > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/The-Fill-color-of-a-group-tp4348801p4348896.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- Pete Molly's Revenge From kray at sonsothunder.com Wed Feb 1 13:54:59 2012 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 1 Feb 2012 12:54:59 -0600 Subject: How does a command find out who called it? In-Reply-To: <4F29683B.2030300@kencorey.com> References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> Message-ID: > > The question is: How do I know what "XXX" is in the mySocketCallback? You can check "the executionContexts" form inside your mySocketCallback handler - it's full of info about the order of execution from the user's last event to the place where you ask for it, but you can parse it to get out what you're looking for... Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Wed Feb 1 14:00:33 2012 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 1 Feb 2012 13:00:33 -0600 Subject: Intelligent Save Dialogue? In-Reply-To: <26314542-7C5B-4710-9ADC-A49DDFE81AD3@saywardvalley.net> References: <26314542-7C5B-4710-9ADC-A49DDFE81AD3@saywardvalley.net> Message-ID: <51C2553B-FD40-44D6-B276-796173E836CD@sonsothunder.com> > The problem here is that, as far as I know LiveCode can only react to the Save or Cancel button being pressed within the dialogue box, so my question for the list is: > > Does anybody know of a way to achieve an 'intelligent' save dialogue without building a new one from scratch? or has anybody built one that they are willing to share? Well you can't "hack" into the OS-provided Save dialog, so it's either build a replacement one from scratch, or use a workaround, which is basically: - Bring up a save dialog - Check for an extension - If there isn't one, add one - If it's incorrect, alert the user - If you had to add or correct the extension, check for an existing file with that name - If there is one, display a dialog asking if they want to replace (hopefully mimicking the host OS as best as you can) - Save or Cancel (based on user choice). Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From bobs at twft.com Wed Feb 1 14:05:21 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 1 Feb 2012 11:05:21 -0800 Subject: Compiled app using a LOT of processing power In-Reply-To: References: Message-ID: Thanks Scott and Jan! How easy! Bob On Feb 1, 2012, at 9:56 AM, Scott Rossi wrote: > I'm pretty sure hiding an animated GIF should prevent processor use, but if > it doesn't, you can set the repeatCount property of the GIF image to 0. > Don't know if this will solve your processor use issue though... > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > Recently, Bob Sneidar wrote: > >> Hi all. >> >> You may vaguely remember a thread about using a standalone as a kind of ad hoc >> animated dialog using Applescript commands? Well as it turns out that app >> while running is using 16% to 18% of my processor just sitting there with it's >> stack hidden! The only thing happening is the animated gif is spinning. Do >> animated gif's really use that much processor power?? Is there a way to start >> and stop the animation? If not, I suppose I can just have the app quit when >> not in use. >> >> Bob >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Wed Feb 1 14:20:19 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 1 Feb 2012 11:20:19 -0800 Subject: Compiled app using a LOT of processing power In-Reply-To: References: Message-ID: Worked a peach. I was hiding the entire stack actually. Setting the repeatCount works fine. I am now using 0.00% processor while my app is "idling". I am so tempted to really enhance that "Spinner" app as it would make a great altDialog that works like a second threaded app. The concept could be extended to a great many things, like a database agent or a multiuser development engine. Hmmm... Bob > Thanks Scott and Jan! How easy! > > Bob > > > On Feb 1, 2012, at 9:56 AM, Scott Rossi wrote: > >> I'm pretty sure hiding an animated GIF should prevent processor use, but if >> it doesn't, you can set the repeatCount property of the GIF image to 0. >> Don't know if this will solve your processor use issue though... >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX Design >> >> >> >> Recently, Bob Sneidar wrote: >> >>> Hi all. >>> >>> You may vaguely remember a thread about using a standalone as a kind of ad hoc >>> animated dialog using Applescript commands? Well as it turns out that app >>> while running is using 16% to 18% of my processor just sitting there with it's >>> stack hidden! The only thing happening is the animated gif is spinning. Do >>> animated gif's really use that much processor power?? Is there a way to start >>> and stop the animation? If not, I suppose I can just have the app quit when >>> not in use. From m.schonewille at economy-x-talk.com Wed Feb 1 14:20:34 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Feb 2012 20:20:34 +0100 Subject: How does a command find out who called it? In-Reply-To: References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> Message-ID: Hi Ken, Are you sure that callback messages and messages invoked by send commands have an execution context that's longer than 1 line? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 1 feb 2012, at 19:54, Ken Ray wrote: >> >> The question is: How do I know what "XXX" is in the mySocketCallback? > > You can check "the executionContexts" form inside your mySocketCallback handler - it's full of info about the order of execution from the user's last event to the place where you ask for it, but you can parse it to get out what you're looking for... > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ From scott at tactilemedia.com Wed Feb 1 14:23:18 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 01 Feb 2012 11:23:18 -0800 Subject: RevBrowser -> IE Security Warning Workaround? In-Reply-To: Message-ID: Recently, I wrote: >> I'm trying to workaround a RevBrowser problem that has me stumped -- >> specifically, IE's refusal to run HTML that contains Javascript without >> throwing up an ActiveX security warning. Roger Eller responded: > http://support.microsoft.com/gp/howtoscript Unfortunately, the app I'm building is for distribution, so requiring that every user manually change their browser security settings is asking a bit much. ---------- After a bit of Googling, I found one odd workaround: Mark of the Web ( http://msdn.microsoft.com/en-us/library/ms537628.aspx) This is placed above the tag in the page code: Seems to work so far. Regards, Scott Rossi Creative Director Tactile Media, UX Design From kray at sonsothunder.com Wed Feb 1 14:33:36 2012 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 1 Feb 2012 13:33:36 -0600 Subject: How does a command find out who called it? In-Reply-To: References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> Message-ID: On Feb 1, 2012, at 1:20 PM, Mark Schonewille wrote: > Hi Ken, > > Are you sure that callback messages and messages invoked by send commands have an execution context that's longer than 1 line? Well, it depends on where the executionContexts are requested; suppose you have button 1 send a message to button 2, but that is not trapped by button 2 but falls through to the card script. If the card script asks for the executionContexts, you'll get two lines - the first line being the long id of button 1, and the second being the long id of the card that had the handler that asked for the executionContexts. I guess it all depends on how the callbacks are being handled from "httpGet" and "mySocketOpen" in this case? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From m.schonewille at economy-x-talk.com Wed Feb 1 14:40:54 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Feb 2012 20:40:54 +0100 Subject: How does a command find out who called it? In-Reply-To: References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> Message-ID: Ken, To quickly simulate a callback message, I made a button with the script on mouseUp send "bla" to me in 0 secs end mouseUp and a stack script on bla put the executioncontexts end bla All I get in the message box is one line, referring to the stack. I don't think your approach works for Ken Corey. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 1 feb 2012, at 20:33, Ken Ray wrote: > > On Feb 1, 2012, at 1:20 PM, Mark Schonewille wrote: > >> Hi Ken, >> >> Are you sure that callback messages and messages invoked by send commands have an execution context that's longer than 1 line? > > Well, it depends on where the executionContexts are requested; suppose you have button 1 send a message to button 2, but that is not trapped by button 2 but falls through to the card script. If the card script asks for the executionContexts, you'll get two lines - the first line being the long id of button 1, and the second being the long id of the card that had the handler that asked for the executionContexts. > > I guess it all depends on how the callbacks are being handled from "httpGet" and "mySocketOpen" in this case? > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ From lc at pbh.on-rev.com Wed Feb 1 14:47:43 2012 From: lc at pbh.on-rev.com (lc at pbh.on-rev.com) Date: Wed, 1 Feb 2012 19:47:43 +0000 Subject: Intelligent Save Dialogue? In-Reply-To: <51C2553B-FD40-44D6-B276-796173E836CD@sonsothunder.com> References: <26314542-7C5B-4710-9ADC-A49DDFE81AD3@saywardvalley.net> <51C2553B-FD40-44D6-B276-796173E836CD@sonsothunder.com> Message-ID: Ken, Thank you for the reply and confirmation, definitely appreciated. Your 'workaround' is pretty much how I had set up the save routine and I was pretty confident that it was foolproof enough to avoid saving a file with the wrong/no extension, or worse, overwriting a file with the wrong extension, but it seems some users now expect even simple apps to be as polished as the likes of Adobe products. I guess my simple app will have to disappoint a few while I work on a new Save Dialogue - could be a useful resource for the future too. Paul P.S. A big Thank You for putting up all the useful info on your site too. On 1 Feb 2012, at 19:00, Ken Ray wrote: >> The problem here is that, as far as I know LiveCode can only react to the Save or Cancel button being pressed within the dialogue box, so my question for the list is: >> >> Does anybody know of a way to achieve an 'intelligent' save dialogue without building a new one from scratch? or has anybody built one that they are willing to share? > > Well you can't "hack" into the OS-provided Save dialog, so it's either build a replacement one from scratch, or use a workaround, which is basically: > > - Bring up a save dialog > - Check for an extension > - If there isn't one, add one > - If it's incorrect, alert the user > - If you had to add or correct the extension, check for an existing file with that name > - If there is one, display a dialog asking if they want to replace (hopefully mimicking the host OS as best as you can) > - Save or Cancel (based on user choice). > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Wed Feb 1 16:03:17 2012 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 1 Feb 2012 15:03:17 -0600 Subject: How does a command find out who called it? In-Reply-To: References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> Message-ID: > on mouseUp > send "bla" to me in 0 secs > end mouseUp > > and a stack script > > on bla > put the executioncontexts > end bla > > All I get in the message box is one line, referring to the stack. I don't think your approach works for Ken Corey. Take away the "in 0 secs" and it should work fine (I get two lines, one referring to the button that issued the 'send' and the other referring to the stack). I'm guessing the "send in time" aspect messes with the executionContexts? BTW: Why would you send something in 0 secs? Just curious? if you want it to be processed right away, why not just "send" it? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From ken at kencorey.com Wed Feb 1 16:09:52 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 01 Feb 2012 21:09:52 +0000 Subject: How does a command find out who called it? In-Reply-To: References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> Message-ID: <4F29AA20.30909@kencorey.com> On 01/02/2012 21:03, Ken Ray wrote: > Take away the "in 0 secs" and it should work fine (I get two lines, one referring to the button that issued the 'send' and the other referring to the stack). I'm guessing the "send in time" aspect messes with the executionContexts? > > BTW: Why would you send something in 0 secs? Just curious? if you want it to be processed right away, why not just "send" it? > If you just do a 'send "blah"' it happens right then before the rest of the handler. Whereas if you 'send "blah" in 0 seconds', it only runs once this handler is finished. A minor detail, but a potential biteme. My library is being called from a script, not from a send, so there's definitely plenty of breadcrumbs in the executionContext to find my way back. Thanks guys! -Ken From kray at sonsothunder.com Wed Feb 1 16:28:34 2012 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 1 Feb 2012 15:28:34 -0600 Subject: How does a command find out who called it? In-Reply-To: <4F29AA20.30909@kencorey.com> References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> <4F29AA20.30909@kencorey.com> Message-ID: <0674D3A4-87F2-4183-B2EA-3484EB31F617@sonsothunder.com> On Feb 1, 2012, at 3:09 PM, Ken Corey wrote: > On 01/02/2012 21:03, Ken Ray wrote: >> Take away the "in 0 secs" and it should work fine (I get two lines, one referring to the button that issued the 'send' and the other referring to the stack). I'm guessing the "send in time" aspect messes with the executionContexts? >> >> BTW: Why would you send something in 0 secs? Just curious? if you want it to be processed right away, why not just "send" it? >> > > If you just do a 'send "blah"' it happens right then before the rest of the handler. Whereas if you 'send "blah" in 0 seconds', it only runs once this handler is finished. A minor detail, but a potential biteme. Really? Does it matter how long it takes the handler to complete execution? That is, if the rest of the handler after the "send" takes 10 seconds to execute, will LC wait all 10 seconds to get to the end of the handler before it sends the message? Just curious... Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From rdimola at evergreeninfo.net Wed Feb 1 16:30:21 2012 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 1 Feb 2012 16:30:21 -0500 Subject: How does a command find out who called it? In-Reply-To: <4F29AA20.30909@kencorey.com> References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> <4F29AA20.30909@kencorey.com> Message-ID: <001101cce128$b42cd440$1c867cc0$@net> Ken, Thank you for that little tidbit!!!!!! I was going crazy debugging and try to figure out the message path in these cases. I wanted the message to fire off after the handler finished. It bit me for sure. You just made my day! THANK YOU AGAIN Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Ken Corey Sent: Wednesday, February 01, 2012 4:10 PM To: use-livecode at lists.runrev.com Subject: Re: How does a command find out who called it? On 01/02/2012 21:03, Ken Ray wrote: > Take away the "in 0 secs" and it should work fine (I get two lines, one referring to the button that issued the 'send' and the other referring to the stack). I'm guessing the "send in time" aspect messes with the executionContexts. > > BTW: Why would you send something in 0 secs? Just curious. if you want it to be processed right away, why not just "send" it? > If you just do a 'send "blah"' it happens right then before the rest of the handler. Whereas if you 'send "blah" in 0 seconds', it only runs once this handler is finished. A minor detail, but a potential biteme. My library is being called from a script, not from a send, so there's definitely plenty of breadcrumbs in the executionContext to find my way back. Thanks guys! -Ken _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Wed Feb 1 16:31:18 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Feb 2012 22:31:18 +0100 Subject: How does a command find out who called it? In-Reply-To: References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> Message-ID: <34DE1023-D80F-4BB8-9D0A-A85723DCA7A7@economy-x-talk.com> Ken, Without the send in time, it wouldn't simulate a callback message. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 1 feb 2012, at 22:03, Ken Ray wrote: > > Take away the "in 0 secs" and it should work fine (I get two lines, one referring to the button that issued the 'send' and the other referring to the stack). I'm guessing the "send in time" aspect messes with the executionContexts? > > BTW: Why would you send something in 0 secs? Just curious? if you want it to be processed right away, why not just "send" it? From bobs at twft.com Wed Feb 1 16:39:07 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 1 Feb 2012 13:39:07 -0800 Subject: Intelligent Save Dialogue? In-Reply-To: References: <26314542-7C5B-4710-9ADC-A49DDFE81AD3@saywardvalley.net> <51C2553B-FD40-44D6-B276-796173E836CD@sonsothunder.com> Message-ID: <4EBA28BA-4932-48A8-89F8-D80C0CA10925@twft.com> If Adobe has a different dialog, then I think they also "rolled their own". Bob On Feb 1, 2012, at 11:47 AM, lc at pbh.on-rev.com wrote: > Ken, > > Thank you for the reply and confirmation, definitely appreciated. > > Your 'workaround' is pretty much how I had set up the save routine and I was pretty confident that it was foolproof enough to avoid saving a file with the wrong/no extension, or worse, overwriting a file with the wrong extension, but it seems some users now expect even simple apps to be as polished as the likes of Adobe products. I guess my simple app will have to disappoint a few while I work on a new Save Dialogue - could be a useful resource for the future too. > > Paul > > P.S. A big Thank You for putting up all the useful info on your site too. > > On 1 Feb 2012, at 19:00, Ken Ray wrote: > >>> The problem here is that, as far as I know LiveCode can only react to the Save or Cancel button being pressed within the dialogue box, so my question for the list is: >>> >>> Does anybody know of a way to achieve an 'intelligent' save dialogue without building a new one from scratch? or has anybody built one that they are willing to share? >> >> Well you can't "hack" into the OS-provided Save dialog, so it's either build a replacement one from scratch, or use a workaround, which is basically: >> >> - Bring up a save dialog >> - Check for an extension >> - If there isn't one, add one >> - If it's incorrect, alert the user >> - If you had to add or correct the extension, check for an existing file with that name >> - If there is one, display a dialog asking if they want to replace (hopefully mimicking the host OS as best as you can) >> - Save or Cancel (based on user choice). >> >> Ken Ray >> Sons of Thunder Software, Inc. >> Email: kray at sonsothunder.com >> Web Site: http://www.sonsothunder.com/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Wed Feb 1 16:41:46 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 1 Feb 2012 13:41:46 -0800 Subject: How does a command find out who called it? In-Reply-To: References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> Message-ID: <802E3A39-605C-4C24-BBB4-BB6253482A44@twft.com> In this context it would not matter, but in another context, where you wanted the send command executed after all current scripts terminate, that would be the way to do it. Even if you said, "in 1 second", if the current running script took 3 seconds to terminate, the send command would execute 3 seconds later. Forgive me if you already knew this. Bob On Feb 1, 2012, at 1:03 PM, Ken Ray wrote: >> on mouseUp >> send "bla" to me in 0 secs >> end mouseUp >> >> and a stack script >> >> on bla >> put the executioncontexts >> end bla >> >> All I get in the message box is one line, referring to the stack. I don't think your approach works for Ken Corey. > > Take away the "in 0 secs" and it should work fine (I get two lines, one referring to the button that issued the 'send' and the other referring to the stack). I'm guessing the "send in time" aspect messes with the executionContexts? > > BTW: Why would you send something in 0 secs? Just curious? if you want it to be processed right away, why not just "send" it? > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ken at kencorey.com Wed Feb 1 16:41:53 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 01 Feb 2012 21:41:53 +0000 Subject: How does a command find out who called it? In-Reply-To: <0674D3A4-87F2-4183-B2EA-3484EB31F617@sonsothunder.com> References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> <4F29AA20.30909@kencorey.com> <0674D3A4-87F2-4183-B2EA-3484EB31F617@sonsothunder.com> Message-ID: <4F29B1A1.5030507@kencorey.com> On 01/02/2012 21:28, Ken Ray wrote: > Really? Does it matter how long it takes the handler to complete execution? That is, if the rest of the handler after the "send" takes 10 seconds to execute, will LC wait all 10 seconds to get to the end of the handler before it sends the message? > > Just curious... Completely depends on your code and the order in which the handler needs information. Just as a (completely contrived) f'rinstance, what if the code looked like this: local foo on finishUp send "saveMe" to card id 1002 delete variable foo end finishUp on saveMe put foo into URL "file:/tmp/saved.txt" end saveMe In that case, if you added the " in 0 milliseconds" you'd be out of luck, as the variable "foo" would be gone. It wouldn't cause an error, as saveMe would assume "foo" to be the local variable defined at the top (or if it didn't exist it would be created (and empty)). -Ken From ken at kencorey.com Wed Feb 1 16:43:29 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 01 Feb 2012 21:43:29 +0000 Subject: How does a command find out who called it? In-Reply-To: <001101cce128$b42cd440$1c867cc0$@net> References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> <4F29AA20.30909@kencorey.com> <001101cce128$b42cd440$1c867cc0$@net> Message-ID: <4F29B201.1010405@kencorey.com> On 01/02/2012 21:30, Ralph DiMola wrote: > Thank you for that little tidbit!!!!!! I was going crazy debugging and try > to figure out the message path in these cases. I wanted the message to fire > off after the handler finished. It bit me for sure. You just made my day! *smile* Fantastic! The easiest problems are the ones you just sorta knock over as you are "bull-in-a-china-shop"-ing. -Ken From bornstein at designeq.com Wed Feb 1 16:54:10 2012 From: bornstein at designeq.com (Howard Bornstein) Date: Wed, 1 Feb 2012 13:54:10 -0800 Subject: formattedHeight and scrollbars In-Reply-To: <1297899468673-3309965.post@n4.nabble.com> References: <4D5C3B93.5060106@dreischer.de> <1297899468673-3309965.post@n4.nabble.com> Message-ID: Hi, I was having some issues with formattedTextHeight and came across this post. I looked at your revlet and it suggested some things that solved my problem. Thank you for that! I wondered if you would be willing to send me the LC stack you made this revlet from. It would be very useful to have as a reference when I run into these kinds of problems again (and when I'm not online). Thanks in advance. -- Regards, Howard Bornstein ----------------------- www.designeq.com On Wed, Feb 16, 2011 at 3:37 PM, BNig wrote: > > Hi Claus, > > I made a little revlet that shows what impacts the formattedHeight of a > field: > > http://berndniggemann.on-rev.com/marginsrevlet/ > > among other things the scrollbars and their size furthermor the margins, > the > borderwith the textsize and the textheight. I hope I did not forget > anything. Before 4.5 on a Mac the focusborder also added to the > formattedHeight if I remember correctly. > > Kind regards > > Bernd > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/formattedHeight-and-scrollbars-tp3309720p3309965.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bornstein at designeq.com Wed Feb 1 16:54:52 2012 From: bornstein at designeq.com (Howard Bornstein) Date: Wed, 1 Feb 2012 13:54:52 -0800 Subject: formattedHeight and scrollbars In-Reply-To: References: <4D5C3B93.5060106@dreischer.de> <1297899468673-3309965.post@n4.nabble.com> Message-ID: oops, sorry, that was meant to be a private email. On Wed, Feb 1, 2012 at 1:54 PM, Howard Bornstein wrote: > Hi, > > I was having some issues with formattedTextHeight and came across this > post. I looked at your revlet and it suggested some things that solved my > problem. Thank you for that! > > I wondered if you would be willing to send me the LC stack you made this > revlet from. It would be very useful to have as a reference when I run into > these kinds of problems again (and when I'm not online). > > Thanks in advance. > > -- > Regards, > > Howard Bornstein > ----------------------- > www.designeq.com > > > On Wed, Feb 16, 2011 at 3:37 PM, BNig wrote: > >> >> Hi Claus, >> >> I made a little revlet that shows what impacts the formattedHeight of a >> field: >> >> http://berndniggemann.on-rev.com/marginsrevlet/ >> >> among other things the scrollbars and their size furthermor the margins, >> the >> borderwith the textsize and the textheight. I hope I did not forget >> anything. Before 4.5 on a Mac the focusborder also added to the >> formattedHeight if I remember correctly. >> >> Kind regards >> >> Bernd >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/formattedHeight-and-scrollbars-tp3309720p3309965.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- Regards, Howard Bornstein ----------------------- www.designeq.com From jacque at hyperactivesw.com Wed Feb 1 16:59:53 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 01 Feb 2012 15:59:53 -0600 Subject: How does a command find out who called it? In-Reply-To: <0674D3A4-87F2-4183-B2EA-3484EB31F617@sonsothunder.com> References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> <4F29AA20.30909@kencorey.com> <0674D3A4-87F2-4183-B2EA-3484EB31F617@sonsothunder.com> Message-ID: <4F29B5D9.1010404@hyperactivesw.com> On 2/1/12 3:28 PM, Ken Ray wrote: > Really? Does it matter how long it takes the handler to complete > execution? That is, if the rest of the handler after the "send" takes > 10 seconds to execute, will LC wait all 10 seconds to get to the end > of the handler before it sends the message? It would wait the whole 10 seconds and then execute when the handler finished. I use "send in 0" sometimes when I want the calling handler out of the way before I start another process. For example, I used it when triggering a series of file downloads so that the mouseup that started the whole thing won't hang the interface while the downloads got set up. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kray at sonsothunder.com Wed Feb 1 17:09:15 2012 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 1 Feb 2012 16:09:15 -0600 Subject: How does a command find out who called it? In-Reply-To: <4F29B1A1.5030507@kencorey.com> References: <4F295D6D.6@kencorey.com> <061C17FC-5E2E-44E6-873B-6F47945989AF@economy-x-talk.com> <4F29683B.2030300@kencorey.com> <4F29AA20.30909@kencorey.com> <0674D3A4-87F2-4183-B2EA-3484EB31F617@sonsothunder.com> <4F29B1A1.5030507@kencorey.com> Message-ID: <149F0AB4-5DB4-4D31-A21C-44226A9182B7@sonsothunder.com> On Feb 1, 2012, at 3:41 PM, Ken Corey wrote: > On 01/02/2012 21:28, Ken Ray wrote: >> Really? Does it matter how long it takes the handler to complete execution? That is, if the rest of the handler after the "send" takes 10 seconds to execute, will LC wait all 10 seconds to get to the end of the handler before it sends the message? >> >> Just curious... > > Completely depends on your code and the order in which the handler needs information. Actually I just tested it? as long as the code following the "send in time" message doesn't allow for any idle time, and the amount of time that you are "sending" in is less than the time for the code to process, it will wait until the handler is done before it sends. The bottom line is that the "send in