[TEASER] It is Alive! SFTP support in LiveCode

2011-06-06 Thread Andre Garzia
Folks, Today, more precisely at 3:03 AM, the SFTP external worked for the first time and transfered its first file. It was a simple text file called test.txt whose content was simply YES, but hey, it worked. The SFTP external is based on libCURL and libSSH2. Right now I managed to build it only

Logical Expressions

2011-06-06 Thread Van Brollini
What is the best way to do multiple logical comparisons and get them to work? For example if ((gUSL = pos_vrange) AND (gUSL = neg_vrange)) then get TRUE put it into tTester[x][rng_check] else get FALSE put it into

RE: Logical Expressions

2011-06-06 Thread John Dixon
Does this work for you... shedding the outer brackets ? if (gUSL = pos_vrange) AND (gUSL = neg_vrange) then What is the best way to do multiple logical comparisons and get them to work? For example if ((gUSL = pos_vrange) AND (gUSL = neg_vrange)) then get TRUE

Re: Logical Expressions

2011-06-06 Thread Van Brollini
stupid mistake. was not referencing cell. pos_range should be tTester[x][pos_range] works right now. thanks. - Start Original Message - Sent: Mon, 6 Jun 2011 08:21:18 +0100 From: John Dixon dixo...@hotmail.co.uk To: use-livecode@lists.runrev.com Subject: RE: Logical Expressions

Re: Logical Expressions

2011-06-06 Thread Dick Kriesel
Now that you've made your code work, you can consider making it shorter and faster. LiveCode supports the syntax: put boolean expression into container For example, put gUSL = pos_vrange and gUSL = neg_vrange into Tester[x][rng_check] -- Dick On Jun 6, 2011, at 12:37 AM, Van Brollini wrote:

Re: SubStacks and message path

2011-06-06 Thread Keith Clarke
...thanks Robert but 'do login()' was working just fine until I moved it from a login 'card' in the mainstack into into a login substack. And it does again now, since I have taken Jaque's advice to use groups with switched visibility (and background images that simulate popping a substack

Re: Logical Expressions

2011-06-06 Thread Van Brollini
thanks, didi not know that Van - Start Original Message - Sent: Mon, 6 Jun 2011 01:39:45 -0700 From: Dick Kriesel dick.krie...@mail.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Logical Expressions Now that you've made your code work, you can consider making it

how to shorten a case structure?

2011-06-06 Thread Tiemo Hollmann TB
Hi, I just don't know if I don't see the obvious, or if this is the only way to go. I have a switch structure, which looks in a shot form like this: Switch myVar case foo1 myFunction 1 case foo2 myFunction 2 etc. very regular 1 to 1, 2 to 2. Is there a way, with do. or something like

RE: how to shorten a case structure?

2011-06-06 Thread John Dixon
on mouseUp put foo random(3) into myVar put (last char of myVar) into whichOne switch whichOne case whichOne put myFunction whichOne break end switch end mouseUp Maybe ? From: toolb...@kestner.de To: use-livecode@lists.runrev.com

AW: how to shorten a case structure?

2011-06-06 Thread Tiemo Hollmann TB
Is it really that easy? As I thought - the obvious... Thanks Tiemo -Ursprüngliche Nachricht- Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] Im Auftrag von John Dixon Gesendet: Montag, 6. Juni 2011 14:22 An: use-livecode@lists.runrev.com

Re: how to shorten a case structure?

2011-06-06 Thread Mark Schonewille
Hi, I think the point is that you wouldn't need the switch anymore: on bar x do (foo x) end bar -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download

AW: how to shorten a case structure?

2011-06-06 Thread Tiemo Hollmann TB
Hi Mark, you are right in this case, but actually my switch structure has a couple of different cases, each with a counter. Thanks Tiemo -Ursprüngliche Nachricht- Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] Im Auftrag von Mark Schonewille

Option Menus

2011-06-06 Thread Todd Geist
Hello, I have another simple question. In HTML for example, when I set up an Option menu I can set both the Name and the Value of the each of the options in the list. This give me a way to display one thing to the use but reference a different value on selection of that item. In Live Code I can

