Clipboard problem with Word and LC

2015-10-15 Thread Charles Szasz
I have been struggling with a font/clipboard problem for four days. The following script works great on the Mac (Yosemite) and LC 5.5.5 placing text from a field “preview” onto to a clipboard and then pasted into a word processing document. The type of font and font size is set from the font me

Re: Re: Export snapshot and native controls

2015-10-15 Thread Ludovic THEBAULT
> Le 15 oct. 2015 à 17:55, Paul Hibbert a écrit : > > Bill is spot on, try… > > export snapshot from this cd to file tFile as JPEG > > Paul Export snapshot from group … give me a screenshot without native controls just as your solution. It seem i need to fill a bug !

Re: CSV again.

2015-10-15 Thread Alex Tweedly
H ... my quick test of what was csv4Tab, but is now called csvToTab1 - see below - gives me (showing results with a colon ':' for the cell delimiter, i.e. replacing numtochar(29) from the code in the previous use-list code a,b,c ---> a:b:c "a","","c" ---> a::c Now to me, that's what it

Re: CSV again.

2015-10-15 Thread Richard Gaskin
Mike Kerner wrote: For everyone trying to get back up to speed on CSV, here's the closest thing to a "Standard", RFC 4180: https://tools.ietf.org/html/rfc4180 Unfortunately the "format" was around for so long before that RFC, and so many big companies have ignored the RFC since, that it doesn'

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Peter W A Wood
Mark > On 16 Oct 2015, at 07:26, Mark Waddingham wrote: > > I think that is a combination of precedence ('is really a' binds more tightly > than '+') and the bug Paul noticed with regards 'constants' which are > currently represented as strings internally except in specific cases due to a >

Re: CSV again.

2015-10-15 Thread Richard Gaskin
Mike Kerner wrote: csv4 does not handle it, and it comes up with a different result from csv2 (which is also wrong). I sent Richard proposed changes to csv2 which addresses that issue, but I'll wait while we collectively try to remember what the latest and greatest csv parser algorithm is befor

Re: CSV again.

2015-10-15 Thread Mike Kerner
For everyone trying to get back up to speed on CSV, here's the closest thing to a "Standard", RFC 4180: https://tools.ietf.org/html/rfc4180 On Thu, Oct 15, 2015 at 8:34 PM, Peter Haworth wrote: > Right I remember that although not what the exact problem was. In any > case, csv4Tab has been work

Re: CSV again.

2015-10-15 Thread Mike Kerner
csv4 does not handle it, and it comes up with a different result from csv2 (which is also wrong). I sent Richard proposed changes to csv2 which addresses that issue, but I'll wait while we collectively try to remember what the latest and greatest csv parser algorithm is before I try to come up wit

Re: CSV again.

2015-10-15 Thread Peter Haworth
Right I remember that although not what the exact problem was. In any case, csv4Tab has been working fine in my SQLiteAdmin program for at least a couple of years now, but I have no idea what flavor of csv files have been imported. Pete lcSQL Software Home of lcStackBrowser

Re: CSV again.

2015-10-15 Thread Alex Tweedly
Richard et al., sometime after that article, there was a further thread on the use-list. Pete Haworth found a case not properly covered by the version on the article, and I came up with a revised version (cutely called csv4Tab !! - csv3Tab was an interim, deeply buggy attempt) (It's in http

Re: CSV again.

2015-10-15 Thread Tim Selander
So, tell us what you really think about .CSV, Richard! :-) Tim Selander Tokyo, Japan On 15/10/16 8:34, Richard Gaskin wrote: stupidly complex really stupid stupid format really dumb idea ___ use-livecode mailing list use-livecode@lists.runrev.

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Mark Waddingham
I pondered 'is exactly' for the 'is really' semantics previously proposed which are the same as yours :) However I do think that it is slightly misleading - when it comes to numbers (due to the inexact representation used) you can end up with two numeric tokens which are slightly different but

Re: CSV again.

