Re: how are variables passed from functions?

2014-11-14 Thread J. Landman Gay
On 11/14/2014, 5:28 PM, Bob Sneidar wrote: I guess what I am saying is that since test1 did not*explicitly* return anything, the mouseUp handler should put nothing in the message box. However I am discovering that functions*implicitly* return data that the programmer did not tell them to return.

Re: how are variables passed from functions?

2014-11-14 Thread Bob Sneidar
I guess what I am saying is that since test1 did not *explicitly* return anything, the mouseUp handler should put nothing in the message box. However I am discovering that functions *implicitly* return data that the programmer did not tell them to return. Some find this ok. I find it disturbing

Re: Drag text from locked field

2014-11-14 Thread Bob Sneidar
Also, I need to be able to select text in a locked field. Seems this is also not possible. Bob S > On Nov 14, 2014, at 15:11 , Bob Sneidar wrote: > > I suspect the answer is no, but is there a way to drag text from a locked > field? So far it seems not. I can probably unlock the field on a

Drag text from locked field

2014-11-14 Thread Bob Sneidar
I suspect the answer is no, but is there a way to drag text from a locked field? So far it seems not. I can probably unlock the field on a mouseDown event and relic it on a mouseUp, but that is getting ugly. I need to be able to select and drag text from a field but not allow editing. Bob S

Re: hair-pulling frustration

2014-11-14 Thread Peter Haworth
Can you send us the relevant script lines? So far, it has worked in my script with or without semicolons in various versions from 5.5 and up in my testing so there must be something different in your script and mine. Pete lcSQL Software Home of lcStackBrowser

Re: BBEdit Language Module for LiveCode

2014-11-14 Thread Peter Haworth
Right, you need .rev and .livecode as the recognized extensions. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Nov 14, 2014 at 1:38 PM, Brahmanathaswami wrote: > hhmmm

Re: a substack ignoring both its behavior and script

2014-11-14 Thread Peter Haworth
It would help if you could cut and past the behavior property value into your next post, plus the name of the object that has the behavior, and perhaps the message box output of "put exists()" Pete lcSQL Software Home of lcStackBrowser

Re: [ANN] - MaterLibrary Version 8 is available

2014-11-14 Thread JB
Thank you, Mike! You did a very nice job on it. John Balgenorth On Nov 14, 2014, at 12:15 PM, Michael Doub wrote: > Enjoy! >-= Mike > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > > > Release 8 > *Added reference page that incudes an ASCII table and L

Re: a substack ignoring both its behavior and script

2014-11-14 Thread Dr. Hawkins
On Fri, Nov 14, 2014 at 1:33 PM, J. Landman Gay wrote: > So they have a name now. :) > They've needed one, and what could be more appropriate . . . > I wish I could watch over your shoulder and see what you do differently to > cause this stuff. I'm at a loss. > Bugs and I have a very longstan

Re: BBEdit Language Module for LiveCode

2014-11-14 Thread Brahmanathaswami
hhmmm do think we need to set up our own repository... LiveScript is a different language.. shall I do that? I could would instantiate my latest version to start up... it would be named "LiveCode.plist" BR Ben Rubinstein wrote: and I've started to add to it (mainly to fix the function scann

Re: a substack ignoring both its behavior and script

2014-11-14 Thread J. Landman Gay
On 11/14/2014, 3:13 PM, Dr. Hawkins wrote: That happens if you change the name of the stack that contains the >behavior button. Could that have happened during your edit? I did that >once. Change it back and it works again. > No; it's been "mcp" since day1 >But those stupid PCDs are driving m

Re: BBEdit Language Module for LiveCode

2014-11-14 Thread Brahmanathaswami
I got it working and code folding too! I'm going here for my starter kit as this is three hours old and I think it is the one ben is working on and not Jackie...I will send you off list... I don't have time to mess with Git Hub right now, because the file name is wrong "LiveScript.plist" and I

Re: itemDel not resetting on entering routines?

