Re: A possible improvement of Livetalk

2013-09-19 Thread jbv
or may be "[array]" would be better... Actually, IMHO the probability that an array contains "[array]" is far smaller than it contains empty because of a bug in the code... jbv > Actually, this would be my objection to returning "array" when asking for > the value of myArray["a"]. If the value wer

Re: Converting Python

2013-09-19 Thread Monte Goulding
> ...so your thinking is that modifying the shell function is somehow > better than modifying the do as function? I haven't been following this much but If you did decide to mess with shell it would be really handy having a shell command that was safe to use on Windows. At the moment it's possi

Re: Converting Python

2013-09-19 Thread Mark Wieder
Björnke- Wednesday, September 18, 2013, 4:34:20 AM, you wrote: > I'm on Waddinghams side here. "Do as " is > integrated with the "alternateLanguages". If something isn't in the > alternateLanguages, it does not belong into "do as language>". So what you'd probably need to convince him (and me) o

Re: determining if cursor is in last line of a field

2013-09-19 Thread dunbarx
What Mark meant was that the formattedText reconfigures the displayed text as if it had hard returns in just the right places. His script uses the formattedText... Anyone remember the "wordWrap" XFCN in HC? I never knew who wrote it. Craig -Original Message- From: Dr. Hawkins To: H

Re: Graphic Tools Mystery

2013-09-19 Thread Graham Samuel
SsLog just puts a text into a log file, so any script that does that would be fine. Oddly, RunRev had no trouble running it. I've got major Internet grief at the moment so can't send an update, maybe not for a day or two. BTW I agree completely with your point. Thanks for the comment. Graham

Re: determining if cursor is in last line of a field

2013-09-19 Thread Dr. Hawkins
On Thu, Sep 19, 2013 at 1:08 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Probably, that won't do it. Try this: > > put (number of lines of the formattedText of \ >char 1 to (word 2 of the selectedChunk) of myTarget) is \ >(the number of lines of the formattedText of

Re: determining if cursor is in last line of a field

2013-09-19 Thread Mark Schonewille
Hi Richard, The selectedLine counts the number of hard returns. Just try 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 Use Color Converter to convert CMYK,

Re: Graphic Tools Mystery

2013-09-19 Thread Richard Gaskin
Graham Samuel wrote: > I finally got round to boiling down this app to a simple form that > I could use in a bug report. RunRev (actually Elanor) quite quickly > came up with a reply - here's an extract: > >> Comment # 6 on bug 11183 from Elanor >> Hi Graham >> >> This is not actually a bug, the c

Re: A possible improvement of Livetalk

2013-09-19 Thread Peter M. Brigham
Actually, this would be my objection to returning "array" when asking for the value of myArray["a"]. If the value were actually "array" then it would be ambiguous. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Sep 18, 2013, at 2:44 PM, Mark Wieder wrote: > jbv

Re: How to get the x,y position of a word in a text field ?

2013-09-19 Thread dunbarx
Hi. Did not read your post fully. I see you already worked with the selectedLoc. You mentioned that the user is free typing, and you want to validate words against a list of correct ones. I played around with this just for a second. In a field script: on keydown var if var = space the

Re: How to get the x,y position of a word in a text field ?

2013-09-19 Thread dunbarx
The "selectedLoc"? Craig Newman -Original Message- From: Monte Goulding To: How to use LiveCode Sent: Thu, Sep 19, 2013 3:08 am Subject: Re: How to get the x,y position of a word in a text field ? On 19/09/2013, at 4:59 PM, j...@souslelogo.com wrote: > I have a text field in whic

Graphic Tools Mystery

2013-09-19 Thread Graham Samuel
Folks For a long time now, I have had what I took to be a bug in a desktop app (Mac and Windows) I'm working on. To summarise, the app has a tool palette which allows drawing of graphics in a particular window in the app. All of the standard graphic tools work on this window in the IDE, but wh

OT: Why would you ever use numbers instead of strings for ids?

2013-09-19 Thread David Bovill
I've been looking at the Twitter API v1.1, and there is a lot about the tweet ids being 64bit integers and that because JavaScript (and LiveCode) don't support these there is also a "string" version - of the number. So my "dumb" question of the day is why would you ever want to use a number rather

Re: determining if cursor is in last line of a field

2013-09-19 Thread Mark Schonewille
Hi Richard, Probably, that won't do it. Try this: put (number of lines of the formattedText of \ char 1 to (word 2 of the selectedChunk) of myTarget) is \ (the number of lines of the formattedText of myTarget) --> true|false -- Best regards, Mark Schonewille Economy-x-Talk Consulting

Re: How to get the x,y position of a word in a text field ?

2013-09-19 Thread Monte Goulding
On 19/09/2013, at 4:59 PM, j...@souslelogo.com wrote: > I have a text field in which users can enter free text and I need > to detect typos in that text and display a list of possible > replacement words under the first word with a typo, this list being > left aligned with the left side of the wo

How to get the x,y position of a word in a text field ?

2013-09-19 Thread jbv
Hi list, I have a text field in which users can enter free text and I need to detect typos in that text and display a list of possible replacement words under the first word with a typo, this list being left aligned with the left side of the word. So far I use "find" followed by "the foundloc", o