2015-10-15 Thread Richard Gaskin
Mike Kerner wrote: > Alex, Richard, etc. > > What do we consider the latest version of the csv parser? I think I > found a bug in Richard's CSV2Text code, and proposed changes, but he > wanted the discussion to go down over here, first. Then I noticed > that csv4Text is out over here, which make

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Mark Waddingham
I think that is a combination of precedence ('is really a' binds more tightly than '+') and the bug Paul noticed with regards 'constants' which are currently represented as strings internally except in specific cases due to a rather subtle issue with representations of numbers as strings. Sent

Re: CSV again.

2015-10-15 Thread Mike Kerner
Alex, Richard, etc. What do we consider the latest version of the csv parser? I think I found a bug in Richard's CSV2Text code, and proposed changes, but he wanted the discussion to go down over here, first. Then I noticed that csv4Text is out over here, which makes 2, I guess, a bit long in the

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Peter W A Wood
Mark > On 16 Oct 2015, at 01:07, Mark Waddingham wrote: > > put "0" + 0 into tVar1 -- tVar is really a number >put "0" & 0 into tVar2 -- tVar is really a string >put tVar1 is really tVar2 -- false The current implementation appears to differ a little from the above. You need to speci

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Paul Dupuis
On 10/15/2015 3:36 PM, Peter Haworth wrote: > There is a new operator in LC8, "is really" which may help the > string/number comparison issue. See the LC8 dictionary for details. The is really operator is only for types: /value/ is really [ nothing | a boolean | an integer | a real | a string | a

Re: How to go to a stack without a flash

2015-10-15 Thread Roger Eller
Have you used any Quicktime transitions that have been left by mistake? On Thu, Oct 15, 2015 at 3:45 PM, William Prothero wrote: > Folks: > I haver a splash stack and I’m trying to open the app stack in the same > rect, without a flash. This should be easy, but I can’t get it to work with > wha

Re: How to go to a stack without a flash

2015-10-15 Thread Scott Rossi
Without knowing what's going on in your stacks, it's tough to know for sure, but it's unlikely you're doing anything "wrong". In addition to what Marty suggested, another option is to set the blendLevel of a stack to 100 before making it visible, and the setting (or ramping) the stack's blendLevel

Re: How to go to a stack without a flash

2015-10-15 Thread Marty Knapp
Hey Bill, When you go to the app stack you can use the form "go stack stTarget in window (the short name of this stack)" If the size of the stacks are the same it looks pretty seamless. Marty Folks: I haver a splash stack and I’m trying to open the app stack in the same rect, without a flash

How to go to a stack without a flash

2015-10-15 Thread William Prothero
Folks: I haver a splash stack and I’m trying to open the app stack in the same rect, without a flash. This should be easy, but I can’t get it to work with what is obvious to me. Here’s my script. on mouseUp put the name of this stack into splashStackName put the filename of this stack into

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Peter Haworth
There is a new operator in LC8, "is really" which may help the string/number comparison issue. See the LC8 dictionary for details. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin O

RE: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Ralph DiMola
I had a thread a month or 2 ago (Compare numeric strings with leading zeros). I needed to make sure that 0123 <> 123 for password validation. There were many good suggestions but I finally wound up with: function stringsAreEqual pString1, pString2 set the caseSensitive to true if (len(pString1

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Geoff Canyon
On 2015-10-14 22:19, Devin Asay wrote: > Shouldn’t there be a way to force a string comparison? I know LC tries > to be all helpful about casting numerals as numbers, but what if I > want to know if it’s the exact string? > I think you have come up with the best syntax right there. put 3 is "3"

RE: iPad File structure question

2015-10-15 Thread Ralph DiMola
First of all I created a function theEngine. This will allow testing in the IDE. function TheEngine local tStackPath switch case the environment = "Mobile" return the engine folder break default put the long name of this stack into tStackPath replace ("stack ""e) with empty in tStackPa

Re: iPad File structure question

2015-10-15 Thread Glen Bojsza
Well I am behind when learning to make an iPad app... the SQLite is also a checkbox in iOS Standalone settings (I see nothing about database libraries so I assume LC 8 handles this in the background) Also, the "engine's folder" may work since I would load the database in memory while the app is ru

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Mike Kerner
yes, I know and it's great, like, what is the other one? "is me"? If we're going to leave "is a" as is, then let's come up with something better than "is really a" On Thu, Oct 15, 2015 at 1:24 PM, Scott Rossi wrote: > I'm not following all the nuances of this, but it seems you have laid the >

Re: scaleFactor strangeness

2015-10-15 Thread hh
@Mark > this proposal is identical to anything which offers the ability to set > a transform on any object and so still suffers from it. Not really, if you mean affine transform. Translation destroys the wonderful commutativity you have with my proposal: If you interchange objects in the owner pa

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Mark Waddingham
Unfortunately we already had 'is a' :( Sent from my iPhone > On 15 Oct 2015, at 18:16, Mike Kerner wrote: > > We have to be able to do better than "is really a". If anything, "could be > a" and "is a" would be more helpful, where "is a" tells us what is going on > under the hood and "could be

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Scott Rossi
I'm not following all the nuances of this, but it seems you have laid the groundwork for a new operator: is useful if theVar is useful then... Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design > On Oct 15, 2015, at 10:07 AM, Mark Waddingham wrote: > > So, anyway, a couple of

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread dunbarx
See a feature request I made in the forums. Whichever is the best/easiest/most robust is up for grabs. Craig Newman -Original Message- From: Mark Waddingham To: How to use LiveCode Sent: Thu, Oct 15, 2015 1:08 pm Subject: Re: Forcing string comparisons, or When is "0" not 0? On 2

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Mark Waddingham
Definitely not before we add ain't... If x ain't y then darnit ;) Sent from my iPhone > On 15 Oct 2015, at 18:11, Dr. Hawkins wrote: > >> On Thu, Oct 15, 2015 at 10:07 AM, Mark Waddingham wrote: >> >> We added 'is really a' operators in LC8 to help with writing code which >> needs to preser

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Mike Kerner
We have to be able to do better than "is really a". If anything, "could be a" and "is a" would be more helpful, where "is a" tells us what is going on under the hood and "could be a" lets us know what we can do with the container. On Thu, Oct 15, 2015 at 1:11 PM, Dr. Hawkins wrote: > On Thu, Oc

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Dr. Hawkins
On Thu, Oct 15, 2015 at 10:07 AM, Mark Waddingham wrote: > We added 'is really a' operators in LC8 to help with writing code which > needs to preserve values exactly (the main use-case is lcVCS) - so we have > been considering an 'is really' operator. > Soon to be accompanied by the 'damnit, I m

Re: Forcing string comparisons, or When is "0" not 0?

2015-10-15 Thread Mark Waddingham
On 2015-10-14 22:19, Devin Asay wrote: Shouldn’t there be a way to force a string comparison? I know LC tries to be all helpful about casting numerals as numbers, but what if I want to know if it’s the exact string? I think this is one of those things which has come up periodically over the ye

Re: I don't get Quicktime to run under LC 6.7.6

2015-10-15 Thread panagiotis merakos
Hi Tiemo, What happens if you do: on preopenstack put the filename of player "myPlayer" into tOldFilename set the filename of player "myPlayer" to empty set the dontuseQT to false set the filename of player "myPlayer" to tOldFilename [...] end preopenstack Best regards, Panos -- On Thu, Oct 1

Re: iPad File structure question

2015-10-15 Thread Glen Bojsza
This must be how a lot of the other apps are doing it since I have seen their SQLite files in their app contents. I am only doing read only and was hoping that this be fine but your suggestions are well taken. What is the syntax for copying the file from the engine's folder? Also any idea why I

Re: scaleFactor strangeness

2015-10-15 Thread Mark Waddingham
On 2015-10-15 11:08, Monte Goulding wrote: Hmm... Even with the view object you would have an issue there. Inside the view they would be relative to the topleft of the view and in the coordinate system of the stack. If the message is passed it then becomes arguable whether the message hierarchy i

I don't get Quicktime to run under LC 6.7.6

2015-10-15 Thread Tiemo Hollmann TB
Hello, OSX 10.9.5. Because of video file compatibility I still want to use QT in 6.7.6. In preopenstack I set: set the dontuseQT to false put the qtVersion into tTest In IDE: start player "myplayer" -- nothing happens. The player runs (I get the playStopped status after the video is finished),

RE: iPad File structure question

2015-10-15 Thread Ralph DiMola
Mobile app's files specified in the "copy files" pane of the standalone settings are accessed via "the engine folder" path. You can't open SQLite DBs in "the engine folder" because "the engine folder" is read-only. There is no facility to open a SQLite db read-only. Option 1:Copy the db from "the e

Re: Export snapshot and native controls

2015-10-15 Thread Paul Hibbert
Bill is spot on, try… export snapshot from this cd to file tFile as JPEG Paul > On 15 Oct 2015, at 08:50, Earthednet-wp wrote: > > Ludevic, > > I found that it's better to put the area you want to take a snapshot of, in a > group and take the snapshot of the group. Leave out any rect. This w

Re: Export snapshot and native controls

2015-10-15 Thread Earthednet-wp
Ludevic, I found that it's better to put the area you want to take a snapshot of, in a group and take the snapshot of the group. Leave out any rect. This way LC doesn't use the screen buffer to get the image data, which avoids some problems on some pc's. I'm not at my office, but can supply e

Re: scaleFactor strangeness

2015-10-15 Thread Mark Waddingham
On 2015-10-15 16:45, hh wrote: The scalefactor SF of a button in a (non-background-) group on a card is then SF(stack) * SF(card) * SF(group) * SF(button). The problem I am concerned about is actually the differing co-ordinate systems at each level here and how that affects script - this pro

Release: 6.7.8 RC 1 / 7.1.1 RC 1

2015-10-15 Thread Sebastien Nouat
Dear List Members, We are pleased to announce the release of LiveCode 6.7.8 RC 1 and 7.1.1 RC 1. *Release Contents * This release has been delayed due to issues with iOS 9.0 and Xcode 7.0, but on the other side, we can announce that: - 51 bugs are fixed in LiveCode 6.7.8 RC 1 - 24 bugs a

Re: scaleFactor strangeness

2015-10-15 Thread hh
> The scalefactor SF of a button in a (non-background-) group on a card is then > SF(stack) * SF(card) * SF(group) * SF(button). Should read: The 'total' scalefactor TSF of a button in a (non-background-) group on a card is then TSF = SF(stack) * SF(card) * SF(group) * SF(button). __

Re: scaleFactor strangeness

2015-10-15 Thread hh
The scalefactor problem -- I reported this already months ago, in vain. Currently LC uses the scalefactor as if the physical device has changed accordingly. It scales(nearly) everything, and especially global coordinates. That's why windows walk out to offscreen if you use a scalefactor > 1 and a

iPad File structure question

2015-10-15 Thread Glen Bojsza
Hello, I am working on an iPad app and have two SQLite databases that I want to be stored in the contents of the app itself and not placed in the documents folder. I am using LC 8. Q. Under Standalone Application Settings all options are "grayed" out so I can't select Script Libraries for databa

Re: From any button script, how can I reset the scrollbar of a field to the "top" ?

2015-10-15 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, > The scrolled amount of a field is defined by the vscroll (vertical) and > hscroll (horizontal) properties, so to set the scrollbar back to the top, > do this: > > set the vscroll of field "myField" to 0 Thanks David ! I tried everything I knew, but have never

Re: scaleFactor strangeness

2015-10-15 Thread Monte Goulding
Hmm... Even with the view object you would have an issue there. Inside the view they would be relative to the topleft of the view and in the coordinate system of the stack. If the message is passed it then becomes arguable whether the message hierarchy includes the stack the view is in and wheth

Re: scaleFactor strangeness

2015-10-15 Thread Mark Waddingham
On 2015-10-15 09:18, Richard Gaskin wrote: Scripts stay simple to write, coordinates obtainable either translated for scale or not with minimal effort. This is all well and good - however the part you haven't addressed is what about co-ordinates that 'come into' the engine. e.g. mouseMove has

Re: scaleFactor strangeness

2015-10-15 Thread Richard Gaskin
Dr. Hawkins wrote: > As far as retrofitting to the older language, as someone (Richard?) > mentioned, it could be done by > > set the groupTop of field myField to 100 > > and so forth. I don't think that one's mine, but similar ideas have been floating around for a while for making positioning