Re: How do you build the tabs like in the script editor

2011-06-06 Thread Richard Gaskin
Good to see you here, Mark: It's a while since I've been on the list but anyway, how would I go about building the same tab interface (multiple document interface) as the LC script editor? As the user wants to open a document, they would have the choice of overwriting the existing open

Re: Option Menus

2011-06-06 Thread Richard Gaskin
Todd Geist wrote: I have another simple question. In HTML for example, when I set up an Option menu I can set both the Name and the Value of the each of the options in the list. This give me a way to display one thing to the use but reference a different value on selection of that item. In

Re: Option Menus

2011-06-06 Thread Ken Ray
I have another simple question. In HTML for example, when I set up an Option menu I can set both the Name and the Value of the each of the options in the list. This give me a way to display one thing to the use but reference a different value on selection of that item. In Live Code I can

Calling a WSDL from liveCode (standalone) or Classic rev CGI?

2011-06-06 Thread Malte Brill
Hi all, I need to call a WSDL from within liveCode, ideally from a Revolution CGI. Did anyone of you do such a thing already? If so, mind to share a recipe? As far as I know there are soap calls involved. I would not want to switch that to php if that can be avoided. All the best, Malte

Re: how to shorten a case structure?

2011-06-06 Thread Nonsanity
switch myVar case foo1 case foo2 myFunction (last char of myVar) break ... If that's what you mean? ~ Chris Innanen ~ Nonsanity On Mon, Jun 6, 2011 at 8:14 AM, Tiemo Hollmann TB toolb...@kestner.dewrote: Hi, I just don't know if I don't see the obvious, or if

Re: Cyrillic input

2011-06-06 Thread Malte Brill
Hi all, thanks to Mark Waddingham, I was able to get a few things sorted regarding password and numbers only fields. Short recap: The only keyboard message that appears to fire with cyrillic keyboards is rawKeyUp. I am currently working on a little field library that I will be making

RE: Cyrillic input

2011-06-06 Thread Slava Paperno
Yes, please. S. On Behalf Of Malte Brill Sent: Monday, June 06, 2011 10:32 AM To: use-livecode@lists.runrev.com Subject: Re: Cyrillic input ... Short recap: The only keyboard message that appears to fire with cyrillic keyboards is rawKeyUp. I am currently working on a little field library

Saving downloaded zip file: cpgz file type

2011-06-06 Thread Keith Clarke
Hi folks, I'm downloading a zip file via a web service call - the file is embedded as a long string within the ...resultzipFile node of the XML file, accompanied by a set of nodes that name the (xml text) files that I should find within the zipped payload. So, I save this string out to to

RE: Option Menus

