Re: Unicode

2015-05-05 Thread Peter TB Brett
On 2015-05-04 22:31, Peter Haworth wrote: Does toUpper/toLower work? Similarly, does the setting of caseSensitive work OK when comparing textDecoded strings? All string operations support Unicode in LC 7. Obviously, "binary data" operations (e.g. "byte x to y of ...") don't! To answer yo

Change position of "answer dialog as sheet"

2015-05-05 Thread Rolf Kocherhans
Is it possible to change the location of an „answer dialog as sheet“ on OS X ? I know that we can change the loc of a normal dialog box (preOpenStack), but can we also do the same with a dialog box opened as sheet respectively a stack opened as sheet ? I would like to move the dialog box/stack d

Re: Crash with testflight only ?!

2015-05-05 Thread Ludovic THEBAULT
> Le 5 mai 2015 à 08:41, Ludovic THEBAULT a > écrit : > > Hello, > > Why an app crash at start if it is distributed with Tesflight and not if it > is directly installed on the device by iTunes (same device, same code) or in > the simulator ? > Tested on an iphone and an ipad 2 since i’ve up

can you control the loc of the answer dialog?

2015-05-05 Thread Tiemo Hollmann TB
Hello, the titel tells it Or is the answer if you want to do so, you have to build your own modal answer dialog window? Thanks Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

AW: Change position of "answer dialog as sheet"

2015-05-05 Thread Tiemo Hollmann TB
Thats really a coincidence, I have send mine before I have read yours... -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Rolf Kocherhans Gesendet: Dienstag, 5. Mai 2015 09:53 An: use-livecode@lists.runrev.com Betreff: Change positi

SQLite Table Exists