2014-11-14 Thread Dr. Hawkins
On Fri, Nov 14, 2014 at 11:52 AM, Bob Sneidar wrote: > I just stay embarrassed. It’s easier that way. > No need to stay embarrassed; there's always something new around the corner. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mail

Re: hair-pulling frustration

2014-11-14 Thread Dr. Hawkins
On Fri, Nov 14, 2014 at 10:38 AM, J. Landman Gay wrote: > A semicolon in any script is interpreted as a line ending, except when > within quotation marks. If the example failed (where the semicolon is > within the quotes) then that would be a problem with the scripts that > interpret the message

Re: a substack ignoring both its behavior and script

2014-11-14 Thread Dr. Hawkins
On Fri, Nov 14, 2014 at 12:50 PM, J. Landman Gay wrote: > On 11/14/2014, 2:22 PM, Dr. Hawkins wrote: > >> This stubstack is now doing this on two computers, and under 7.0-RC1 and >> -RC2. >> >> It has had a behavior for a long time, under 5.5 and continued working >> under 7.0. >> >> I edited it

Re: how are variables passed from functions?

2014-11-14 Thread dunbarx
Bob. This seems right. The return in test2 "returns" to the test1 handler, and the next line in that handler executes, going on to test3. This executes, "returning" to test1 as well, and on up to "mouseUp". In other words, the return in test2 does not know about the fact that the whole thing w

Re: a substack ignoring both its behavior and script

2014-11-14 Thread J. Landman Gay
On 11/14/2014, 2:22 PM, Dr. Hawkins wrote: This stubstack is now doing this on two computers, and under 7.0-RC1 and -RC2. It has had a behavior for a long time, under 5.5 and continued working under 7.0. I edited it this morning, and now it is not only ignoring the behavior, but it's own script

Re: hair-pulling frustration

2014-11-14 Thread J. Landman Gay
On 11/14/2014, 1:39 PM, Bob Sneidar wrote: Hah hah! I would have used “For all permutations” instead! Ooh. Like. It is revised: Our Kevin, who art at RunRev, Hollowed be thy frame By coding done Yet still undone in engine, As it is in IDE. Give us this day our weekly upgrade And forgive us our

Re: BBEdit Language Module for LiveCode

2014-11-14 Thread J. Landman Gay
On 11/14/2014, 12:34 PM, Ben Rubinstein wrote: Funny coincidence, it's just what I'm looking at now. I found this one a few days ago https://github.com/tumble/bbedit-livescript and I've started to add to it (mainly to fix the function scanner). Too cool. When you guys get it figured out, gimm

a substack ignoring both its behavior and script

2014-11-14 Thread Dr. Hawkins
This stubstack is now doing this on two computers, and under 7.0-RC1 and -RC2. It has had a behavior for a long time, under 5.5 and continued working under 7.0. I edited it this morning, and now it is not only ignoring the behavior, but it's own script if I give it one (i.e., an openCard handler

[ANN] - MaterLibrary Version 8 is available

2014-11-14 Thread Michael Doub
Enjoy! -= Mike https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 Release 8 *Added reference page that incudes an ASCII table and Livecode Error Codes (thanks to Peter M. Bingham for the materials and idea.) *Updated the version check to let you know if yo

Re: hair-pulling frustration

2014-11-14 Thread Peter Haworth
Right, it looks like something in the message box message box interpretation scripts changed between the various releases I tested. I guess I should file a bug report. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin

Re: BBEdit Language Module for LiveCode

2014-11-14 Thread Brahmanathaswami
OK will try it... I took a course on GitHub from Lynda.com... most of it left my head a few days after taking the course (instructor was going really fast!) and setting up my repositories (hehe) Andre suggested this: http://git-scm.com/book/en/v2 free... I keep it open in Calibre and it he

Re: Datagrid : showing a row by auto scrolling

