Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-21 Thread Gerry
So more messing about reveals that my problem wasn't with libUrlDownloadToFile at all - but it's still weird. I have a button that calls a command - upDateSongs - from its script. If upDateSongs is in the stack script everything works fine. However if it's in the card script the app goes mad - it

libUrlDownloadToFile & urlProgress

2011-03-21 Thread Gerry
I'm using libUrlDownloadToFile to download some mp3s. As you might know libUrlDownloadToFile periodically sends the message "urlProgress" to the originating object so you can monitor the progress of downloads. It's working well, but I'm confused about when libUrlDownloadToFile stops sending th

Re: Getting a single column of a datagrid

2011-03-21 Thread Trevor DeVore
On Mon, Mar 21, 2011 at 8:18 PM, Bob Sneidar wrote: > > It would be nice if printkeys() was public domain but I don't think it is. > Still, sqlYoga is a good investment anyways. Heck I might have paid what he > charges for sqlYoga just for that function! ;-) > Here you go :-) /** * \brief Ret

Re: Getting a single column of a datagrid

2011-03-21 Thread Peter Haworth
There's a printkeys function in the datagrid library: send "printkeys" to group "Datagrid1", same format as I think you referred to for the SQLYoga printkeys. There is a caveat that it only prints the first line of each key but that might be OK for you. Pete Haworth On Mar 21, 2011, at 5:18 P

Live LiveCode Code Event #15 - wrap-up

2011-03-21 Thread Mark Schonewille
Dear LiveCoders, Last Saturday, 19 March, we had another nice on-line gathering of LiveCode fans. This time we had 2 interesting presentations, both of which you can watch again, if you missed the event. Jim demonstrated some methods of rapidly converting images to create kinds of moods and st

Getting a single column of a datagrid

2011-03-21 Thread Bob Sneidar
You may remember a while back my wanting a quick way to extract a single column of data from a datagrid without having to go through a repeat loop? Well if you use Trevor's sqlYoga, it comes with a neat little function called printkeys(). If you have it, try this trick: Let's say you have a da

Stand-alone issues: lost images and go to (sub) stack scripts fail

2011-03-21 Thread Keith Clarke
Hi folks, I need some help struggling with deploying my first multi-stack stand-alone. Images in the main stack and sub-stack (within the same folder as the .rev file) are greyed-out on both Mac and web deployments. On the web deployment none of the button or link scripts that use 'go to stack'

[RevServer] LiveCode playing well with PHP

2011-03-21 Thread Andre Garzia
Folks, Today I faced a little problem that appeared quite hard first. I use a commercial captcha library that was built in PHP. The problem was that the captcha library wrote to the PHP Session and the captcha verification tried to read from that session. My confirmation page is an old-style Revol

Re: Unicode and Mac keyboard layouts.

2011-03-21 Thread Devin Asay
On Mar 21, 2011, at 11:19 AM, Richmond wrote: > On 03/21/2011 02:28 PM, Peter W A Wood wrote: >> Richmond >> >> On 21 Mar 2011, at 18:35, Richmond wrote: >> >>> Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in >>> my (endless system development lifecycle) Devawriter and the

Re: Formatting individual words in a text field manually

2011-03-21 Thread Keith Clarke
Thanks, Stephen, I'm still very much a LiveCode beginner and need to learn more about the ins and outs of text manipulation over the next few weeks, so I'd like to see that example stack. Meanwhile, as I have to deliver this demonstrator quickly (and as things like links have nowhere to go yet)

Re: Formatting individual words in a text field manually

2011-03-21 Thread Keith Clarke
...ah, great - thanks Craig. That'll do just nicely for what I'm cobbling together. Not quite a native version of CKEditor but I don't need much for this concept demonstrator. On 21 Mar 2011, at 19:19, dunb...@aol.com wrote: > Keith. > > > There is the "text" menu. It doesn't have everything,

Re: Formatting individual words in a text field manually

2011-03-21 Thread stephen barncard
You could write a quick html text creator from scratch almost faster that it would take me to find a demo stack online somewhere. We've all rolled a few of our own tools while coding, it's so easy. Having said that, if you contact me off-list I will forward a stack that converts text in a Livecode

Re: Formatting individual words in a text field manually

2011-03-21 Thread dunbarx
Keith. There is the "text" menu. It doesn't have everything, though. Craig Newman -Original Message- From: Keith Clarke To: How to use LiveCode Sent: Mon, Mar 21, 2011 3:14 pm Subject: Formatting individual words in a text field manually Hi folks, I realise it may be anathema t

Formatting individual words in a text field manually

2011-03-21 Thread Keith Clarke
Hi folks, I realise it may be anathema to ask a development community how to do things manually but I'm creating a concept prototype and want to show example results from scripts, without having to write them all yet (before I get the budget!). So, what is the easiest way to manually format an i

Re: SQL and other databases

2011-03-21 Thread Peter Haworth
Right, I'm slowly getting to grips with this. So far, I've discovered that table names/column names should be enclosed in back ticks not double quote characters and that SQLite AUTOINCREMENT = mySQL AUTO_INCREMENT. Weems like all my tables are being created once I make those changes. Next st

Re: SQL and other databases

2011-03-21 Thread Bob Sneidar
I may have mentioned in passing in another post, I use MySQLWorkbench. If you copy/paste the sequel to create the table into the query browser, you will get a red X to the left of the offending line, and the part that is wrong will be in another color than the "good" sql. It's pretty easy to see

Re: SQL and other databases

2011-03-21 Thread Peter Haworth
Thanks Bob, that's a good start. I'll search for the post with the link to differences. I hope you're right that my queries will all still work fine. tRight now, I'm struggling to get the database created. I was hoping I could export the db structure using the Firefox SQLite manager and then

Re: Unicode and Mac keyboard layouts.

2011-03-21 Thread Richmond
On 03/21/2011 02:28 PM, Peter W A Wood wrote: Richmond On 21 Mar 2011, at 18:35, Richmond wrote: Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in my (endless system development lifecycle) Devawriter and the Mac merrily trips over into a Devanagari keyboard entry method that

Re: Dial with USB modem

2011-03-21 Thread Jerry J
Does it not show up in the driverNames? --Jerry J On Mar 20, 2011, at 9:24 PM, Philip Usher wrote: > Back in the days when I was using a serial modem, I developed several stacks > which included dialing phone numbers using write to file modem. How might > Revolution write to a built in USB mod

Re: SQL and other databases

2011-03-21 Thread Bob Sneidar
Hi Peter. Well I don't have a complete listing because I am finding them out as I go. My current project gets the SQL to create a table from the sqlite_master table, then massages it to create the same table in mySQL. MySQL uses SELECT CREATE TABLE to get this information. One gotcha is that

Re: Dial with USB modem

2011-03-21 Thread stephen barncard
If this is a one-shot project, you could use an old-fashioned external serial-connected modem and a Keyspan USB-serial adaptor. 2011/3/21 Björnke von Gierke > Unless there's some command line app that you can use, you would need an > external that hooks into the driver :( > > On 21 Mar 2011, at

Re: SQL and other databases

2011-03-21 Thread Peter Haworth
Bob, I'm about to make the leap from sqlite to mySQL so I'm very interested in the differences you mentioned. I think I've seen some of them in posts on the list here but any chance you could summarise them? I guess I am expecting some functional improvements in mySQL over sqlite since sqlite

Re: SQL and other databases

2011-03-21 Thread Bob Sneidar
Hypercard began to slow down tremendously once you got past 1000 cards. People began to experience index corruption not long after that. Stacks could become unreadable and unrepairable. The promise of SQL as I recall was to be able to have a standard query language that worked with foreign da

Re: combobox

2011-03-21 Thread Kee Nethery
On Mar 21, 2011, at 1:28 AM, Terry Judd wrote: > Well, that's a real problem. FWIW I can't reproduce a crash here in 4.5.3 > (Mac) or 4.5.1 (Win). > > I've just tried a slightly more sophisticated version of my test routine > (that is more like the situation you originally outlined) and it all w

Re: [OT] Post Conference Fun Stuff

2011-03-21 Thread Scott Rossi
Recently, Kevin Miller wrote: > I'm not ready to announce anything yet but just so you know... We are > looking at whether we can organize a group trip to this museum in an evening > as part of the conference. Please stay tuned. Well, as Mark W suggested, there's also The Tech, which is a lot clo

Re: Unicode and Mac keyboard layouts.

2011-03-21 Thread Peter W A Wood
Richmond > Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in > my (endless system development lifecycle) Devawriter and the Mac > merrily trips over into a Devanagari keyboard entry method that starts > interfering with the method in my stack . . . Another thought is that you m

Re: Dial with USB modem

2011-03-21 Thread Björnke von Gierke
Unless there's some command line app that you can use, you would need an external that hooks into the driver :( On 21 Mar 2011, at 05:24, Philip Usher wrote: > Back in the days when I was using a serial modem, I developed several stacks > which included dialing phone numbers using write to file

Re: Unicode and Mac keyboard layouts.

2011-03-21 Thread Peter W A Wood
Richmond On 21 Mar 2011, at 18:35, Richmond wrote: > Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in > my (endless system development lifecycle) Devawriter and the Mac > merrily trips over into a Devanagari keyboard entry method that starts > interfering with the method in m

Re: [OT] Post Conference Fun Stuff

2011-03-21 Thread Kevin Miller
On 21/03/2011 01:24, "Scott Rossi" wrote: > For anyone attending the LiveCode dev conference in April, if you're not > from the area, I'd strongly suggest allowing a couple of hours one day to > visit the Computer History Museum, located in Mountain View, about a 1/2 > hour away from the conferen

Unicode and Mac keyboard layouts.

2011-03-21 Thread Richmond
Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in my (endless system development lifecycle) Devawriter and the Mac merrily trips over into a Devanagari keyboard entry method that starts interfering with the method in my stack . . . . . . big, BIG, bummer! 1. Has anybody (err .

Re: Monitoring sound

2011-03-21 Thread Gerry
Scott, many thanks! I'm still dusting off the cobwebs, and trawling through the user guide. g -- photo site: http://gerryorkin.com On Monday, 21 March 2011 at 7:29 PM, Scott Morrow wrote: > Hello Gerry, > > From the docs: > "If no audio clip is playing, the sound function returns done" > > I

Re: Monitoring sound

2011-03-21 Thread Scott Morrow
Hello Gerry, >From the docs: "If no audio clip is playing, the sound function returns done" If you don't have any other sounds playing you could set up a "send in time" loop to check if the sound was done which would be more efficient than using idle. For example: local lPendingMessageQueue

Re: combobox

2011-03-21 Thread Terry Judd
On 21/03/11 3:04 PM, "Kee Nethery" wrote: > > On Mar 20, 2011, at 7:46 PM, Terry Judd wrote: >> >> On 21/03/11 12:38 PM, "Kee Nethery" wrote: >> >>> Thanks Terry, >>> >>> Actually I'm at the point of one step forward two steps back. >>> >>> I appear to be unable to put the return delimited

Monitoring sound

2011-03-21 Thread Gerry
Hi again In iOS I have to monitor the playing of a sound while the user browses the app, going from one screen/card to the next. If a sound is playing, I show a button, but if the sound ends, I want the button to be hidden. In Hypercard I would have used idle. Is that still a good way to imple