Re: Any suggestions?

2012-07-24 Thread Jim Hurley
Message: 7 Date: Mon, 23 Jul 2012 20:54:14 -0500 From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Any suggestions? Message-ID: 500e0046.2010...@hyperactivesw.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Re: Any suggestions?

2012-07-24 Thread Peter M. Brigham
On Jul 24, 2012, at 2:17 PM, Jim Hurley wrote: While he is PRACTICING, the PATIENT is out in the WAITING room. being patient -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list

Re: Any suggestions?

2012-07-23 Thread Charles Szasz
Hi Pete, I have been working with your suggestions on the following script: put the number of buttons of me into nbr put 1 into x repeat with n = 1 to nbr put the short name of button n of me into tName if not the hilite of button n of me then next repeat add 1 to x

Re: Any suggestions?

2012-07-23 Thread Peter M. Brigham
On Jul 23, 2012, at 4:47 PM, Charles Szasz wrote: I have been working with your suggestions on the following script: put the number of buttons of me into nbr put 1 into x repeat with n = 1 to nbr put the short name of button n of me into tName if not the hilite of button n

Re: Any suggestions?

2012-07-23 Thread Peter Haworth
Hi Charles, I gotta vow to test any scripts I publish! Here's the fixes: second line of the script should be put zero into x. I think that will fix the other problem too, but let me know if not. Pete lcSQL Software http://www.lcsql.com On Mon, Jul 23, 2012 at 1:47 PM, Charles Szasz

Re: Any suggestions?

2012-07-23 Thread Charles Szasz
Hi Peter! I had already found that by moving add 1 to x to after the repeat loop corrects the numbering problem before receiving your email. The number 12 I mentioned is equal to the twelve checkbox. I did not set it. When x tMaxLines, the twelve checkbox is not carried over and appears out

Re: Any suggestions?

2012-07-23 Thread Charles Szasz
Peter, I did resolved my problem by changing the rounding precision from 0 to 2. I have not tried this on Windows yet but it does work on the Mac. put round(the height of field final/ the textheight of field final,2) into tMaxLines Again thanks for your time and assistance! Charles

Re: Any suggestions?

2012-07-23 Thread Peter Haworth
Great, sounds like you figured it all out! My next suggestion was to change the calculation of tMaxLines but you beat me to it. Pete lcSQL Software http://www.lcsql.com On Mon, Jul 23, 2012 at 4:28 PM, Charles Szasz csz...@mac.com wrote: Peter, I did resolved my problem by changing the

Re: Any suggestions?

2012-07-23 Thread Charles Szasz
Peter, I will try your suggestion! Thanks so much! By the way, I believe we are both in the same profession. I am a school psychologist - retired now. I remember seeing in your emails on the list that you are also in the psychology field. Charles Szasz csz...@mac.com

Re: Any suggestions?

2012-07-23 Thread Bob Sneidar
Old joke: If you ask 10 Psychologists about any particular thing, you will get 20 different answers. ;-) Sorry I just had to! Bob On Jul 23, 2012, at 5:02 PM, Charles Szasz wrote: Peter, I will try your suggestion! Thanks so much! By the way, I believe we are both in the same

Re: Any suggestions?

2012-07-23 Thread Peter M. Brigham
On Jul 23, 2012, at 8:02 PM, Charles Szasz wrote: I will try your suggestion! Thanks so much! By the way, I believe we are both in the same profession. I am a school psychologist - retired now. I remember seeing in your emails on the list that you are also in the psychology field. Right,

Re: Any suggestions?

2012-07-23 Thread Peter M. Brigham
On Jul 23, 2012, at 8:24 PM, Bob Sneidar wrote: Old joke: If you ask 10 Psychologists about any particular thing, you will get 20 different answers. ;-) Sorry I just had to! Yes, it's OK, we're used to it. :-) 20 different answers is sort of like what happens when someone poses a question

Re: Any suggestions?

2012-07-23 Thread J. Landman Gay
On 7/23/12 8:44 PM, Peter M. Brigham wrote: I've always thought that practicing was an odd word for what I do, though it does capture the open-ended nature of the medical field One doctor I know says he's practicing until he gets it right. :) -- Jacqueline Landman Gay |

Re: Any suggestions?

2012-07-23 Thread Peter M. Brigham
On Jul 23, 2012, at 9:54 PM, J. Landman Gay wrote: One doctor I know says he's practicing until he gets it right. :) Yeah, I'd like to think that too. Except that if you start thinking that you got it right, you start missing what else there is to learn. It's never completely absolutely

Re: Any suggestions?