2014-11-14 Thread Bob Sneidar
put 95 into lSelectedLine set the hilitedLine of group myDatagrid to lSelectedLine — alternatively use index. Unless you are manually populating the data grid, this will autoscroll to the selected index/line. Bob S > On Nov 12, 2014, at 18:28 , Glen Bojsza wrote: > > I guess the title is

Re: Keyboard Shortcuts in Menus

2014-11-14 Thread Bob Sneidar
Actually, Macs can use either the control, command (apple) or option key with shift modifier for some of them as well. On Windows, the command key is actually the windows key. Not certain if it can be used as a modifier. Bob S On Nov 13, 2014, at 07:29 , Richard Gaskin mailto:ambassa...@fourt

Re: itemDel not resetting on entering routines?

2014-11-14 Thread Bob Sneidar
I just stay embarrassed. It’s easier that way. Bob S On Nov 13, 2014, at 19:50 , J. Landman Gay mailto:jac...@hyperactivesw.com>> wrote: LOL Better you than me. :-) We've all embarrassed ourselves here, it's sort of an initiation thing. ___ use-l

Re: hair-pulling frustration

2014-11-14 Thread Bob Sneidar
Hah hah! I would have used “For all permutations” instead! Bob S On Nov 14, 2014, at 10:47 , J. Landman Gay mailto:jac...@hyperactivesw.com>> wrote: LOL! Okay. Our Kevin, who art at RunRev, Hollowed be thy frame By coding done Yet still undone in engine, As it is in IDE. Give us this day our

Re: how are variables passed from functions?

2014-11-14 Thread Bob Sneidar
I agree with you Jacque. I think the only workaround is when creating a function, immediately enter the return command before scripting anything else. This will prevent the inadvertent exclusion of a return command Bob S On Nov 14, 2014, at 10:28 , J. Landman Gay mailto:jac...@hyperactivesw.c

Re: how are variables passed from functions?

2014-11-14 Thread Bob Sneidar
Not sure what you are asking, but here is how functions work. As soon as the script execution encounters a return command, the function terminates and returns control to the calling handler. Nothing that comes after the return in the function is executed. Now here is what weirds me out: on m

Re: hair-pulling frustration

2014-11-14 Thread J. Landman Gay
On 11/13/2014, 10:26 PM, Geoff Canyon wrote: On Thu, Nov 13, 2014 at 3:10 PM, J. Landman Gay wrote: I blame myself for the omissions (except when Richard G. forgives me.) :) "Bless me Richard, for I have sinned. It has been two weeks since my last bug report. Since then I wrote three undocu

Re: BBEdit Language Module for LiveCode

2014-11-14 Thread Ben Rubinstein
Hi Brahmanathaswami Funny coincidence, it's just what I'm looking at now. I found this one a few days ago https://github.com/tumble/bbedit-livescript and I've started to add to it (mainly to fix the function scanner). It's sort of working now, but I think the next thing is to stop adding keyw

Re: hair-pulling frustration

2014-11-14 Thread J. Landman Gay
On 11/14/2014, 11:58 AM, Peter Haworth wrote: My feeling is that something changed in the message box parsing routines and the semicolon is being taken as a separator between two statements. A semicolon in any script is interpreted as a line ending, except when within quotation marks. If the e

Datagrid questions

2014-11-14 Thread Peter Haworth
Working with a datagrid table after a break from them for a while. I have a couple of situations where I need to adjust the settings of a specific "cell" (line/column) in the datagrid depending on data in other cells. In the first case, I have a customized column with a button in it. In some data

Re: how are variables passed from functions?

2014-11-14 Thread J. Landman Gay
On 11/14/2014, 9:12 AM, dunb...@aol.com wrote: I don't see any anomaly here. Since the intermediate function calls yet another function, it never needs to "close", that is, return, a value. It is a pass-through entity, a card carrying member of the chain of handler calls. Step through this vari

Re: how are variables passed from functions?

2014-11-14 Thread Peter Haworth
Hi Tiemo, That seems like an unexpected behavior to me but definitely good to know. I've christened this behavior "the point of no return"! I'm triyng to wrap my head around what might happen in this scenario with a recursive function. Pete lcSQL Software Home of lcStackBro

Re: hair-pulling frustration

2014-11-14 Thread Peter Haworth
On Fri, Nov 14, 2014 at 9:21 AM, Peter Haworth wrote: > revDataFromQuery(,,17,"SELECT * FROM vader_darth__001_dna;") Somehow, an earlier version of my reply was sent. Here's what I meant to send. Knowing that you used the message box makes a big difference, Everyone who has checked this

Re: can't put into field by id?

2014-11-14 Thread Mike Bonner
Things like this also work.. put the long id of (tFieldName) where tFieldname contains "field myfield" though, to be safe it should contain --field "myfield" on the off chance that myfield is another variable name. As long as you force evaluation of the var with parens, life gets easier. On Th

Re: how are variables passed from functions?

2014-11-14 Thread Mike Bonner
The value returned in the previous scenario (basing the return on 10 being the number used) is 20. The final doubling disappears. On Fri, Nov 14, 2014 at 10:40 AM, Mike Bonner wrote: > For anything other than this simple case, the returns matter. > > Take for example > > local tvar1,tvar2,tvar3

Re: how are variables passed from functions?

2014-11-14 Thread Mike Bonner
For anything other than this simple case, the returns matter. Take for example local tvar1,tvar2,tvar3 on mouseUp --get a random value to use put random(10) into tvar1 put "Start Value: " & tvar1 & cr & "Final Return:" & myfunc1(tvar1) & cr & tvar3 end mouseUp function myfunc1 pvar put

Re: how are variables passed from functions?

2014-11-14 Thread dunbarx
I am a native speaker, but not a native listener. Yes, it makes no difference. Stepping through, "myVar2" will contain a value regardless of whether a return is present or not. Personally, I would not use the return there. Even more personally, why have two functions? Unless a choice is made

Re: hair-pulling frustration

2014-11-14 Thread Bob Sneidar
The way I see things, RunRev is not an overly large company. To remain solvent (something that benefits us all) they probably have to prioritize what they can and cannot do. In House testing of every possible scenario cannot be one of the do’s. Frankly I am thrilled at the progress made since ve

Re: hair-pulling frustration

2014-11-14 Thread Peter Haworth
OK, so you mean this: revDataFromQuery(,,17,"SELECT * FROM vader_darth__001_dna;") revDataFromQuery is a function, you need to either "put" it or "get" it or "set" a cprop to it. If I type the above statement into the message box I get exactly the same error as you whether there's a semicolo

Re: how are variables passed from functions?

2014-11-14 Thread Jacques Hausser
Yes, it is ’the Result’, I just checked it - good hint, Dave ! didn’t think about that before… Jacques > Le 14 nov. 2014 à 17:56, Dave Cragg a écrit : > > Tiemo, > > Interesting. It looks like functions return the value of "the result" in the > absence of a return statement. > > Other langu

Re: how are variables passed from functions?

2014-11-14 Thread Dave Cragg
Tiemo, Interesting. It looks like functions return the value of "the result" in the absence of a return statement. Other languages would probably return "void" or "null" or something similar, and we might expect Livecode to return "empty". I've no opinion on whether it is a bug or not, but I t

Re: how are variables passed from functions?

2014-11-14 Thread Jacques Hausser
Hi Tiemo, It is always better to be explicit, and in this case to use a return statement. Note that a shorter function foo1 could be: function foo1 return foo2() end foo1 As for my post of this morning, my suggestion was certainly too complex. It is sufficient to figure a transitory ‘returne

Re: 64 bit Linux standalones?

2014-11-14 Thread Fraser Gordon
On 14 Nov 2014, at 16:48, Richmond wrote: > As, currently, I am running 32 bit Linux I have what may seem a slightly > goofy question: > > Does the standalone builder in the 64 bit version of LiveCode 7 offer the > choice of building > standalones for 64-bit and/or 32-bit distros? It should.

64 bit Linux standalones?

2014-11-14 Thread Richmond
As, currently, I am running 32 bit Linux I have what may seem a slightly goofy question: Does the standalone builder in the 64 bit version of LiveCode 7 offer the choice of building standalones for 64-bit and/or 32-bit distros? Richmond. ___ use-li

Re: externals and QR code

2014-11-14 Thread tbodine
Sean, Very interesting use of QR. Were the QR codes carrying both bidder ID info. and the actual bid information from each user? And were the QRs printed on paddles or were these on the bidders' mobile device screens? Thanks, Tom Bodine -- View this message in context: http://runtime-revolu

AW: how are variables passed from functions?

2014-11-14 Thread Tiemo Hollmann TB
Hi Craig, perhaps I didn't expressed myself correct, I'm not a native speaker. For me the result seems the same, if I put a return myVar2 at the end of function foo1 or not (see below). The intermediate function is terminated AFTER the call of the second function at the end. My original script wo

Re: how are variables passed from functions?

2014-11-14 Thread dunbarx
Hi. Putting intermediate returns will immediately terminate the function call. How would you reach the next stage? Perhaps this is another "slightly off" aspect of the original example: The intermediate variable "myVar2" is only seen in the debugger, and therefore only actually "present" at

AW: how are variables passed from functions?

2014-11-14 Thread Tiemo Hollmann TB
Hi Craig, I wasn't aware of this behaviour. I think about more complex functions with a lot of if and else structures, where you are perhaps not aware anymore of this function chain after some years, when you are changing the first or the second function? Would it be a good or at least not a bad pr

Re: how are variables passed from functions?

2014-11-14 Thread dunbarx
I don't see any anomaly here. Since the intermediate function calls yet another function, it never needs to "close", that is, return, a value. It is a pass-through entity, a card carrying member of the chain of handler calls. Step through this variation: on mouseUp put double(2) into myVa

Re: externals and QR code

2014-11-14 Thread Roger Eller
It does. Sent from my Android tablet On Nov 14, 2014 8:00 AM, wrote: > Thanks for your answers. > One more question : does mergZXing also decode the QR code once > it is scanned ? This isn't clear in the online doc... > > Thanks > jbv > > > > > On 14 Nov 2014, at 1:53 am, Pi Digital wrote: > >

Re: externals and QR code

2014-11-14 Thread jbv
Thanks for your answers. One more question : does mergZXing also decode the QR code once it is scanned ? This isn't clear in the online doc... Thanks jbv > > On 14 Nov 2014, at 1:53 am, Pi Digital wrote: > >> Mergext has an excellent set of externals one of which is a qr reader. >> It is very go

Re: DP, RC, GM, Stable and tree diagrams

2014-11-14 Thread James Hale
I think the point of the nomenclature is in the decimal place (pardon the pun.) X.Y denotes a major release, with new features and other nasties. So they get a DP to start with. X.Y.Z are simply bug fixes, and perhaps a minor change here or there. Being based on a stable release they no longer r

Re: hair-pulling frustration

2014-11-14 Thread Neil Roger
Hi Ralph, Thanks for your fantastic suggestion! I've had a quick chat with our testing master, Hanson, and he is more than happy to look at into integrating any advance query stacks you may have into our current test system. If you do get a chance to create any of these, please fire them ove

Re: how are variables passed from functions?

2014-11-14 Thread Jacques Hausser
Interesting. If I modify foo1 like that: function foo1 put foo2() into myvar2 put "anotherTest" into myvar3 end foo1 the process still returns “Test”. I can only guess that ‘return’ saves the returned value in a ‘last in, first out’ pile somewhere and that the top value is used by the ca

how are variables passed from functions?

2014-11-14 Thread Tiemo Hollmann TB
By accident I noticed that I don't have a return at a certain point of a function but nevertheless the value was passed back without a return to the calling handler. I can reproduce the issue to this scenario: --Btn script on mouseUp put foo1() into myVar1 -- I get the value "Test"