Re: Accessing the last item in a line

2011-08-22 Thread Pete
Thanks Jim and Mark. I think maybe I used the wrong word when I said expected since that's kind of in the eye of the beholder! This beholder finds it entirely unexpected. It means that a string of a,b, is the same as a string of a,b as far as number of items is concerned and that doesn't seem

Re: Can I set file as read only?

2011-08-22 Thread AndyP
HI Bill, For Windows use shell, example below: set the hideconsolewindows to true get shell(attrib quote myFile quote +r) // read only to make writtable again set the hideconsolewindows to true get shell(attrib quote myFile quote -r) Of course you can use +r +s +h attributes as well,

Re: Accessing the last item in a line

2011-08-22 Thread Mark Schonewille
Hi Pete, You can use this method regardless of whether the last item is actually empty, provided that you want to include the last item even if it's empty. If you add an itemdelimiter, you change the number of items though. By adding a char the moment you count the items, you always get the

RE: Confused about storing arrays in a custom property

2011-08-22 Thread John Tregea
Hi Pete, I have made extensive use of arrays as custom properties of all sorts of objects and never ever had a problem. Unless someone else has found a way to blow things up I think you are perfectly safe. Regards John -Original Message- From: use-livecode-boun...@lists.runrev.com

How to launch a DMG?

2011-08-22 Thread Tiemo Hollmann TB
Hello, I want to download a dmg file and open it when downloaded. I tried it with tell application Finder to open . (pseudocode), but that doesn't work with a dmg. What is the correct Finder command? Thanks Tiemo ___ use-livecode mailing list

Re: How to launch a DMG?

2011-08-22 Thread Mark Schonewille
Hi Tiemo, Actually, that should work. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 What does that error mean? Buy LiveCodeErrors for iPhone now

AW: How to launch a DMG?

2011-08-22 Thread Tiemo Hollmann TB
correct, forgot to convert the MacToUnix Path. Thanks Tiemo -Ursprüngliche Nachricht- Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] Im Auftrag von Mark Schonewille Gesendet: Montag, 22. August 2011 10:47 An: How to use LiveCode Betreff:

Re: New App Developed in LiveCode

2011-08-22 Thread Trevor DeVore
On Sun, Aug 21, 2011 at 10:57 PM, Gregory Lypny gregory.ly...@videotron.cawrote: Elegant interface, nice and clean. I can see a market among IT and systems types who work in educational institutions and are constantly having to explain various computer and network things to faculty and staff.

Avoiding File Update Anomalies (Collisions) on a Server

2011-08-22 Thread Gregory Lypny
Hello everyone, I would appreciate your thoughts on how to avoid collisions on a server on those presumably rare occasions when two or more visitors attempt to write to a file at exactly the same time. In my case, it’s students writing via FTP to a text log file, but the same situation can

Re: Accessing the last item in a line

2011-08-22 Thread J. Landman Gay
On 8/22/11 1:12 AM, Pete wrote: Thanks Jim and Mark. I think maybe I used the wrong word when I said expected since that's kind of in the eye of the beholder! This beholder finds it entirely unexpected. It means that a string of a,b, is the same as a string of a,b as far as number of items is

Re: Combining cards into a stack

2011-08-22 Thread Devin Asay
On Aug 21, 2011, at 9:59 PM, Bill Ziegler wrote: I have a difficult time with new names and faces. We have quite a few new teachers and therapists this year so I plan to make a photo data base of their image, name, job and school(s) they are assigned to. I'm planning to build a simple

Re: Avoiding File Update Anomalies (Collisions) on a Server

2011-08-22 Thread Pierre Sahores
Would recommend to use a PHP or LC server-side front-end script to a MySQL or PostgreSQL SQL insert/update instruction instead. The SQL servers would manage this for you in a cleanest way than what can be done in using direct writes to flat files. HTH, Le 22 août 2011 à 17:05, Gregory Lypny a

Re: Confused about storing arrays in a custom property

2011-08-22 Thread Andrew Kluthe
It sounds to me like binary is the data type you want here. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Confused-about-storing-arrays-in-a-custom-property-tp3757539p3760664.html Sent from the Revolution - User mailing list archive at Nabble.com.

Re: Accessing the last item in a line

2011-08-22 Thread Pete
Unfortunately, I don't know in advance how many items there are in the string, probably didn't explain that clearly but the root of the problem is that I have to refer to item -1 of the string and a,b,c returns c and a,b, returns b - same number of delimiters, different result. Wasn't there a

Re: New App Developed in LiveCode

2011-08-22 Thread Gregory Lypny
Bingo. Thank you, Colin. I did run through the login items but must have missed it the first time. Gregory On Mon, Aug 22, 2011, at 1:00 PM, use-livecode-requ...@lists.runrev.com wrote: Message: 7 Date: Sun, 21 Aug 2011 23:39:40 -0400 From: Colin Holgate co...@verizon.net To: How to use

Re: Avoiding File Update Anomalies (Collisions) on a Server

2011-08-22 Thread Gregory Lypny
Hi Pierre Sahores and Bob Sneider, Thanks for the tips. I’m getting the message that an external database (PHP or mySQL) is the way to go. Regards, Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Confused about storing arrays in a custom property

2011-08-22 Thread Jan Schenkel
You could 'base64Encode' the binary data before storing it, and base64decode it after retrieval from the database. That way you don't have to worry about BINARY, and can store it in a CLOB.   HTH, Jan Schenkel. = Quartam Reports PDF Library for LiveCode www.quartam.com = As we grow

Re: Confused about storing arrays in a custom property

2011-08-22 Thread Pete
Thanks Jan. I'll try that this afternoon and report back. Pete Molly's Revenge http://www.mollysrevenge.com On Mon, Aug 22, 2011 at 12:38 PM, Jan Schenkel janschen...@yahoo.comwrote: You could 'base64Encode' the binary data before storing it, and base64decode it after retrieval from the

Re: Accessing the last item in a line

2011-08-22 Thread Mark Wieder
Pete- Monday, August 22, 2011, 10:14:18 AM, you wrote: Unfortunately, I don't know in advance how many items there are in the string, probably didn't explain that clearly but the root of the problem is the number of items of will give you that. -- -Mark Wieder mwie...@ahsoftware.net

Re: Accessing the last item in a line

2011-08-22 Thread Mark Wieder
Jacque- Monday, August 22, 2011, 8:20:46 AM, you wrote: It's come up many times before. The delimiter belongs to the item before it. That's true of both items and lines. How many lines are in each of these examples: This is line one. cr This is line two. This is line one.cr This is

Re: Accessing the last item in a line

2011-08-22 Thread Pete
Unfortunately not, at least if you count items like I do :-) The number of items of a,b,c is three and the number of items of a,b, is 2, but I want that last empty item to be counted. But it's moot now anyway, I've started to use an array with numbered keys instead of an item string and that

License and scrollbar questions

2011-08-22 Thread LunchnMeets
Hi Everyone, Question 1 Am I allowed to use my software license on more than one computer? Question 2 Since my new computer has a smaller screen than my old one, is it possible to put horizontal and vertical scrollbars on the cards so I can navigate around in order to move things for the new

Re: License and scrollbar questions

2011-08-22 Thread Admin
Not sure, but I assume you are allowed to put it on several computers as long as you are the only person using it. Of course, when you run it for the 1st time, live code will authorize your computer and you will use your license - so I believe the license moves where you do. Activating it on

Re: License and scrollbar questions

2011-08-22 Thread Admin
Oops. I did not read that 2nd question properly. Yes. Put everything you need on the card. Group them. Make sure you check lock in place for the group. The scroll bars should work. You may want to create the initial app on the larger monitor and then follow the advice I gave you - then the