2011-06-06 Thread Slava Paperno
I use a custom property for this purpose. For example, when I use it as a navigation menu to go to a card that the user selects from an Options control, my cards have their real names and also each card has a custom property called DisplayName. Then I use this in the Options control (where

Re: Saving downloaded zip file: cpgz file type

2011-06-06 Thread Mark Schonewille
Hi Keith, Your zip file is corrupt. First of all, replace file: with binfile:. It is possible that the revXML external can't cope with binary data. In that case, your zip file will stay corrupt and you'll have to retrieve the data manually. -- Best regards, Mark Schonewille Economy-x-Talk

Re: How do you build the tabs like in the script editor

2011-06-06 Thread J. Landman Gay
On 6/6/11 8:20 AM, Richard Gaskin wrote: Good to see you here, Mark: It's a while since I've been on the list but anyway, how would I go about building the same tab interface (multiple document interface) as the LC script editor? As the user wants to open a document, they would have the

SMIL and QuickTime

2011-06-06 Thread Klaus on-rev
Hi friends, anyone ever worked with SMIL and QuickTIme? I have a strange problem :-/ This SMIL script literally stopped working over night???!!! smil xmlns:qt=http://www.apple.com/quicktime/resources/smilextensions; qt:autoplay=true qt:time-slider=true/ head layout

Re: [mobile:Android] mobileSetAllowedOrientations gives error

2011-06-06 Thread J. Landman Gay
On 6/5/11 5:00 PM, Roger Eller wrote: Have you heard anything on how the iOS/Android alignment is coming along at RunRev? Not really. The only info I have is that the team is swamped and working like mad. Presumably they are focusing mainly on all the bugs that affect *me*, but I'm not

Re: the hilitedLine of list field isn't highlighted

2011-06-06 Thread J. Landman Gay
On 6/5/11 12:19 AM, Slava Paperno wrote: I have a list field (MyListField) with a rawKeyDown handler that tells me which line is the hilitedLine after every key press. on rawKeyDown parKey put return the hilitedLine of me after msg pass rawKeyDown parKey end of rawKeyDown Probably a

Re: [TEASER] It is Alive! SFTP support in LiveCode

2011-06-06 Thread Bob Sneidar
I'll test it for you. Give me some guidelines if you will. I have a large complex Multi-OS network, with managed switches that support SFTP. Bob On Jun 5, 2011, at 11:16 PM, Andre Garzia wrote: Folks, Today, more precisely at 3:03 AM, the SFTP external worked for the first time and

Re: [TEASER] It is Alive! SFTP support in LiveCode

2011-06-06 Thread Pamela Crossley
Hallelujah, André, lots of us are waiting for your magic. Carry on! On Jun 6, 2011, at 2:16 AM, Andre Garzia wrote: Folks, Today, more precisely at 3:03 AM, the SFTP external worked for the first time and transfered its first file. It was a simple text file called test.txt whose content was

RE: the hilitedLine of list field isn't highlighted

2011-06-06 Thread Slava Paperno
Jacqueline, You're responding to email script with obvious goofs, sorry--but a little later I posted a link to a working demo that shows the problem: http://russian.cornell.edu/FocusProblem_Slava.zip My tests are in Windows 7, but someone on the list confirmed that the demo fails the same way on

Re: Calling a WSDL from liveCode (standalone) or Classic rev CGI?

2011-06-06 Thread Keith Clarke
Hi Malte, My understanding is that although a WSDL is just a type of text file - as in 'definition.wsdl.xml' - the mechanism needed to retrieve it will be driven by the target web service and the approach the developer has adopted for SOAP and/or REST access. The target web service should have

Re: the hilitedLine of list field isn't highlighted

2011-06-06 Thread J. Landman Gay
On 6/6/11 12:23 PM, Slava Paperno wrote: Jacqueline, You're responding to email script with obvious goofs, sorry--but a little later I posted a link to a working demo that shows the problem: http://russian.cornell.edu/FocusProblem_Slava.zip My tests are in Windows 7, but someone on the list

Re: Saving downloaded zip file: cpgz file type

2011-06-06 Thread Keith Clarke
Thanks for the response Mark, the tip on binfile and the possible limitations of revXML. This particular XML file isn't too complex. So, although I have the STSXML libary available, I'll first try extracting the zip file node string as a text chunk. Best, Keith.. On 6 Jun 2011, at 16:22,

RE: the hilitedLine of list field isn't highlighted

2011-06-06 Thread Slava Paperno
Yep, that's another great fix for the problem. Thanks, Jacqueline. S. -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of J. Landman Gay Sent: Monday, June 06, 2011 1:40 PM To: How to use LiveCode Subject: Re:

Re: Saving downloaded zip file: cpgz file type

2011-06-06 Thread Keith Clarke
Sorted - I dropped the string into TextWrangler and saved it with the same result, so it wasn't revXML failing to handle binary data. A deeper dig into the web service documentation found that zip file string is base64encoded. So, a quick decode before the save to URL binfile:... and all is

Re: My first Livecode iOS App with Externals (SQLite)

2011-06-06 Thread Andy Henshaw
Im not sure if the iOS store is the same, but what happens on the Mac App Store is after an update is released any reviews for the old version get pushed back to a second tab and a note says something like 'there are no reviews yet for this version'. You can still click on the tab to show the

Google Chrome and the Illusive Web Plugin

2011-06-06 Thread AcidJazz
I cross posted at runrev beginners forum, but thought folks here might be interested to know that Google Chrome is now more popular than Safari, and is actually approaching Firefox as the #2 browser world-wide. It's not there yet, but a quick inspection of the the figure below (taken from an

Re: Google Chrome and the Illusive Web Plugin

2011-06-06 Thread Pierre Sahores
Hi Mark, Chrome, is in the last weeks tests i did since Java applets are now supported on both OS X and Win platforms, more stable than Safari, faster and more ergonomic than Firefox. Would be useful (and if yes, urgent !) to get the plugin able to run on the Chrome platform... Best, --

How do you build the tabs like in the script editor

2011-06-06 Thread Mark Stuart
on Mon Jun 6 10:59:46 CDT 2011, J. Landman Gay wrote: I think the OP means horizontal tabs, since that's what the LiveCode editor uses. That's as simple as setting up a tab button where each tab opens either the correct card, or shows the correct group. Hi Jaqueline and Richard, Thanx for the

Re: Google Chrome and the Illusive Web Plugin

2011-06-06 Thread AcidJazz
Pierre, So you are one of the beta testers? That's great news. I'm looking forward to a more complete Chrome (and Live) experience. Thanks! Mark -- View this message in context:

Re: How do you build the tabs like in the script editor

2011-06-06 Thread Bob Sneidar
It's actually more like a menu. One of the caveats (at least in the past, they may have fixed it) is that like some types of menus, picking the same thing as you picked last time does not generate the menuPick command, so you have to fudge it. Bob On Jun 6, 2011, at 1:00 PM, Mark Stuart

Re: iCloud Document Sync

2011-06-06 Thread Andy Henshaw
If it works as well as Dropbox, and supports Windows as well as Mac it will be great. Never got to grips with externals, is there a guide somewhere as to how to get started. Andy On 6 Jun 2011, at 22:35, Andre Garzia wrote: thats what externals are for! On Mon, Jun 6, 2011 at 6:31 PM,

Re: How do you build the tabs like in the script editor

2011-06-06 Thread Jim Ault
On Jun 6, 2011, at 3:05 PM, Bob Sneidar wrote: It's actually more like a menu. One of the caveats (at least in the past, they may have fixed it) is that like some types of menus, picking the same thing as you picked last time does not generate the menuPick command, so you have to fudge

Re: [mobile:Android] mobileSetAllowedOrientations gives error

2011-06-06 Thread Roger Eller
On Mon, Jun 6, 2011 at 12:17 PM, J. Landman Gay wrote: On 6/5/11 5:00 PM, Roger Eller wrote: Have you heard anything on how the iOS/Android alignment is coming along at RunRev? Not really. The only info I have is that the team is swamped and working like mad. Presumably they are

Re: How do you build the tabs like in the script editor

2011-06-06 Thread Mark Wieder
Pete- Monday, June 6, 2011, 3:31:02 PM, you wrote: It's still that way in 4.6.0. Also note that the menuPick message for tabbed menus includes a parameter containing the previous tab selection as well as the one just clicked. Wish they'd done that for ALL types of menu buttons. Wait a

Re: Calling a WSDL from liveCode (standalone) or Classic rev CGI?

2011-06-06 Thread Mark Wieder
Malte- Monday, June 6, 2011, 7:21:33 AM, you wrote: I need to call a WSDL from within liveCode, ideally from a Revolution CGI. Did anyone of you do such a thing already? If so, mind to share a recipe? As far as I know there are soap calls involved. I would not want to switch that to php if

Re: How do you build the tabs like in the script editor

2011-06-06 Thread Peter Brigham MD
On Jun 6, 2011, at 6:49 PM, Jim Ault wrote: It is like clicking the same radio button in a group. If the user makes the same choice in a menu, since there is no change, should the menupick report it? If a tree falls in the forest and nobody is there to hear it, does it make a sound? Or, If

Re: How do you build the tabs like in the script editor

2011-06-06 Thread Pete
Touche! However changing menuPick to supply the previous selection for all menu buttons wouldn't anybody's code one iota until they decided to make use of that extra info. Pete Molly's Revenge http://www.mollysrevenge.com On Mon, Jun 6, 2011 at 5:36 PM, Mark Wieder mwie...@ahsoftware.net