2015-05-05 Thread Terence Heaford
Is there a LC function for checking if a table exists in an sqlite database or do I have to do something like this? function doesTableExist tTableName put replaceText(tTableName,"'","''") into tTableName put merge(“SELECT count() FROM sqlite_master WHERE type = 'table' AND name= '[[tTable

Re: Change position of "answer dialog as sheet"

2015-05-05 Thread Scott Rossi
Hi Rolf: I don't believe it is possible to specify where a sheet originates from. Even so, it would seem to be easy enough to use a group within the window as your sheet dialog. The benefit is it could work on multiple platforms, instead of just OS X. With the above said, you could set up a klud

Re: Change position of "answer dialog as sheet"

2015-05-05 Thread Mike Bonner
Would it work to add a 20px transparent edge to the top of your windowshape graphic? On Tue, May 5, 2015 at 2:31 AM, Scott Rossi wrote: > Hi Rolf: > > I don't believe it is possible to specify where a sheet originates from. > Even so, it would seem to be easy enough to use a group within the win

Re: SQLite Table Exists

2015-05-05 Thread Mike Bonner
Probably the easiest way is a select: put "select * from tablename" into tSql revexecutesql tDbId,tSql if the result contains "no such table tablename" its not there. On Tue, May 5, 2015 at 2:23 AM, Terence Heaford wrote: > Is there a LC function for checking if a table exists in an sqlite > d

Re: SQLite Table Exists

2015-05-05 Thread Mike Bonner
oh, and you can add a limit 1 to make it faster. (no sense in selecting a whole tables data) On Tue, May 5, 2015 at 7:39 AM, Mike Bonner wrote: > Probably the easiest way is a select: > > put "select * from tablename" into tSql > revexecutesql tDbId,tSql > > if the result contains "no such table

Re: Change position of "answer dialog as sheet"

2015-05-05 Thread Richard Gaskin
Rolf Kocherhans wrote: > Is it possible to change the location of an „answer dialog as sheet“ > on OS X ? > > I know that we can change the loc of a normal dialog box > (preOpenStack), but can we also do the same with a dialog box > opened as sheet respectively a stack opened as sheet ? > > I wou

Re: SQLite Table Exists

2015-05-05 Thread Richard Gaskin
Terence Heaford wrote: Is there a LC function for checking if a table exists in an sqlite database or do I have to do something like this? function doesTableExist tTableName put replaceText(tTableName,"'","''") into tTableName put merge(“SELECT count() FROM sqlite_master WHERE type = 'ta

Re: SQLite Table Exists

2015-05-05 Thread Mike Kerner
You can also use PRAGMA, or revDatabaseTableNames(), or SELECT name FROM sqlite_master WHERE type='table' AND name='table_name'; On Tue, May 5, 2015 at 9:41 AM, Mike Bonner wrote: > oh, and you can add a limit 1 to make it faster. (no sense in selecting a > whole tables data) > > On Tue, May 5,

Re: SQLite Table Exists

2015-05-05 Thread Peter Haworth
Hi Terry, I'm curious as to why you need to do this. If you need to create the table if it doesn't exist, you could CREATE TABLE IF NOT EXISTS. Pete lcSQL Software On May 5, 2015 1:23 AM, "Terence Heaford" wrote: > Is there a LC function for checking if a table exists in an sqlite > database or

LiveCode Dictionary incomplete in version 7.0.4

2015-05-05 Thread stgoldb...@aol.com
I've noticed that many dictionary words present in earlier versions of LiveCode do not appear in the LC 7.0.4 dictionary. Can anyone suggest why, or what I might be doing wrong? For example, try searching for "mouseUp" in the LC 7.0.4 dictionary. Can you find it? (I'm using Mac 10.9.5.) Ste

Re: LiveCode Dictionary incomplete in version 7.0.4

2015-05-05 Thread Richard Gaskin
Stephen Goldberg wrote: > I've noticed that many dictionary words present in earlier versions > of LiveCode do not appear in the LC 7.0.4 dictionary. Can anyone > suggest why, or what I might be doing wrong? For example, try > searching for "mouseUp" in the LC 7.0.4 dictionary. Can you find it?

LiveCode Dictionary not complete LC 7.0.4

2015-05-05 Thread stgoldb...@aol.com
Never mind. I immediately discovered why many words did not show up in the dictionary. I should have set the left hand column of the dictionary to "All", and it had been stuck on "Image". Stephen Goldberg stgoldb...@aol.com ___ use-livecode mailing l

Re: SQLite Table Exists

2015-05-05 Thread Dr. Hawkins
On Tue, May 5, 2015 at 7:27 AM, Richard Gaskin wrote: > The example given in the Dictionary entry for the revDatabaseTableNames > function may do what you need: > >if tTableName is among the lines of \ >revDatabaseTableNames(sgDatabaseId) then > But be cautious--I've found that the l

Confirm bug in MeasureText in LC7.0.4 stable?

2015-05-05 Thread tbodine
Hi, Do you get this odd behavior of MeasureText function in LC 7.0.4 stable? (I'm using Win 7). Make a new field with "don't wrap" off. Add the following script to the field and watch the message box. Reported vertical size never changes when there are hard or soft line wraps. It's always the hei

Re: Unicode

2015-05-05 Thread Peter Haworth
I guess I'm not understanding the nuances of this. I just set up the following test 2 fields and a button Using the Greek keyboard, I keyed "qwerty" into the first field and "QWERTY" into the second field. The button script has in its mouseUp handler: set the caseSensitive to false put (toUpp

RE: Confirm bug in MeasureText in LC7.0.4 stable?

2015-05-05 Thread John Dixon
If I understand measureText it is for measuring the length of the text not the height of lines on top of each other... at least that is how I have used it... > Date: Tue, 5 May 2015 09:01:37 -0700 > From: bod...@bodinetraininggames.com > To: use-revolut...@lists.runrev.com > Subject: Confirm b

RE: Confirm bug in MeasureText in LC7.0.4 stable?

2015-05-05 Thread tbodine
Hi John. It wouldn't be the first time the bug turned out to be in my brain. But does it strike anyone else, based on the dictionary description, that this should be reporting info. similar to the formattedHeight and formattedWidth? Use the measureText function to find the dimensions of text draw

Re: Unicode

2015-05-05 Thread Paul Dupuis
On 5/5/2015 1:00 PM, Peter Haworth wrote: > I just set up the following test > > 2 fields and a button > > Using the Greek keyboard, I keyed "qwerty" into the first field and > "QWERTY" into the second field. > > The button script has in its mouseUp handler: > > set the caseSensitive to false > pu

Re: SQLite Table Exists

2015-05-05 Thread Terence Heaford
> On 5 May 2015, at 15:41, Peter Haworth wrote: > > If you need to create the table > if it doesn't exist, you could CREATE TABLE IF NOT EXISTS. Was just looking for a generalised method of determining if a table exists without having to create the table. Thanks Terry _

Re: SQLite Table Exists

2015-05-05 Thread Terence Heaford
> On 5 May 2015, at 14:41, Mike Bonner wrote: > > oh, and you can add a limit 1 to make it faster. (no sense in selecting a > whole tables data) What is returned if the table contains no data? All the best Terry ___ use-livecode mailing list use-

Re: Unicode

2015-05-05 Thread Peter Haworth
Interesting. I wonder why my results are different. I'm using LC 7.0.4 and Yosemite. and get false,false no matter what caseSensitive is set to. If I use US keyboard, everything works as expected. It's only when keying in Greek characters that I always get false,false. Pete Pete lcSQL Softwar

Re: SQLite Table Exists

2015-05-05 Thread Richard Gaskin
Dr. Hawkins wrote: > On Tue, May 5, 2015 at 7:27 AM, Richard Gaskin wrote: > >> The example given in the Dictionary entry for the >> revDatabaseTableNames function may do what you need: >> >>if tTableName is among the lines of \ >>revDatabaseTableNames(sgDatabaseId) then > > But be cau

Re: Unicode

2015-05-05 Thread Erik Beugelaar
Greece has to pay a lot back to the EU, it must be a hack... Peter Haworth wrote: Interesting. I wonder why my results are different. I'm using LC 7.0.4 and Yosemite. and get false,false no matter what caseSensitive is set to. If I use US keyboard, everything works as expected. It's only w

Re: SQLite Table Exists

2015-05-05 Thread Dr. Hawkins
On Tue, May 5, 2015 at 10:55 AM, Richard Gaskin wrote: > Dr. Hawkins wrote: > > On Tue, May 5, 2015 at 7:27 AM, Richard Gaskin wrote: > > > >> The example given in the Dictionary entry for the > >> revDatabaseTableNames function may do what you need: > >> > >>if tTableName is among the lines

Re: Unicode

2015-05-05 Thread Paul Dupuis
On 5/5/2015 1:52 PM, Peter Haworth wrote: > Interesting. I wonder why my results are different. I'm using LC 7.0.4 > and Yosemite. and get false,false no matter what caseSensitive is set to. > > If I use US keyboard, everything works as expected. It's only when keying > in Greek characters that

[OT] False timeout error after URL retrieval

2015-05-05 Thread J. Landman Gay
I am using "get url" to retrieve data from an AWS server. The server scripts are in Ruby on Rails and they return the correct data. This has been working fine for over a year until last week when the IT person upgraded Ruby to the latest version. Suddenly we're getting timeout errors all over t

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread Trevor DeVore
Jacque, It sounds to me that the server is sending back an incorrect content length header for the data that is being sent to LiveCode. LiveCode maybe waiting for more data that is never going to arrive. Try comparing the actual length of the data to the content length value in the header and see

Re: Confirm bug in MeasureText in LC7.0.4 stable?

2015-05-05 Thread Scott Rossi
If you need the text height, could you use the formattedRect property? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 5/5/15, 10:09 AM, "tbodine" wrote: >Hi John. > >It wouldn't be the first time the bug turned out to be in my brain. But >does >it strike anyone else,

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread J. Landman Gay
On 5/5/2015 1:21 PM, Trevor DeVore wrote: Jacque, It sounds to me that the server is sending back an incorrect content length header for the data that is being sent to LiveCode. LiveCode maybe waiting for more data that is never going to arrive. Try comparing the actual length of the data to the

Re: Unicode

2015-05-05 Thread Peter Haworth
I tried pasting from Google translate using my first name in lower and upper case, but I still get false,false. The variable seems to be OSX vs Windows. Maybe someone from RunRev will chime in on this. If not, I'll probably enter a QCC report and see what they have to say. Pete lcSQL Software <

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread Trevor DeVore
On Tue, May 5, 2015 at 3:25 PM, J. Landman Gay wrote: > On 5/5/2015 1:21 PM, Trevor DeVore wrote: > >> Jacque, >> >> It sounds to me that the server is sending back an incorrect content >> length >> header for the data that is being sent to LiveCode. LiveCode maybe waiting >> for more data that i

Re: can you control the loc of the answer dialog?

2015-05-05 Thread dunbarx
Hi. I think this is an OS thing. Easy to roll your own, though. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/can-you-control-the-loc-of-the-answer-dialog-tp4691838p4691872.html Sent from the Revolution - User mailing list archive at Nabble.com.

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread J. Landman Gay
On 5/5/2015 2:39 PM, Trevor DeVore wrote: On Tue, May 5, 2015 at 3:25 PM, J. Landman Gay wrote: On 5/5/2015 1:21 PM, Trevor DeVore wrote: Jacque, It sounds to me that the server is sending back an incorrect content length header for the data that is being sent to LiveCode. LiveCode maybe wa

[OT] False timeout error after URL retrieval

2015-05-05 Thread Trevor DeVore
Transfer-encoding =chunked is used in situations where content is being dynamically generated on the server. There should be a number specifying the size of the chunk being sent to LiveCode. That doesn't appear to be in your header. Aren't you serving static files? I would think that content-leng

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread J. Landman Gay
On 5/5/2015 3:24 PM, Trevor DeVore wrote: Transfer-encoding =chunked is used in situations where content is being dynamically generated on the server. There should be a number specifying the size of the chunk being sent to LiveCode. That doesn't appear to be in your header. Aren't you serving s

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread J. Landman Gay
On 5/5/2015 3:24 PM, Trevor DeVore wrote: Transfer-encoding =chunked is used in situations where content is being dynamically generated on the server. There should be a number specifying the size of the chunk being sent to LiveCode. That doesn't appear to be in your header. Aren't you serving s

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread Trevor DeVore
On Tue, May 5, 2015 at 4:44 PM, J. Landman Gay wrote: > On 5/5/2015 3:24 PM, Trevor DeVore wrote: > >> Transfer-encoding =chunked is used in situations where content is being >> dynamically generated on the server. There should be a >> number specifying the size of the chunk being sent to LiveCo

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread Dave Cragg
> On 5 May 2015, at 21:24, Trevor DeVore wrote: > > Transfer-encoding =chunked is used in situations where content is being > dynamically generated on the server. There should be a > number specifying the size of the chunk being sent to LiveCode. That > doesn't appear to be in your header. Tre

Re: Unicode

2015-05-05 Thread Peter W A Wood
Are you sure that the two Greek words are actually the same? I don’t know Greek but from a quick scan of the Unicode docs, it seems that not all Greek letters have an uppercase equivalent. Google translate cannot find a Greek translation of PETER other than PETER which is clearly not equal to Go

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread Trevor DeVore
On Tuesday, May 5, 2015, Dave Cragg wrote: > > > From memory, I think the size of each chunk is sent with each chunk itself > in the message portion of the reply, not in the headers. Ah, that would explain it. libUrl should deal with this. It’s a fairly common transfer method. (Sorry, > Jacque

Re: Unicode

2015-05-05 Thread Peter Haworth
Right, this is where I get confused on the issue of whether there are uppercase equivalents of all lowercase glyphs in all languages. The link you provided sheds light on this Pete lcSQL Software Home of lcStackBrowser and SQLiteA

Re: [OT] False timeout error after URL retrieval

2015-05-05 Thread J. Landman Gay
On May 5, 2015 6:17:48 PM CDT, Trevor DeVore wrote: >On Tuesday, May 5, 2015, Dave Cragg >wrote: >> >> >> From memory, I think the size of each chunk is sent with each chunk >itself >> in the message portion of the reply, not in the headers. > > > Ah, that would explain it. > >libUrl should deal

Re: Re: Crash with testflight only ?!

2015-05-05 Thread Ludovic THEBAULT
> Le 5 mai 2015 à 09:51, Ludovic THEBAULT a > écrit : > > >> Le 5 mai 2015 à 08:41, Ludovic THEBAULT a >> écrit : >> >> Hello, >> >> Why an app crash at launch if it is distributed with Tesflight and not if it >> is directly installed on the device by iTunes (same device, same code) or in

Re: Status of on-rev restore?

2015-05-05 Thread jbv
Hi list Is anyone still waiting for the restoration of their sites on pancake ? On sunday we were told by Heather that we would get a new login for our new account on sage but we haven't heard anything yet. Thanks jbv ___ use-livecode mailing list use-l

Re: Status of on-rev restore?

2015-05-05 Thread AndyP
Most of mine came back late yesterday afternoon. But I still have one email account failing and two WordPress sites unavailable. So there is movement on the transfer. - Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15

Re: SQLite Table Exists

2015-05-05 Thread Terence Heaford
Thanks to everyone who has responded. If the built in LC routine revDatabaseTableNames is not reliable I need to use something similar to that provided in my first post. I can’t see why that should not be reliable? All the best Terry ___ use-livecode