2012-07-23 Thread Dr. Hawkins
On Monday, July 23, 2012, J. Landman Gay wrote: One doctor I know says he's practicing until he gets it right. :) I got it right, and closed my law practice in '94. Got my Ph.D. Taught, and discovered I started too late to afford college for my own kids. so it's back to law, and now

Re: Any suggestions?

2012-07-22 Thread Peter M. Brigham
On Jul 22, 2012, at 12:31 PM, Charles Szasz wrote: I have the following group script for 19 checkboxes which puts the names of 19 checkboxes into a field final when they are checked. However due to size restrictions of my window, I need to have the names of checkboxes to appear in an

Re: Any suggestions?

2012-07-22 Thread Charles Szasz
Hi Peter! Thanks for your suggestion! I removed the line feeds and cr from your script after pasting it into my group script. I got an error message for this line of code put counter . tName cr after theList: compilation error at the line 29 (repeat: garbage where a command should be) near

Re: Any suggestions?

2012-07-22 Thread Peter Haworth
Hi Charles, Here's an amended verison of your script that I think will work (untested). on mouseUp put the number of buttons of me into nbr put 1 into x repeat with n = 1 to nbr put the short name of button n of me into tName if not the hilite of button n of me then next

Re: Any suggestions?

2012-07-22 Thread Peter M. Brigham
On Jul 22, 2012, at 1:37 PM, Charles Szasz wrote: … I got an error message for this line of code put counter . tName cr after theList: compilation error at the line 29 (repeat: garbage where a command should be) near ., char 11 Any suggestions? Sorry: put counter . tName cr

Re: Any suggestions?

2012-07-22 Thread Charles Szasz
Hi Pete! Thanks for your suggestion! I just tried your script and got the error message compilation error (Chunk: bad preposition) near into , char 28 for the following line: put line tLines+1 to x into field final2 While I did paste and not your script into my group script, I did remove

Re: Any suggestions?

2012-07-22 Thread Charles Szasz
Peter, I was away from my computer when you submitted your suggestion. I found an error in your code (nor) for nbr for the first line of code. I added the ampersand that you suggested to the following line: put counter . tName cr after theList Despite that change, I got another error

Re: Any suggestions?

2012-07-22 Thread Peter M. Brigham
\On Jul 22, 2012, at 4:42 PM, Charles Szasz wrote: Hi Pete! Thanks for your suggestion! I just tried your script and got the error message compilation error (Chunk: bad preposition) near into , char 28 for the following line: put line tLines+1 to x into field final2 While I did

Re: Any suggestions?

2012-07-22 Thread Peter M. Brigham
Peter, I was away from my computer when you submitted your suggestion. I found an error in your code (nor) for nbr for the first line of code. I added the ampersand that you suggested to the following line: put counter . tName cr after theList Despite that change, I got another

Re: Any suggestions?

2012-07-22 Thread Peter Haworth
Ah, sorrt Charles. It should be: put line tLines+1 to x of theList into field final2 Don't have your original script in front of me but I think theList was the name of variable you had. Pete lcSQL Software http://www.lcsql.com On Sun, Jul 22, 2012 at 1:42 PM, Charles Szasz csz...@mac.com

Re: Any suggestions?

2012-07-22 Thread Charles Szasz
Hi Pete, Yes, I noticed that mistake and changed it but still get an error message: execution error for the following line (Operators +:error in left operand),char 16 put line tLines+1 to x of thelist into field final in the following snippet of code. put the number of buttons of me into

Re: Any suggestions?

2012-07-22 Thread Mike Bonner
Confirm that tLines contains a number, that's the most likely cause. On Sun, Jul 22, 2012 at 4:54 PM, Charles Szasz csz...@mac.com wrote: Hi Pete, Yes, I noticed that mistake and changed it but still get an error message: execution error for the following line (Operators +:error in left

Re: Any suggestions?

2012-07-22 Thread Charles Szasz
Mike, I just checked and found tLines has no number.. Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Any suggestions?

2012-07-22 Thread Chipp Walters
Peter and Charles, FWIW, I always use: delete last char of theList instead of put line 1 to -1 of theList into theList -- no trailing return It works with item lists, too and doesn't throw an error if theList is On Sunday, July 22, 2012, Peter M. Brigham wrote: repeat with n = 1 to nbr

Re: Any suggestions?

2012-07-22 Thread Peter M. Brigham
On Jul 22, 2012, at 7:28 PM, Chipp Walters wrote: Peter and Charles, FWIW, I always use: delete last char of theList instead of put line 1 to -1 of theList into theList -- no trailing return It works with item lists, too and doesn't throw an error if theList is Actually put line