Weired code page issue

2012-01-30 Thread Tiemo Hollmann TB
Hello,

I have a LC 4.6 program with a valentina 4.8 db for a couple of years
running and for the first time now a single customer on a iMac with Lion
tells me, that all german Umlaute are broken in displaying the db content.

The valentina db is coded UTF-16, german and it is completely prefilled by
me and is unchanged since years. There are no write or update actions by the
customer, only read. I have asked the customer for his language settings,
but he says, everything is on german or standard.

I am not good in system questions on Mac and I have no idea where to start
searching. Is it a Mac issue (most presumably because it is only one single
customer), or  a Valentina issue or a LC issue? Can anybody point me into
any direction what to check or search for?

Thanks

Tiemo

 

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread paolo mazza
Hi all,
how to  use an  iPhone App as a remote control for an iPad app ?
I am wondering if I can set any communication between two iOS apps
(besides internet connection) ?
Bluetooth ? Set a wifi intranet ? Socket communications?
Is there any external to do  this?
All the best
Paolo Mazza

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Weired code page issue

2012-01-30 Thread Ruslan Zasukhin
On 1/30/12 10:08 AM, Tiemo Hollmann TB toolb...@kestner.de wrote:

 Hello,
 
 I have a LC 4.6 program with a valentina 4.8 db for a couple of years
 running and for the first time now a single customer on a iMac with Lion
 tells me, that all german Umlaute are broken in displaying the db content.
 
 The valentina db is coded UTF-16, german and it is completely prefilled by
 me and is unchanged since years. There are no write or update actions by the
 customer, only read. I have asked the customer for his language settings,
 but he says, everything is on german or standard.
 
 I am not good in system questions on Mac and I have no idea where to start
 searching. Is it a Mac issue (most presumably because it is only one single
 customer), or  a Valentina issue or a LC issue? Can anybody point me into
 any direction what to check or search for?

Hi Tiemo,

To try isolate issue better you can add into app code
Which read value from db then save it to disk text file ?

May be enable DebugLevel for V4REV and then you should see that values right
in V4REV LOG.  





-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread gpb01

paolomazza wrote
 
 Hi all,
 how to  use an  iPhone App as a remote control for an iPad app ?
 I am wondering if I can set any communication between two iOS apps
 (besides internet connection) ?
 Bluetooth ? Set a wifi intranet ? Socket communications?
 Is there any external to do  this?
 All the best
 Paolo Mazza
 
 ___
 use-livecode mailing list
 use-livecode@.runrev
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
Hi Paolo,
yes, you can connect different devices using the socket and yes, there is an
external to use socket in iOS because ... socket syntax and functionality is
still NOT directly available on iOS (/planned for a future release/).

On externals look for *rrsocket* 

Ciao,

Guglielmo


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/An-iPhone-app-as-a-remote-control-for-an-iPad-app-Is-it-possible-tp4340382p4340652.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread Michael Doub
Where can I find the rrsocket external?

Regards,
   Mike



On 01/30/2012, at 6:04 AM, gpb01 wrote:

 rrsocket

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Redraws will be flushed translation

2012-01-30 Thread Mark Schonewille
Hi Jacque,

Previously, redraws were postponed, now they are flushed. Each time when you 
show or hide an object, LiveCode wants to redraw the screen. Previously, these 
redraws were remembered and executed when the screen was unlocked. As I 
understand it, the screen is now simply redrawn once, when the screen unlocks. 
That's a big difference.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 30 jan 2012, at 07:46, J. Landman Gay wrote:

 On 1/29/12 11:47 PM, Rick Harrison wrote:
 I think perhaps this could be referring to garbage collection.
 
 On 1/30/12 12:30 AM, Dick Kriesel wrote:
 Or, maybe, Redraw has occurred, so any redraws in the pending
 messages can and will be flushed.
 
 I see, these make sense. How does that change the behavior from before? When 
 the screen is locked, redraws have never occured until either the screen is 
 unlocked or all pending handlers have finished. The notes seem to say the 
 same thing, so I'm not sure how this new method changes things.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread Guglielmo Braguglia

Hi,
you have to download and install the iOS SDK ... that you can find on 
this page : http://www.runrev.com/developers/documentation/externals-sdk/


Regards,

Guglielmo


On 30.01.2012 13:02, Michael Doub wrote:

Where can I find the rrsocket external?

Regards,
Mike



On 01/30/2012, at 6:04 AM, gpb01 wrote:


rrsocket

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread paolo mazza
Guglielmo,
thank you for your message. Have you already tried this external?
Does it work properly?
Can LC people use it or we are supposed to know a lower level language
to use it in our applications?
Thanks a lot

Ciao, Paolo

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread Ken Corey

Hi Paolo,

First off, I'd like to say that with the external support, anything is 
possible...the question is how hard you're willing to work to get there.


I can say that the socket code rreSocket works just fine for me here, 
both on the simulator and on the device.


Now, as to does it work properly?  It allows you to open a socket to 
an external host, and to send data back and forth to that host, and 
those functions seem to work fine.


However, there's no protocol support with it.  I wanted to send and 
receive http, so I had to write a small http library to do the work I 
needed.  No big deal.


It all depends on your level of expertise.  If you're working against an 
already-defined protocol (like I was with http), it's a doddle. If the 
spec is unclear, or you're uncomfortable with low level communications, 
I'd think twice.


With a socket-based infrastructure, you need to think of:
1) a way for the devices to find each other (can rreSocket do a TCP/IP 
broadcast?  I don't know.)

2) dealing with proxies

Perhaps you'd be better off writing an external that let you talk to the 
bluetooth functionality from within LiveCode.


Without more information from you as to what your goal is we can't help 
more.


-Ken

On 30/01/2012 13:45, paolo mazza wrote:

thank you for your message. Have you already tried this external?
Does it work properly?
Can LC people use it or we are supposed to know a lower level language
to use it in our applications?




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


How to get all message names

2012-01-30 Thread Claudi Cornaz
Hi all,

Does anyone know how to quickly get all livecode message names?

I know you can get the propertyNames, the functionNames, the commandNames
but I get a error when doing get the messageNames or a couple of similars.

Thanks in advance,
   Claudi

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to get all message names

2012-01-30 Thread dunbarx
I don't see a function like that, though most other keyword lists exist.



-Original Message-
From: Claudi Cornaz claud...@fiberworld.nl
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Mon, Jan 30, 2012 9:11 am
Subject: How to get all message names


Hi all,

Does anyone know how to quickly get all livecode message names?

I know you can get the propertyNames, the functionNames, the commandNames
but I get a error when doing get the messageNames or a couple of similars.

Thanks in advance,
   Claudi

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread Guglielmo Braguglia

I Paolo,

I think that Ken has explained very well the situation, so ...
... you must really know how to implement your own '/protocol/' for the 
dialogue between the different devices.


In these conditions I do not see usefulness of writing a new external to 
use bluetooth ... ;-)


Saluti,

Guglielmo


On 30.01.2012 14:45, paolo mazza wrote:

Guglielmo,
thank you for your message. Have you already tried this external?
Does it work properly?
Can LC people use it or we are supposed to know a lower level language
to use it in our applications?
Thanks a lot

Ciao, Paolo

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread paolo mazza
Thank you Ken.

My idea is as simple as this:

- from a LC app in the iPhone I want to send   back/forward
commands to change the images in a LC app in the iPad.

The idea is simple. The implementation probably is not so simple.

I am  uncomfortable with low level communications and I am looking for
an easy solution.

Thank you very much,

Paolo

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread Todd Geist
Ken,

Quick question.  Were you able to create an HTML server that work on iOS?

Todd

On Mon, Jan 30, 2012 at 5:58 AM, Ken Corey k...@kencorey.com wrote:

 Hi Paolo,

 First off, I'd like to say that with the external support, anything is
 possible...the question is how hard you're willing to work to get there.

 I can say that the socket code rreSocket works just fine for me here,
 both on the simulator and on the device.

 Now, as to does it work properly?  It allows you to open a socket to an
 external host, and to send data back and forth to that host, and those
 functions seem to work fine.

 However, there's no protocol support with it.  I wanted to send and
 receive http, so I had to write a small http library to do the work I
 needed.  No big deal.

 It all depends on your level of expertise.  If you're working against an
 already-defined protocol (like I was with http), it's a doddle. If the spec
 is unclear, or you're uncomfortable with low level communications, I'd
 think twice.

 With a socket-based infrastructure, you need to think of:
 1) a way for the devices to find each other (can rreSocket do a TCP/IP
 broadcast?  I don't know.)
 2) dealing with proxies

 Perhaps you'd be better off writing an external that let you talk to the
 bluetooth functionality from within LiveCode.

 Without more information from you as to what your goal is we can't help
 more.

 -Ken


 On 30/01/2012 13:45, paolo mazza wrote:

 thank you for your message. Have you already tried this external?
 Does it work properly?
 Can LC people use it or we are supposed to know a lower level language
 to use it in our applications?




 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Todd Geist


(805) 419-9382
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to get all message names

2012-01-30 Thread Klaus on-rev
Hi Claudi,

Am 30.01.2012 um 15:16 schrieb dunb...@aol.com:

 I don't see a function like that, though most other keyword lists exist.
 
 -Original Message-
 From: Claudi Cornaz claud...@fiberworld.nl
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Mon, Jan 30, 2012 9:11 am
 Subject: How to get all message names
 
 
 Hi all,
 
 Does anyone know how to quickly get all livecode message names?
 
 I know you can get the propertyNames, the functionNames, the commandNames
 but I get a error when doing get the messageNames or a couple of similars.

Open the dictionary.
In the left index click: Language - Commands

Now you only need to extract this list from the first column of the datagrid :-)

 Thanks in advance,
   Claudi

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to get all message names

2012-01-30 Thread Klaus on-rev
Hi Claudi,

Am 30.01.2012 um 15:37 schrieb Klaus on-rev:

 Hi Claudi,
 Am 30.01.2012 um 15:16 schrieb dunb...@aol.com:
 I don't see a function like that, though most other keyword lists exist.
 
 -Original Message-
 From: Claudi Cornaz claud...@fiberworld.nl
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Mon, Jan 30, 2012 9:11 am
 Subject: How to get all message names
 
 Hi all,
 Does anyone know how to quickly get all livecode message names?
 I know you can get the propertyNames, the functionNames, the commandNames
 but I get a error when doing get the messageNames or a couple of similars.
 
 Open the dictionary.
 In the left index click: Language - Commands

I mean of course: Language - Message!

 Now you only need to extract this list from the first column of the datagrid 
 :-)

 Thanks in advance,
  Claudi

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread Ken Corey
Well sending a command and getting a response is a simple enough 
protocol once you're connected...but how do your devices find each other?


I'd be shocked if you could do network broadcasting using rreSocket on 
an iOS device (you might actually get away with it on a desktop, but 
I've not tried it).  Note that with the several extremely low-cost (as 
low as $50) linux devices out or coming out soon perhaps an iPhone is a 
little over-priced as a remote control?


Anyway, one way might be to let your users do the work:

You would use the function hostNameToAddress(the address) to find out 
the address of the machine upon which the program is running, and then 
show that to the user, asking them to enter it into the other device as 
the target.  (note that this happens on both devices).  Bonus points for 
saving the address so the user doesn't have to type it again.


At that point you can call the functions in rreSocket to open/write/read 
to and from the socket.


Define your protocol before you start coding though, or you'll be wading 
into a marsh.


FWIW,

-Ken

On 30/01/2012 14:35, paolo mazza wrote:

My idea is as simple as this:

- from a LC app in the iPhone I want to send   back/forward
commands to change the images in a LC app in the iPad.

The idea is simple. The implementation probably is not so simple.

I am  uncomfortable with low level communications and I am looking for
an easy solution.




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to get all message names

2012-01-30 Thread dunbarx
Clever, Klaus.


But there are lots of groups in the stack revDictionary. I selected message 
to load the DG, and then went through each group and tried to extract the 
dgText which contained, say, mouseUp. Nothing. Do you know what the name of 
the dataGrid is?


And why would my method not work?


Craig Newman



-Original Message-
From: Klaus on-rev kl...@major.on-rev.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Mon, Jan 30, 2012 9:40 am
Subject: Re: How to get all message names


Hi Claudi,

Am 30.01.2012 um 15:16 schrieb dunb...@aol.com:

 I don't see a function like that, though most other keyword lists exist.
 
 -Original Message-
 From: Claudi Cornaz claud...@fiberworld.nl
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Mon, Jan 30, 2012 9:11 am
 Subject: How to get all message names
 
 
 Hi all,
 
 Does anyone know how to quickly get all livecode message names?
 
 I know you can get the propertyNames, the functionNames, the commandNames
 but I get a error when doing get the messageNames or a couple of similars.

Open the dictionary.
In the left index click: Language - Commands

Now you only need to extract this list from the first column of the datagrid :-)

 Thanks in advance,
   Claudi

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread Ken Corey

On 30/01/2012 14:35, Todd Geist wrote:

Quick question.  Were you able to create an HTML server that work on iOS?


My purpose was only to read and write to a web server, and for that it 
works fine.


Taking a look under the covers, down at the Objective-C level I don't 
see a way to grab a port and do an 'accept'/'bind' on it for incoming 
connections, so it would seem to me that you couldn't create a web 
server with rreSocket as written.


Of course, that's not saying much.

Coming from a unixy background, the Networking API is completely foreign 
to me.  I mean completely bonkers.


Gotta love Apple, who in their infinite wisdom has to bloody re-invent 
the wheel (that was working just fine, thank you very much), then 
re-invent it in an OOP way, then simplify that, and then complicate 
the hell out of that version. They're every bit as bad as Microsoft ever 
was.


Not that I'm bitter and twisted about the over-blown complexity of 
programming for iOS, or anything.  Bloody OOP w***ing...


Oops, my angst is showing.

-Ken

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Redraws will be flushed translation

2012-01-30 Thread Richard Gaskin

Mark Schonewille wrote:

 Previously, these redraws were remembered and executed when the
 screen was unlocked. As I understand it, the screen is now simply
 redrawn once, when the screen unlocks. That's a big difference.

I'm probably just pre-coffee, but I'm having a hard time understanding 
the difference.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to get all message names

2012-01-30 Thread Klaus on-rev
Hi Craig,

Am 30.01.2012 um 16:08 schrieb dunb...@aol.com:

 Clever, Klaus.

:-)

But this is only step 1...

 But there are lots of groups in the stack revDictionary. I selected 
 message to load the DG, and then went through each group and tried to 
 extract the dgText which contained, say, mouseUp. Nothing. Do you know what 
 the name of the dataGrid is?

No, sorry, I just looked by myself and that is very well hidden somehow.

 And why would my method not work?

Sorry, no idea.

 Craig Newman

 ...
 Hi all,
 
 Does anyone know how to quickly get all livecode message names?
 
 I know you can get the propertyNames, the functionNames, the commandNames
 but I get a error when doing get the messageNames or a couple of similars.
 
 Open the dictionary.
 In the left index click: Language - Commands
 
 Now you only need to extract this list from the first column of the datagrid 
 :-)
 
 Thanks in advance,
  Claudi

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Redraws will be flushed translation

2012-01-30 Thread J. Landman Gay

On 1/30/12 9:30 AM, Richard Gaskin wrote:

Mark Schonewille wrote:

  Previously, these redraws were remembered and executed when the
  screen was unlocked. As I understand it, the screen is now simply
  redrawn once, when the screen unlocks. That's a big difference.

I'm probably just pre-coffee, but I'm having a hard time understanding
the difference.


Me too. In the past, the screen was redrawn once when it was unlocked. I 
can't recall any instances of queued redraws, at least, none that were 
visible to the user, though maybe someone else has seen it. There's the 
lockmoves thing, but I don't think that's exactly the same.


So far, it sounds like this change concerns garbage collection but not 
behavior changes. And yet, there's a whole section in the notes about it 
so I'd like to understand for sure.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Redraws will be flushed translation

2012-01-30 Thread Mark Schonewille
Hi,

I think that's the point: none that were visible to the user. Redrawing was 
quick enough to give you the impression that all was redrawn at once, but it 
wasn't. You may have noticed that sometimes a script was faster without locking 
and unlocking the screen, because Revolution refreshed the entire screen for 
each control that was added or removed. By doing this quickly after another, it 
looked like the screen was redrawn only once but in reality it was redrawn 
several times. This should no longer be the case and your scripts should run 
faster now. If you want to know for sure, ask the RunRev team. I'd like to know 
if I'm wrong.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 30 jan 2012, at 17:58, J. Landman Gay wrote:
 
 Me too. In the past, the screen was redrawn once when it was unlocked. I 
 can't recall any instances of queued redraws, at least, none that were 
 visible to the user, though maybe someone else has seen it. There's the 
 lockmoves thing, but I don't think that's exactly the same.
 
 So far, it sounds like this change concerns garbage collection but not 
 behavior changes. And yet, there's a whole section in the notes about it so 
 I'd like to understand for sure.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Sounds on iOS

2012-01-30 Thread Dan Friedman
Greetings!

My iPad app plays a sound using the iphonePlaySoundOnChannel command:

iphonePlaySoundOnChannel fSound,myAppSound,now

The sound does play, but it stops any music that the user is playing in iTunes. 
  How do I play a sound on iOS without disrupting the sounds of another app in 
the background?  Or, can I tell iTunes to start playing their music again?

Thanks in advance!
-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Search question

2012-01-30 Thread Marty Knapp
Let's say I have a tab delimited list with 4 items and I want to find a 
match to my search string, except I don't care what item 2 is - it could 
be a number, a word or be empty, but I want to find the occurrences 
where items 1, 3  4 match. What's the  fastest way to do that?


Thanks,
Marty Knapp

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Search question

2012-01-30 Thread Dan Friedman
Marty,

I don't know if it's the fastest way, but here's one way to do it.  Pass with 
function your tab-delimited list and what you are looking to find in fields 1,3 
and 4 and it will return a list of the lines numbers that match.  Hope it 
helps...

function getTheMatches tList,findThis
  set the itemDel to tab
  put  into foundList
  put 0 into i
  repeat for each line tLine in tList
add 1 to i
if item 1 of tLine = findThis then
  if item 3 of tLine = findThis then
if item 4 of tLine = findThis then
  put i  cr after foundList
end if
  end if
end if
  end repeat
  delete last line of foundList
  
  return foundList
end getTheMatches



 Let's say I have a tab delimited list with 4 items and I want to find a 
 match to my search string, except I don't care what item 2 is - it could 
 be a number, a word or be empty, but I want to find the occurrences 
 where items 1, 3  4 match. What's the  fastest way to do that?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Search question

2012-01-30 Thread Ken Corey

How about this:
--8-
repeat for each line myLine in myList
  if matchText(myLine, \
([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)$, \
myVar1, myVar2, myVar3, myVar4) then

if myVar1=foo and myVar3=bar and myVar4=baz then
  -- take some action here
end if
  end if
end repeat

--8-

I'm typing this from memory, and I'm not sure about that repeat 
statement.  I always seem to need to look it up.


This assumes, of course, that the fields cannot have tab characters in them.

-Ken

On 30/01/2012 17:35, Marty Knapp wrote:

Let's say I have a tab delimited list with 4 items and I want to find a
match to my search string, except I don't care what item 2 is - it could
be a number, a word or be empty, but I want to find the occurrences
where items 1, 3  4 match. What's the fastest way to do that?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Alternate Form of printKeys()

2012-01-30 Thread Bob Sneidar
Thanks for the bug report I will look into it. 

The usefulness of this is not so  that it will be readable. It is so that you 
can use the filter command on the result, then recreate the array with the 
other function. Let's say I have a datagrid that came from a query that 
returned 10,000 records from a remote SQL database. I also have a search field 
where after typing some text and then pausing, I want to filter all the columns 
of data based upon that text. 

If building a query, I would have to loop through the columns and build a query 
using IN() for every column. Then I would have to requery the database. As the 
user types and pauses, I would have to do this every time. 

What I have done instead is the first time the user pauses, I convert the 
datagrid array to the text form and store it as a global variable. Now when the 
user pauses, I get a copy of the data and filter the text based upon what the 
user typed. I then recreate the array from the filtered text and set the dgdata 
of the datagrid to the resulting array. This makes it very quick, especially 
with SQL servers that do not respond all that quickly. 

There are other applications though. Ever want to subtract one array from 
another? Delete a single key of multidimensional array? Rename a key? Also, in 
the original PrintKeys() function, if the value contained multiple lines, it 
would only return the first line. My function returns all the lines. It also 
replaces tabs and returns with placeholder ascii characters. 

I am sure you could do all these things by looping through array elements, but 
it seems like it would be quicker (and less programming) to convert the entire 
array to text and then run single filter commands on the result. 

Bob


On Jan 28, 2012, at 5:35 AM, Peter M. Brigham, MD wrote:

 One little tweak:
 
 instead of 
 
   if theKey is not a number then
   replace theKey with quote  theKey  quote in theKeyList
   end if
 
 use 
 
 if theKey is not a number then
   replace [  theKey  ] with [  quote  theKey  quote  ] in 
 theKeyList
 end if
 
 I tried it with keys like [second][c][2] and your original replacement line 
 gave me [second] as one of the entries.
 
 What I liked about the original handlers was that the previous altPrintKeys 
 would output a textual representation of the array in an intuitive outline 
 form, so you could see at a glance the structure and contents of the array. 
 Your new function converts an array to a text string but it's really hard to 
 tell by looking at the string how the array is structured, so it has limited 
 value to me. For what purpose would you be using the new version of these 
 functions?
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 On Jan 26, 2012, at 6:12 PM, Bob Sneidar wrote:
 
 Here are the functions. I have tested them and they seem to be fine, but any 
 bug reports would be appreciated. Note that there is another distinct 
 advantage of these functions over the original printKeys(): These functions 
 allow for returns and tabs in the values. I convert them to ascii(30) and 
 ascii(11) respectively when I return text and back again when I return an 
 array. 
 
 Also bear in mind I do no error checking. Who knows what would happen if you 
 pass something other than what is expected. Hang on to your socks! :-)
 
 function altPrintKeys @pArray, theKeyList, pFullData
   put numtochar(11) into vertTab
   put numtochar(30) into altCr
   put the keys of pArray into theKeys
   sort theKeys numeric
 
   repeat for each line theKey in theKeys
   put [  theKey  ]  after theKeyList
   if theKey is not a number then
   replace theKey with quote  theKey  quote in theKeyList
   end if
   if pArray[theKey] is an array then
   put pArray[theKey] into theTempArray
   put altPrintKeys(theTempArray, theKeyList, pFullData) after theText
   put empty into the last word of theKeyList
   delete the last char of theKeyList
   put cr into the last char of theText
   else
   put pArray   the last word of theKeyList into theKeyName
   -- put put   theKeyName   into theValue into theCommand
   -- do theCommand
   put the value of theKeyName into theValue
   replace tab with vertTab in theValue
   replace return with altCr in theValue
   put theKeyList  tab  theValue  comma after theText
   put empty into the last word of theKeyList
   delete the last char of theKeyList
   end if
   end repeat
 
   return theText
 end altPrintKeys
 
 function altKeysToArray theText
   put numtochar(11) into vertTab
   put numtochar(30) into altCr
   repeat for each line theRecord in theText
   repeat for each item theKeyData in theRecord
   put the itemdelimiter into theOldDelim
   set the itemdelimiter to tab
   put item 1 of theKeyData into theKeyList
   put item 2 of 

Re: Search question

2012-01-30 Thread Mike Bonner
Or with filter

I setup a stack with a list field and 4 search fields, 1 search field for
each column, and added a search button.

--Search button code
on mouseUp
   put field mylist into tMyList
   repeat with i = 1 to 4
  if field (field  i) is empty then
 put * into line i of tMerge
  else
 put field (field  i) into line i of tMerge
  end if
   end repeat
   filter tmyList with (merge([[line 1 of tMerge]][[tab]][[line 2 of
tMerge]][[tab]][[line 3 of tMerge]][[tab]][[line 4 of tMerge]]))
   put tMyList
end mouseUp

Puts an asterisk for empty search fields puts the value for the fields that
should be matched against.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Alternate Form of printKeys()

2012-01-30 Thread Bob Sneidar

On Jan 28, 2012, at 5:35 AM, Peter M. Brigham, MD wrote:

 if theKey is not a number then
   replace [  theKey  ] with [  quote  theKey  quote  ] in 
 theKeyList
 end if


Okay new version. Thanks to Peter M. Brigham, MD for pointing this out:

function altPrintKeys @pArray, theKeyList, pFullData
put numtochar(11) into vertTab
put numtochar(30) into altCr
put the keys of pArray into theKeys
sort theKeys numeric
 
repeat for each line theKey in theKeys
put [  theKey  ]  after theKeyList
if theKey is not a number then
  replace [  theKey  ] with [  quote  theKey  quote  
] in theKeyList
end if
if pArray[theKey] is an array then
put pArray[theKey] into theTempArray
put altPrintKeys(theTempArray, theKeyList, pFullData) after theText
put empty into the last word of theKeyList
delete the last char of theKeyList
put cr into the last char of theText
else
put pArray   the last word of theKeyList into theKeyName
-- put put   theKeyName   into theValue into theCommand
-- do theCommand
put the value of theKeyName into theValue
replace tab with vertTab in theValue
replace return with altCr in theValue
put theKeyList  tab  theValue  comma after theText
put empty into the last word of theKeyList
delete the last char of theKeyList
end if
end repeat

return theText
end altPrintKeys


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: pointer tool on Macs

2012-01-30 Thread Bob Sneidar
I vaguely recall in the past a command called Lock Cursor to deal with this 
situation, as whenever the engine idles it automatically sets the cursor. 

Bob


On Jan 28, 2012, at 10:40 AM, Art DiVito wrote:

 My program uses many tools. The first time I use the Pointer tool, its icon 
 is fine: tail-less arrow with a little plus sign. But then it reverts to the 
 same icon as the Browse tool (arrow with tail). It still functions perfectly 
 as the Pointer tool, but a user would be very confused. Ironically, this 
 problem does not occur on a PC; only on Macs. Any ideas? Thanks. (Also, I 
 could still use help making this thing a polished app. I am not a programmer.)
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Redraws will be flushed translation

2012-01-30 Thread Bob Sneidar
I think I understand a bit. When debugging I had noticed that when tracing 
through code after issuing a lock screen, if I went to a card what was 
displayed was VERY odd. Things that were supposed to be hidden were displayed, 
and things that I never hide were not drawn. Once I got out of the debugger 
though it all cleared up. This no longer seems to happen. I think the 
difference may be between redrawing the objects in the cache, as opposed to 
redrawing everything. Just a guess tho'. 

Bob


On Jan 30, 2012, at 7:30 AM, Richard Gaskin wrote:

 Mark Schonewille wrote:
 
  Previously, these redraws were remembered and executed when the
  screen was unlocked. As I understand it, the screen is now simply
  redrawn once, when the screen unlocks. That's a big difference.
 
 I'm probably just pre-coffee, but I'm having a hard time understanding the 
 difference.
 
 --
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Alternate Form of printKeys()

2012-01-30 Thread Bob Sneidar
 Also, in the original PrintKeys() function, if the value contained multiple 
 lines, it would only return the first line. My function returns all the 
 lines. 

WHOOPS! I am mistaken here. The original version of printKeys WILL return the 
full value if you pass true as the third argument. My apologies Trevor. 

Bob



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Search question

2012-01-30 Thread Mike Bonner
oops. Change the merge line to this for partial matches

   filter tmyList with (merge(*[[line 1 of tMerge]]*[[tab]]*[[line 2 of
tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*))


On Mon, Jan 30, 2012 at 10:57 AM, Mike Bonner bonnm...@gmail.com wrote:

 Or with filter

 I setup a stack with a list field and 4 search fields, 1 search field for
 each column, and added a search button.

 --Search button code
 on mouseUp
put field mylist into tMyList
repeat with i = 1 to 4
   if field (field  i) is empty then
  put * into line i of tMerge
   else
  put field (field  i) into line i of tMerge
   end if
end repeat
filter tmyList with (merge([[line 1 of tMerge]][[tab]][[line 2 of
 tMerge]][[tab]][[line 3 of tMerge]][[tab]][[line 4 of tMerge]]))
put tMyList
 end mouseUp

 Puts an asterisk for empty search fields puts the value for the fields
 that should be matched against.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Alternate Form of printKeys()

2012-01-30 Thread Bob Sneidar
As an aside, here is how I implemented the kind of thing I was talking about:

-- convert the datagrid array to key text
put altPrintKeys(theDataA) into theText

-- filter the data
filter theText with tab  *  theValue  *

-- convert the text back to an array
put altKeysToArray(theText) into theDataA

The idea here is that the tab is the delimiter between the keys and the value. 
Any tabs that were in the original data will have been converted to ascii(11) 
by the altPrintKeys() function, so they will not come into play. The carriage 
returns were converted to ascii(30) so that the filter command will not choke 
on the multi-line values that might be returned. 

Bob



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to get all message names

2012-01-30 Thread Björnke von Gierke
If you need help, just ask me directly :)

On 30.01.2012, at 18:01, Mike Bonner wrote:

 Ok so maybe its an encoded array of xml data. I'm thinking use the sqlite
 db generated by the bvgdocu to do this.
 
 On Mon, Jan 30, 2012 at 9:55 AM, Mike Bonner bonnm...@gmail.com wrote:
 
 This may be a roundabout method but.. If you go here
 http://bjoernke.com/index.irev?target=bvgdocu  and download bvgdocu 2.0
 it generates an sqlite database of the dictionary where the type column
 contains the type of entry. Message, etc.  It might be possible to use the
 sqlite db directly, and if not dig around and see exactly how the info was
 generated.
 
 After poking around in the code it appears that the .index files located
 in  (C:\Program Files (x86)\RunRev\LiveCode 5.0.2\Documentation) are
 encoded arrays. So some method similar to what bvg did should work to
 extract the info you are looking for directly from the files. Maybe?
 Haven't done it so my level of clue on this stuff is still pretty low.
 
 
 On Mon, Jan 30, 2012 at 8:34 AM, Klaus on-rev kl...@major.on-rev.comwrote:
 
 Hi Craig,
 
 Am 30.01.2012 um 16:08 schrieb dunb...@aol.com:
 
 Clever, Klaus.
 
 :-)
 
 But this is only step 1...
 
 But there are lots of groups in the stack revDictionary. I selected
 message to load the DG, and then went through each group and tried to
 extract the dgText which contained, say, mouseUp. Nothing. Do you know
 what the name of the dataGrid is?
 
 No, sorry, I just looked by myself and that is very well hidden somehow.
 
 And why would my method not work?
 
 Sorry, no idea.
 
 Craig Newman
 
 ...
 Hi all,
 
 Does anyone know how to quickly get all livecode message names?
 
 I know you can get the propertyNames, the functionNames, the
 commandNames
 but I get a error when doing get the messageNames or a couple of
 similars.
 
 Open the dictionary.
 In the left index click: Language - Commands
 
 Now you only need to extract this list from the first column of the
 datagrid :-)
 
 Thanks in advance,
 Claudi
 
 Best
 
 Klaus
 
 --
 Klaus Major
 http://www.major-k.de
 kl...@major.on-rev.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Orin's check

2012-01-30 Thread Pete
Finally got the OK to cash Orin's check so I'll be paying it in today and
sending checks off to everyone.  David, I'll pay yours into your credit
union account


-- 
Pete
Molly's Revenge http://www.mollysrevenge.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Orin's check

2012-01-30 Thread Andre Garzia
On Mon, Jan 30, 2012 at 8:07 PM, Pete p...@mollysrevenge.com wrote:
 Finally got the OK to cash Orin's check so I'll be paying it in today and
 sending checks off to everyone.  David, I'll pay yours into your credit
 union account

Pete,

I think you sent this to the wrong place... or you are a very generous
man and will send checks to all the improve-list...

=)




 --
 Pete
 Molly's Revenge http://www.mollysrevenge.com
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Orin's check

2012-01-30 Thread Pete
Whoops, how did that happen!  I am a very generous man but only with other
people's money!
Pete

On Mon, Jan 30, 2012 at 2:12 PM, Andre Garzia an...@andregarzia.com wrote:

 On Mon, Jan 30, 2012 at 8:07 PM, Pete p...@mollysrevenge.com wrote:
  Finally got the OK to cash Orin's check so I'll be paying it in today and
  sending checks off to everyone.  David, I'll pay yours into your credit
  union account

 Pete,

 I think you sent this to the wrong place... or you are a very generous
 man and will send checks to all the improve-list...

 =)


 
 
  --
  Pete
  Molly's Revenge http://www.mollysrevenge.com
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode



 --
 http://www.andregarzia.com -- All We Do Is Code.
 http://fon.nu -- minimalist url shortening service.

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Pete
Molly's Revenge http://www.mollysrevenge.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Orin's check

2012-01-30 Thread Bob Sneidar
Do I get to write my own check? ;-)

Bob


On Jan 30, 2012, at 2:12 PM, Andre Garzia wrote:

 On Mon, Jan 30, 2012 at 8:07 PM, Pete p...@mollysrevenge.com wrote:
 Finally got the OK to cash Orin's check so I'll be paying it in today and
 sending checks off to everyone.  David, I'll pay yours into your credit
 union account
 
 Pete,
 
 I think you sent this to the wrong place... or you are a very generous
 man and will send checks to all the improve-list...
 
 =)
 
 
 
 
 --
 Pete
 Molly's Revenge http://www.mollysrevenge.com
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 -- 
 http://www.andregarzia.com -- All We Do Is Code.
 http://fon.nu -- minimalist url shortening service.
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread Monte Goulding
Hi Paolo

What you need is the bluetooth peer to peer stuff in GameKit. I've started 
messing with an external for that as I thought it might be handy. What's your 
timeframe?

Cheers

Monte
On 31/01/2012, at 1:35 AM, paolo mazza wrote:

 Thank you Ken.
 
 My idea is as simple as this:
 
 - from a LC app in the iPhone I want to send   back/forward
 commands to change the images in a LC app in the iPad.
 
 The idea is simple. The implementation probably is not so simple.
 
 I am  uncomfortable with low level communications and I am looking for
 an easy solution.
 
 Thank you very much,
 
 Paolo
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Orin's check

2012-01-30 Thread Jerry Jensen
Once I accidentally sent an invoice to a usenet group. Nobody paid. 8-\

On Jan 30, 2012, at 2:23 PM, Pete wrote:

 Whoops, how did that happen!  I am a very generous man but only with other
 people's money!
 Pete
 
 On Mon, Jan 30, 2012 at 2:12 PM, Andre Garzia an...@andregarzia.com wrote:
 
 On Mon, Jan 30, 2012 at 8:07 PM, Pete p...@mollysrevenge.com wrote:
 Finally got the OK to cash Orin's check so I'll be paying it in today and
 sending checks off to everyone.  David, I'll pay yours into your credit
 union account



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Orin's check

2012-01-30 Thread Bob Sneidar
You need to do that on a spam list. You'd be surprised how much you can make 
like that. The trick is knowing when to leave for Bermuda. ;-)

Bob


On Jan 30, 2012, at 2:56 PM, Jerry Jensen wrote:

 Once I accidentally sent an invoice to a usenet group. Nobody paid. 8-\
 
 On Jan 30, 2012, at 2:23 PM, Pete wrote:
 
 Whoops, how did that happen!  I am a very generous man but only with other
 people's money!
 Pete
 
 On Mon, Jan 30, 2012 at 2:12 PM, Andre Garzia an...@andregarzia.com wrote:
 
 On Mon, Jan 30, 2012 at 8:07 PM, Pete p...@mollysrevenge.com wrote:
 Finally got the OK to cash Orin's check so I'll be paying it in today and
 sending checks off to everyone.  David, I'll pay yours into your credit
 union account
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Orin's check

2012-01-30 Thread Andre Garzia
On Mon, Jan 30, 2012 at 9:09 PM, Bob Sneidar b...@twft.com wrote:
 You need to do that on a spam list. You'd be surprised how much you can make 
 like that. The trick is knowing when to leave for Bermuda. ;-)


I once worked on an email market company, on my first day, I wanted to
test the system and send an email to my boss only. I hit the wrong
button and sent it to half a million recipients

The email had the following body:

This Is A Test

Imagine the kind of answer I received back


 Bob


 On Jan 30, 2012, at 2:56 PM, Jerry Jensen wrote:

 Once I accidentally sent an invoice to a usenet group. Nobody paid. 8-\

 On Jan 30, 2012, at 2:23 PM, Pete wrote:

 Whoops, how did that happen!  I am a very generous man but only with other
 people's money!
 Pete

 On Mon, Jan 30, 2012 at 2:12 PM, Andre Garzia an...@andregarzia.com wrote:

 On Mon, Jan 30, 2012 at 8:07 PM, Pete p...@mollysrevenge.com wrote:
 Finally got the OK to cash Orin's check so I'll be paying it in today and
 sending checks off to everyone.  David, I'll pay yours into your credit
 union account



 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] libQR

2012-01-30 Thread Roger Eller
On Mon, Jan 30, 2012 at 6:52 PM, John Craig wrote:

 Again - thanks for feedback.  No-one has had any real problems and I'm
 pleased to announce that version 40-M codes are being generated on my
 machine in 2 - 3 seconds!  'Normal' sized codes are squirted out in next to
 no time, but now generating even the largest of QR codes if required should
 be no problem. The test version sent out was taking around 50 seconds to
 generate the large (version 35+) QR codes!

  I've also been successfully scanning the large codes with the iPhone - it
 just takes a steady hand  ;P


 John - Until now, I have never EVER visualized a code being squirted
out.  Sounds like a neat idea to make a creative logo.

˜Roger
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] libQR

2012-01-30 Thread John Craig

LOL - sQuiRt coincidentally contains Q and R   :D

On 31/01/2012 00:09, Roger Eller wrote:

On Mon, Jan 30, 2012 at 6:52 PM, John Craig wrote:


Again - thanks for feedback.  No-one has had any real problems and I'm
pleased to announce that version 40-M codes are being generated on my
machine in 2 - 3 seconds!  'Normal' sized codes are squirted out in next to
no time, but now generating even the largest of QR codes if required should
be no problem. The test version sent out was taking around 50 seconds to
generate the large (version 35+) QR codes!

  I've also been successfully scanning the large codes with the iPhone - it
just takes a steady hand  ;P


  John - Until now, I have never EVER visualized a code being squirted
out.  Sounds like a neat idea to make a creative logo.

˜Roger
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to get all message names

2012-01-30 Thread Mike Bonner
Yeah, what bvg said!  By the way, I love some of your variable names. Made
me smile!
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Combining some lines of text in a list?

2012-01-30 Thread John Patten
Hi All...

I have a list of items. The items in the list are in similar groups but each 
group is delimited by a tab.

For example:

name:Group1
description:Animals with four legs.
creature1:cats
creature2:dogs
notes1:Animals that are pets.
notes2:Animals that have fur.


name:Group 2 
description:Animals that swim.
creature1:sharks 
creature2:tuna
creature3:whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

etc. etc

The items in the list are formatted identical. It is just the content after the 
colon that changes.

How would I go about combining the creature line (line 3) with the other 
creature lines for each item in list?

Ultimately I would like my items in my list to look like:

name:Group1
description:Animals with four legs.
creature1:cats dogs
notes1:Animals that are pets.
notes2:Animals that have fur.

name:Group 2 
description:Animals that swim.
creature1:sharks tuna whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

I have been experimenting with:

on mouseUp
   set the itemdel to tab
   put 2 into x
   put 1 into y
   repeat for number of items in cd fld data - 1
  put item x of cd fld data into tTempData
  put lineOffSet(creature1:, tTempData) into tTextStart --4
  put lineOffSet(notes1:, tTempData) into tTextEnd
  repeat for number of lines in tTempData
  put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst
  put char 1 to 7 of line tTextEnd of tTempdata into tEnd
  if tFirst  tEnd then 
 put line (tTextStart + y) of tTempData after tAdditionalText
 put empty into line (tTextStart + y) of tTempData
 add 1 to y
 put tTempData  tab  return after tFormattedData
  else
put item x of tTempData  tab  return after tFormattedData
 --put item x of tTempData after tFormattedData
add 1 to x
add 1 to y
 end if
  end repeat
  add 1 to x
  
  end repeat
  put tFormattedData
end mouseUp

But I'm thinking there must be an easier way? Any suggestions?

Thank you!

John Patten
SUSD



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] libQR

2012-01-30 Thread Andre Garzia
On Mon, Jan 30, 2012 at 10:13 PM, John Craig j...@splash21.com wrote:
 LOL - sQuiRt coincidentally contains Q and R   :D


I would use a library called sQuiRt =)



 On 31/01/2012 00:09, Roger Eller wrote:

 On Mon, Jan 30, 2012 at 6:52 PM, John Craig wrote:

 Again - thanks for feedback.  No-one has had any real problems and I'm
 pleased to announce that version 40-M codes are being generated on my
 machine in 2 - 3 seconds!  'Normal' sized codes are squirted out in next
 to
 no time, but now generating even the largest of QR codes if required
 should
 be no problem. The test version sent out was taking around 50 seconds to
 generate the large (version 35+) QR codes!

  I've also been successfully scanning the large codes with the iPhone -
 it
 just takes a steady hand  ;P


  John - Until now, I have never EVER visualized a code being squirted
 out.  Sounds like a neat idea to make a creative logo.

 ˜Roger
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Search question

2012-01-30 Thread Marty Knapp
Thanks to those who responded to this. I was doing something similar to 
Dan's idea, but wondered if there was a way to use lineOffset or 
something else. I'll take a look at all the suggestions and continue on. 
I wish I could wrap my brain around regex - it all looks like a cat 
walked across my keyboard to my poor mind!


Marty K

oops. Change the merge line to this for partial matches

filter tmyList with (merge(*[[line 1 of tMerge]]*[[tab]]*[[line 2 of
tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*))


On Mon, Jan 30, 2012 at 10:57 AM, Mike Bonnerbonnm...@gmail.com  wrote:


Or with filter

I setup a stack with a list field and 4 search fields, 1 search field for
each column, and added a search button.

--Search button code
on mouseUp
put field mylist into tMyList
repeat with i = 1 to 4
   if field (field  i) is empty then
  put * into line i of tMerge
   else
  put field (field  i) into line i of tMerge
   end if
end repeat
filter tmyList with (merge([[line 1 of tMerge]][[tab]][[line 2 of
tMerge]][[tab]][[line 3 of tMerge]][[tab]][[line 4 of tMerge]]))
put tMyList
end mouseUp

Puts an asterisk for empty search fields puts the value for the fields
that should be matched against.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Combining some lines of text in a list?

2012-01-30 Thread Mike Bonner
Just tried it and ended up with the following. (made a stack with 2 fields,
1 with your sample text, other for output)

on mouseUp
   put field 1 into tVar
   set the itemdel to colon
   repeat for each line tLine in tVar
  switch item 1 of tLine
 case name
put return  return   tLine after tNewVar -- put the name line
into a holding var
break
 case description
put return   tLine after tNewVar -- same as name. Puts
description on a new line in the holding var
break
 case creature1 -- if its creature 1, new line and put the whole
line
put return  tLine after tNewVar
break
 case notes1 -- if its notes1, new line and put the whole line
put return  tLine after tNewVar
break
 default
-- everything that doesn't match the preceeding rules just take it on to
the end of the holding var
-- This assumes that the list is always correctly organized. (ie, name,
description, group of creatures, group of notes
put space  item 2 of tLine after tNewVar
  end switch
   end repeat
   put tNewVar into field 2
   delete char 1 to 2 of field 2
end mouseUp

On Mon, Jan 30, 2012 at 5:45 PM, John Patten johnpat...@mac.com wrote:

 Hi All...

 I have a list of items. The items in the list are in similar groups but
 each group is delimited by a tab.

 For example:

 name:Group1
 description:Animals with four legs.
 creature1:cats
 creature2:dogs
 notes1:Animals that are pets.
 notes2:Animals that have fur.


 name:Group 2
 description:Animals that swim.
 creature1:sharks
 creature2:tuna
 creature3:whales
 notes1:Animals that live in the sea.
 notes2:Animals that don't have fur.

 etc. etc

 The items in the list are formatted identical. It is just the content
 after the colon that changes.

 How would I go about combining the creature line (line 3) with the other
 creature lines for each item in list?

 Ultimately I would like my items in my list to look like:

 name:Group1
 description:Animals with four legs.
 creature1:cats dogs
 notes1:Animals that are pets.
 notes2:Animals that have fur.

 name:Group 2
 description:Animals that swim.
 creature1:sharks tuna whales
 notes1:Animals that live in the sea.
 notes2:Animals that don't have fur.

 I have been experimenting with:

 on mouseUp
   set the itemdel to tab
   put 2 into x
   put 1 into y
   repeat for number of items in cd fld data - 1
  put item x of cd fld data into tTempData
  put lineOffSet(creature1:, tTempData) into tTextStart --4
  put lineOffSet(notes1:, tTempData) into tTextEnd
  repeat for number of lines in tTempData
  put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst
  put char 1 to 7 of line tTextEnd of tTempdata into tEnd
  if tFirst  tEnd then
 put line (tTextStart + y) of tTempData after tAdditionalText
 put empty into line (tTextStart + y) of tTempData
 add 1 to y
 put tTempData  tab  return after tFormattedData
  else
put item x of tTempData  tab  return after tFormattedData
 --put item x of tTempData after tFormattedData
add 1 to x
add 1 to y
 end if
  end repeat
  add 1 to x

  end repeat
  put tFormattedData
 end mouseUp

 But I'm thinking there must be an easier way? Any suggestions?

 Thank you!

 John Patten
 SUSD



 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] libQR

2012-01-30 Thread Bob Sneidar
That is a great idea for the web page you will be sure to be making!

Bob


On Jan 30, 2012, at 4:09 PM, Roger Eller wrote:

 On Mon, Jan 30, 2012 at 6:52 PM, John Craig wrote:
 
 Again - thanks for feedback.  No-one has had any real problems and I'm
 pleased to announce that version 40-M codes are being generated on my
 machine in 2 - 3 seconds!  'Normal' sized codes are squirted out in next to
 no time, but now generating even the largest of QR codes if required should
 be no problem. The test version sent out was taking around 50 seconds to
 generate the large (version 35+) QR codes!
 
 I've also been successfully scanning the large codes with the iPhone - it
 just takes a steady hand  ;P
 
 
 John - Until now, I have never EVER visualized a code being squirted
 out.  Sounds like a neat idea to make a creative logo.
 
 ˜Roger
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to get all message names

2012-01-30 Thread Björnke von Gierke
oh, i also forgot to mention, in the bvgdocu 2 gui, go to topics and select 
termonology type from the drop down. 

It will then list the entries by type, as well as giving you an amount of each 
type. You can then select a type, and it will list only those of that type, in 
the second field (just make sure not to have anything typed in the search 
field, so you get all of em). I think that's what you wanted to begin with, no?

On 30.01.2012, at 23:04, Björnke von Gierke wrote:

 If you need help, just ask me directly :)
 
 On 30.01.2012, at 18:01, Mike Bonner wrote:
 
 Ok so maybe its an encoded array of xml data. I'm thinking use the sqlite
 db generated by the bvgdocu to do this.
 
 On Mon, Jan 30, 2012 at 9:55 AM, Mike Bonner bonnm...@gmail.com wrote:
 
 This may be a roundabout method but.. If you go here
 http://bjoernke.com/index.irev?target=bvgdocu  and download bvgdocu 2.0
 it generates an sqlite database of the dictionary where the type column
 contains the type of entry. Message, etc.  It might be possible to use the
 sqlite db directly, and if not dig around and see exactly how the info was
 generated.
 
 After poking around in the code it appears that the .index files located
 in  (C:\Program Files (x86)\RunRev\LiveCode 5.0.2\Documentation) are
 encoded arrays. So some method similar to what bvg did should work to
 extract the info you are looking for directly from the files. Maybe?
 Haven't done it so my level of clue on this stuff is still pretty low.
 
 
 On Mon, Jan 30, 2012 at 8:34 AM, Klaus on-rev kl...@major.on-rev.comwrote:
 
 Hi Craig,
 
 Am 30.01.2012 um 16:08 schrieb dunb...@aol.com:
 
 Clever, Klaus.
 
 :-)
 
 But this is only step 1...
 
 But there are lots of groups in the stack revDictionary. I selected
 message to load the DG, and then went through each group and tried to
 extract the dgText which contained, say, mouseUp. Nothing. Do you know
 what the name of the dataGrid is?
 
 No, sorry, I just looked by myself and that is very well hidden somehow.
 
 And why would my method not work?
 
 Sorry, no idea.
 
 Craig Newman
 
 ...
 Hi all,
 
 Does anyone know how to quickly get all livecode message names?
 
 I know you can get the propertyNames, the functionNames, the
 commandNames
 but I get a error when doing get the messageNames or a couple of
 similars.
 
 Open the dictionary.
 In the left index click: Language - Commands
 
 Now you only need to extract this list from the first column of the
 datagrid :-)
 
 Thanks in advance,
 Claudi
 
 Best
 
 Klaus
 
 --
 Klaus Major
 http://www.major-k.de
 kl...@major.on-rev.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Redraws will be flushed translation

2012-01-30 Thread Andre Garzia
Guys,

If I understand it correctly, it is the opposite. Now, the screen is
redrawn after every command unless the screen is locked, if the screen
is locked, then it will be redrawn when it is unlocked.

=)

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


OT: Walking

2012-01-30 Thread Mike Bonner
Ok. I know this is not the most appropriate place for this but.. Today for
the first time in about 12 years I walked 5 unassisted steps in physical
therapy.  (no walker, cane, walking sticks or anything) And no face plant!
 So on the count of 3. 1, 2, 3 WOO HOO

Back to the normally scheduled program.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Combining some lines of text in a list?

2012-01-30 Thread Michael Kann
put input_file into x
replace return  creature3 with space in x
replace return  creature2 with space in x
put x into output_file




--- On Mon, 1/30/12, John Patten johnpat...@mac.com wrote:

From: John Patten johnpat...@mac.com
Subject: Combining some lines of text in a list?
To: use-livecode@lists.runrev.com
Date: Monday, January 30, 2012, 6:45 PM

Hi All...

I have a list of items. The items in the list are in similar groups but each 
group is delimited by a tab.

For example:

name:Group1
description:Animals with four legs.
creature1:cats
creature2:dogs
notes1:Animals that are pets.
notes2:Animals that have fur.


name:Group 2 
description:Animals that swim.
creature1:sharks 
creature2:tuna
creature3:whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

etc. etc

The items in the list are formatted identical. It is just the content after the 
colon that changes.

How would I go about combining the creature line (line 3) with the other 
creature lines for each item in list?

Ultimately I would like my items in my list to look like:

name:Group1
description:Animals with four legs.
creature1:cats dogs
notes1:Animals that are pets.
notes2:Animals that have fur.

name:Group 2 
description:Animals that swim.
creature1:sharks tuna whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

I have been experimenting with:

on mouseUp
   set the itemdel to tab
   put 2 into x
   put 1 into y
   repeat for number of items in cd fld data - 1
      put item x of cd fld data into tTempData
      put lineOffSet(creature1:, tTempData) into tTextStart --4
      put lineOffSet(notes1:, tTempData) into tTextEnd
      repeat for number of lines in tTempData
      put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst
      put char 1 to 7 of line tTextEnd of tTempdata into tEnd
      if tFirst  tEnd then 
         put line (tTextStart + y) of tTempData after tAdditionalText
         put empty into line (tTextStart + y) of tTempData
         add 1 to y
         put tTempData  tab  return after tFormattedData
      else
        put item x of tTempData  tab  return after tFormattedData
         --put item x of tTempData after tFormattedData
        add 1 to x
        add 1 to y
         end if
      end repeat
      add 1 to x
      
      end repeat
      put tFormattedData
end mouseUp

But I'm thinking there must be an easier way? Any suggestions?

Thank you!

John Patten
SUSD



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Combining some lines of text in a list?

2012-01-30 Thread Michael Kann
Sorry, I forgot the colons.

put input_file into x
replace return  creature3: with space in x
replace return  creature2: with space in x
put x into output_file

--- On Mon, 1/30/12, Michael Kann mikek...@yahoo.com wrote:

From: Michael Kann mikek...@yahoo.com
Subject: Re: Combining some lines of text in a list?
To: How to use LiveCode use-livecode@lists.runrev.com
Date: Monday, January 30, 2012, 9:01 PM

put input_file into x
replace return  creature3 with space in x
replace return  creature2 with space in x
put x into output_file




--- On Mon, 1/30/12, John Patten johnpat...@mac.com wrote:

From: John Patten johnpat...@mac.com
Subject: Combining some lines of text in a list?
To: use-livecode@lists.runrev.com
Date: Monday, January 30, 2012, 6:45 PM

Hi All...

I have a list of items. The items in the list are in similar groups but each 
group is delimited by a tab.

For example:

name:Group1
description:Animals with four legs.
creature1:cats
creature2:dogs
notes1:Animals that are pets.
notes2:Animals that have fur.


name:Group 2 
description:Animals that swim.
creature1:sharks 
creature2:tuna
creature3:whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

etc. etc

The items in the list are formatted identical. It is just the content after the 
colon that changes.

How would I go about combining the creature line (line 3) with the other 
creature lines for each item in list?

Ultimately I would like my items in my list to look like:

name:Group1
description:Animals with four legs.
creature1:cats dogs
notes1:Animals that are pets.
notes2:Animals that have fur.

name:Group 2 
description:Animals that swim.
creature1:sharks tuna whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

I have been experimenting with:

on mouseUp
   set the itemdel to tab
   put 2 into x
   put 1 into y
   repeat for number of items in cd fld data - 1
      put item x of cd fld data into tTempData
      put lineOffSet(creature1:, tTempData) into tTextStart --4
      put lineOffSet(notes1:, tTempData) into tTextEnd
      repeat for number of lines in tTempData
      put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst
      put char 1 to 7 of line tTextEnd of tTempdata into tEnd
      if tFirst  tEnd then 
         put line (tTextStart + y) of tTempData after tAdditionalText
         put empty into line (tTextStart + y) of tTempData
         add 1 to y
         put tTempData  tab  return after tFormattedData
      else
        put item x of tTempData  tab  return after tFormattedData
         --put item x of tTempData after tFormattedData
        add 1 to x
        add 1 to y
         end if
      end repeat
      add 1 to x
      
      end repeat
      put tFormattedData
end mouseUp

But I'm thinking there must be an easier way? Any suggestions?

Thank you!

John Patten
SUSD



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Combining some lines of text in a list?

2012-01-30 Thread Mike Bonner
I really like this method.  Now that you kick started my noggin I realized
you can do the same with the regex. (maybe someone already did it this way
with regex not sure)

  put field 1 into tVar
   put replacetext(tVar,\ncreature[2-9]\d?\d?:,space) into tVar --will
match creature up to creature999
   put replacetext(tVar,\nnotes[2-9]\d?\d?:,space) into tVar -- same for
notes up to 999

   put tVar into field 2

On Mon, Jan 30, 2012 at 8:10 PM, Michael Kann mikek...@yahoo.com wrote:

 Sorry, I forgot the colons.

 put input_file into x
 replace return  creature3: with space in x
 replace return  creature2: with space in x
 put x into output_file

 --- On Mon, 1/30/12, Michael Kann mikek...@yahoo.com wrote:

 From: Michael Kann mikek...@yahoo.com
 Subject: Re: Combining some lines of text in a list?
 To: How to use LiveCode use-livecode@lists.runrev.com
 Date: Monday, January 30, 2012, 9:01 PM

 put input_file into x
 replace return  creature3 with space in x
 replace return  creature2 with space in x
 put x into output_file




 --- On Mon, 1/30/12, John Patten johnpat...@mac.com wrote:

 From: John Patten johnpat...@mac.com
 Subject: Combining some lines of text in a list?
 To: use-livecode@lists.runrev.com
 Date: Monday, January 30, 2012, 6:45 PM

 Hi All...

 I have a list of items. The items in the list are in similar groups but
 each group is delimited by a tab.

 For example:

 name:Group1
 description:Animals with four legs.
 creature1:cats
 creature2:dogs
 notes1:Animals that are pets.
 notes2:Animals that have fur.


 name:Group 2
 description:Animals that swim.
 creature1:sharks
 creature2:tuna
 creature3:whales
 notes1:Animals that live in the sea.
 notes2:Animals that don't have fur.

 etc. etc

 The items in the list are formatted identical. It is just the content
 after the colon that changes.

 How would I go about combining the creature line (line 3) with the other
 creature lines for each item in list?

 Ultimately I would like my items in my list to look like:

 name:Group1
 description:Animals with four legs.
 creature1:cats dogs
 notes1:Animals that are pets.
 notes2:Animals that have fur.

 name:Group 2
 description:Animals that swim.
 creature1:sharks tuna whales
 notes1:Animals that live in the sea.
 notes2:Animals that don't have fur.

 I have been experimenting with:

 on mouseUp
set the itemdel to tab
put 2 into x
put 1 into y
repeat for number of items in cd fld data - 1
   put item x of cd fld data into tTempData
   put lineOffSet(creature1:, tTempData) into tTextStart --4
   put lineOffSet(notes1:, tTempData) into tTextEnd
   repeat for number of lines in tTempData
   put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst
   put char 1 to 7 of line tTextEnd of tTempdata into tEnd
   if tFirst  tEnd then
  put line (tTextStart + y) of tTempData after tAdditionalText
  put empty into line (tTextStart + y) of tTempData
  add 1 to y
  put tTempData  tab  return after tFormattedData
   else
 put item x of tTempData  tab  return after tFormattedData
  --put item x of tTempData after tFormattedData
 add 1 to x
 add 1 to y
  end if
   end repeat
   add 1 to x

   end repeat
   put tFormattedData
 end mouseUp

 But I'm thinking there must be an easier way? Any suggestions?

 Thank you!

 John Patten
 SUSD



 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Walking

2012-01-30 Thread Mike Bonner
3 huge stories, and a mini-series. /nod Lets just hope theres no big plot
twist right at the end.

On Mon, Jan 30, 2012 at 8:10 PM, Marty Knapp martykn...@comcast.net wrote:

 Way to go Mike! There must be a huge story behind that . . .

 Marty K

 Ok. I know this is not the most appropriate place for this but.. Today for
 the first time in about 12 years I walked 5 unassisted steps in physical
 therapy.  (no walker, cane, walking sticks or anything) And no face plant!
  So on the count of 3. 1, 2, 3 WOO HOO

 Back to the normally scheduled program.
 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode



 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Walking

2012-01-30 Thread Ralph DiMola

Mike,

3,2,1..hee-hah!!!

Great for you! Keep it up!

Ralph DiMola
MIS Director 
Evergreen Information Services

rdim...@evergreeninfo.net

-Original message-
From: Mike Bonner bonnm...@gmail.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tue, Jan 31, 2012 02:53:59 GMT+00:00
Subject: OT: Walking

Ok. I know this is not the most appropriate place for this but.. Today for
the first time in about 12 years I walked 5 unassisted steps in physical
therapy.  (no walker, cane, walking sticks or anything) And no face plant!
So on the count of 3. 1, 2, 3 WOO HOO

Back to the normally scheduled program.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription  
preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Walking

2012-01-30 Thread Jerry Jensen
Go man, GO! Pretty soon it should be many, no longer any point in counting!

On Jan 30, 2012, at 6:53 PM, Mike Bonner wrote:

 Ok. I know this is not the most appropriate place for this but.. Today for
 the first time in about 12 years I walked 5 unassisted steps in physical
 therapy.  (no walker, cane, walking sticks or anything) And no face plant!
 So on the count of 3. 1, 2, 3 WOO HOO
 
 Back to the normally scheduled program.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Walking

2012-01-30 Thread J. Landman Gay

On 1/30/12 8:53 PM, Mike Bonner wrote:

Ok. I know this is not the most appropriate place for this but.. Today for
the first time in about 12 years I walked 5 unassisted steps in physical
therapy.  (no walker, cane, walking sticks or anything) And no face plant!
  So on the count of 3. 1, 2, 3 WOO HOO


WILD APPLAUSE!!! You are your own standing ovation. :)

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Redraws will be flushed translation

2012-01-30 Thread J. Landman Gay

On 1/30/12 8:47 PM, Andre Garzia wrote:

Guys,

If I understand it correctly, it is the opposite. Now, the screen is
redrawn after every command unless the screen is locked, if the screen
is locked, then it will be redrawn when it is unlocked.

=)


Just like it was before...

I'm so confused.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Walking

2012-01-30 Thread Mike Bonner
  WILD APPLAUSE!!! You are your own standing ovation. :)

GROAN

On Mon, Jan 30, 2012 at 9:46 PM, J. Landman Gay jac...@hyperactivesw.comwrote:

 On 1/30/12 8:53 PM, Mike Bonner wrote:

 Ok. I know this is not the most appropriate place for this but.. Today for
 the first time in about 12 years I walked 5 unassisted steps in physical
 therapy.  (no walker, cane, walking sticks or anything) And no face plant!
  So on the count of 3. 1, 2, 3 WOO HOO


 WILD APPLAUSE!!! You are your own standing ovation. :)

 --
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com


 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Search question

2012-01-30 Thread Ken Corey

On 31/01/2012 01:02, Marty Knapp wrote:

Thanks to those who responded to this. I was doing something similar to
Dan's idea, but wondered if there was a way to use lineOffset or
something else. I'll take a look at all the suggestions and continue on.
I wish I could wrap my brain around regex - it all looks like a cat
walked across my keyboard to my poor mind!

[...]

filter tmyList with (merge(*[[line 1 of tMerge]]*[[tab]]*[[line 2 of
tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*))


That's funny...I was thinking the same thing when I saw the filter stuff 
above.  *grin*


-Ken

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Search question

2012-01-30 Thread Ken Corey

On 31/01/2012 01:20, Bob Sneidar wrote:

The last time I got into regex, I forgot how to pee. Took two days to get it 
back.


Remind me not to be in the same room when you tackle Objective-C...:^)

-Ken

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Walking

2012-01-30 Thread Ken Corey

On 31/01/2012 02:53, Mike Bonner wrote:

Ok. I know this is not the most appropriate place for this but.. Today for
the first time in about 12 years I walked 5 unassisted steps in physical
therapy.  (no walker, cane, walking sticks or anything) And no face plant!
  So on the count of 3. 1, 2, 3 WOO HOO


Uh-oh, careful with that. Too much success and the wife will have you 
out mowing the grass and going shopping with her!


Seriously though, way to go, congrats!

-Ken

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Walking

2012-01-30 Thread Mike Bonner
I would be so tickled to be able to mow the grass! At least 2 or 3 times.
After that i'd rather drink a beer. :)

On Mon, Jan 30, 2012 at 11:52 PM, Ken Corey k...@kencorey.com wrote:

 On 31/01/2012 02:53, Mike Bonner wrote:

 Ok. I know this is not the most appropriate place for this but.. Today for
 the first time in about 12 years I walked 5 unassisted steps in physical
 therapy.  (no walker, cane, walking sticks or anything) And no face plant!
  So on the count of 3. 1, 2, 3 WOO HOO


 Uh-oh, careful with that. Too much success and the wife will have you out
 mowing the grass and going shopping with her!

 Seriously though, way to go, congrats!

 -Ken


 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Search question

2012-01-30 Thread Mike Bonner
Huh. I knew I liked merge but didn't know why until now.

put merge([[kitty1]][[kitty2]]) into tCatfight

On Mon, Jan 30, 2012 at 11:46 PM, Ken Corey k...@kencorey.com wrote:

 On 31/01/2012 01:02, Marty Knapp wrote:

 Thanks to those who responded to this. I was doing something similar to
 Dan's idea, but wondered if there was a way to use lineOffset or
 something else. I'll take a look at all the suggestions and continue on.
 I wish I could wrap my brain around regex - it all looks like a cat
 walked across my keyboard to my poor mind!

 [...]

 filter tmyList with (merge(*[[line 1 of tMerge]]*[[tab]]*[[line 2 of
 tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*))


 That's funny...I was thinking the same thing when I saw the filter stuff
 above.  *grin*

 -Ken

 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Walking

2012-01-30 Thread Judy Perry

Awesome!  Way to go :-D

Judy

On Mon, 30 Jan 2012, Mike Bonner wrote:


Ok. I know this is not the most appropriate place for this but.. Today for
the first time in about 12 years I walked 5 unassisted steps in physical
therapy.  (no walker, cane, walking sticks or anything) And no face plant!
So on the count of 3. 1, 2, 3 WOO HOO

Back to the normally scheduled program.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


database write error

2012-01-30 Thread Mark Smith
Hi, I have some code that works fine until I put an apostrophe into a field
and then it errors out on storing the data. Any suggestions on dealing with
this problem?

The code I am using looks like this:

put INSERT INTO master (delivery_date, mothers_name, mothers_phin,
mothers_mhsc, mothers_dob, care_provider, note)  \
merge(VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]',
'[[tmaternalmhsc]]',   \
   '[[tmaternaldob]]', [[tcareprovider]]', '[[tnote]]')) into tCmd
revExecuteSQL gConnectID, tCmd

Thanks
-- Mark


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4343759.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: An iPhone app as a remote control for an iPad app. Is it possible?

2012-01-30 Thread paolo mazza
Hi Monte,
an external to manage the bluetooth stuff in GameKit would be great.
I can wait for a couple of months to start this project.,, and anyway
I am sure you will develop a solution faster than I can do  ... so I
am gonna wait for your external !!!
Thanks a lot
Paolo

On Mon, Jan 30, 2012 at 11:35 PM, Monte Goulding
mo...@sweattechnologies.com wrote:
 Hi Paolo

 What you need is the bluetooth peer to peer stuff in GameKit. I've started 
 messing with an external for that as I thought it might be handy. What's your 
 timeframe?

 Cheers

 Monte
 On 31/01/2012, at 1:35 AM, paolo mazza wrote:

 Thank you Ken.

 My idea is as simple as this:

 - from a LC app in the iPhone I want to send   back/forward
 commands to change the images in a LC app in the iPad.

 The idea is simple. The implementation probably is not so simple.

 I am  uncomfortable with low level communications and I am looking for
 an easy solution.

 Thank you very much,

 Paolo

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: database write error

2012-01-30 Thread Mike Bonner
urlencode the data before putting it into the db, decode it when you pull
it back out.  At least I think thats the easiest answer. t

On Tue, Jan 31, 2012 at 12:50 AM, Mark Smith mark_sm...@cpe.umanitoba.cawrote:

 Hi, I have some code that works fine until I put an apostrophe into a field
 and then it errors out on storing the data. Any suggestions on dealing with
 this problem?

 The code I am using looks like this:

 put INSERT INTO master (delivery_date, mothers_name, mothers_phin,
 mothers_mhsc, mothers_dob, care_provider, note)  \
 merge(VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]',
 '[[tmaternalmhsc]]',   \
   '[[tmaternaldob]]', [[tcareprovider]]', '[[tnote]]')) into tCmd
 revExecuteSQL gConnectID, tCmd

 Thanks
 -- Mark


 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4343759.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode