Re: empty ask result + ok = result:cancel
Dear Mister X, I mentioned such a bug (#3019) in build 91 and it has been wonderfully fixed for the current downloable build. In the msg box, put version(), buildnumber() should reply 2.6.5,108. Otherwise download and reinstall Rev 2.6 again. Also I agree with Eric, you should place the result() function just after the ask statement: ask Replace what: with lselection if result() is cancel then exit mouseup put it into x Hope this help. Joel G Le 25 juil. 05 à 04:46, [EMAIL PROTECTED] a écrit : Date: Sun, 24 Jul 2005 20:04:06 +0200 From: MisterX [EMAIL PROTECTED] ... ask Replace what: with lselection put it into x get the result if it is cancel then exit mouseup ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: empty ask result + ok = result:cancel
Joel, Thanks, Eric told me offlist about this version problem. I uploaded this morning the fix and it works as expected. I also closed the bug... Thanks for the help Cheers Xavier [EMAIL PROTECTED] wrote on 26/07/2005 09:46:00: Dear Mister X, I mentioned such a bug (#3019) in build 91 and it has been wonderfully fixed for the current downloable build. In the msg box, put version(), buildnumber() should reply 2.6.5,108. Otherwise download and reinstall Rev 2.6 again. Also I agree with Eric, you should place the result() function just after the ask statement: ask Replace what: with lselection if result() is cancel then exit mouseup put it into x Hope this help. Joel G Le 25 juil. 05 à 04:46, [EMAIL PROTECTED] a écrit : Date: Sun, 24 Jul 2005 20:04:06 +0200 From: MisterX [EMAIL PROTECTED] ... ask Replace what: with lselection put it into x get the result if it is cancel then exit mouseup ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution - Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
empty ask result + ok = result:cancel
im implementing a nice search and replace function and well, check it out... local lselection on mouseenter put viewbar into f get the selectedtext of fld f put it into lselection end if end mouseenter on mouseUp local f,x,y,txt put viewbar into f put fld f into txt ask Replace what: with lselection put it into x get the result if it is cancel then exit mouseup ask Replace with: with it put it into y get the result if it is cancel then exit mouseup replace x with y in fld f end mouseup Now, if i want to replace x with nothing, i leave the second ask empty but the result, despite clicking OK, is Cancel... grrr Can any of you replicate this? bugzilla or is it me? TIA cheers Xavier ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: empty ask result + ok = result:cancel
x, This script works fine on my OS X machine with 2.6 (108) That is once I take out that extra end if The empty and cancel are returned as expected. Dennis On Jul 24, 2005, at 2:04 PM, MisterX wrote: local lselection on mouseenter put viewbar into f get the selectedtext of fld f put it into lselection end if end mouseenter on mouseUp local f,x,y,txt put viewbar into f put fld f into txt ask Replace what: with lselection put it into x get the result if it is cancel then exit mouseup ask Replace with: with it put it into y get the result if it is cancel then exit mouseup replace x with y in fld f end mouseup ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: empty ask result + ok = result:cancel
Hi Xavier, May be I'm wrong but your code makes no sense for me :-) You want to get a result but you insert a line of code between the command and the request for the result: can't work. You have to request the result immediately without requesting anything else to the engine in the meantime. Then you ask replace with it: it is supposed to be a result and is not a result... And I don't understand why you would place a result as default in an ask dialog... As for me - but may be again, I'm wrong - I could write: on mouseUp local f,x,y,txt - put viewbar into f put fld f into txt - ask Replace what: with lselection if the result = cancel then exit mouseUp put it into x - ask Replace with: with it if the result = cancel then exit mouseUp put it into y - replace x with y in fld f end mouseUp Le 24 juil. 05 à 20:04, MisterX a écrit : im implementing a nice search and replace function and well, check it out... local lselection on mouseenter put viewbar into f get the selectedtext of fld f put it into lselection end if end mouseenter on mouseUp local f,x,y,txt put viewbar into f put fld f into txt ask Replace what: with lselection put it into x get the result if it is cancel then exit mouseup ask Replace with: with it put it into y get the result if it is cancel then exit mouseup replace x with y in fld f end mouseup Now, if i want to replace x with nothing, i leave the second ask empty but the result, despite clicking OK, is Cancel... grrr Best Regards from Paris, Eric Chatonet. So Smart Software For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch Free plugins and tutorials on my website Web sitehttp://www.sosmartsoftware.com/ Email[EMAIL PROTECTED]/ Phone33 (0)1 43 31 77 62 Mobile33 (0)6 20 74 50 86 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution