AW: AW: how to resize icons when resizing objects?

2012-03-20 Thread Tiemo Hollmann TB
Thanks Jacqueline for your useful hints
Tiemo

 -Ursprüngliche Nachricht-
 Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] Im Auftrag von J. Landman Gay
 Gesendet: Montag, 19. März 2012 18:37
 An: How to use LiveCode
 Betreff: Re: AW: how to resize icons when resizing objects?
 
 On 3/19/12 6:08 AM, Tiemo Hollmann TB wrote:
  Hi Ken,
  hmmm, didn't thought about that yet. A button with it's predefined
 different
  states was the first choice.
 
 I use buttons for that too. The way to resize the icon is to resize the
 images you are using as icons. Then the button icon will also change
 size. Make sure the images are locked or they won't keep their new sizes.
 
 The script needs to adjust the image sizes before the card is drawn.
 Otherwise the icon won't change size until the next redraw, usually when
 the user presses the button or leaves the card and comes back.
 
 --
 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


___
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


AW: how to resize icons when resizing objects?

2012-03-20 Thread Tiemo Hollmann TB
Thanks Ken, you say, you usually don't resize buttons with the stack. (I
haven't done it yet either)
I thought it could perhaps be a nice feature for tablet PCs (Windows 8),
that you have bigger button icons, when increasing the window size to
fullscreen to be better accessible with finger handling. Don't you think
this could be nice? Or do I think of exotic features?
Thanks
Tiemo

 
 If I need to have them resize with the stack, then yes (although I usually
 don't need that). The other thing you can do is to resize the images that
 are the icons of the buttons and then force the buttons to redraw
 (lock/unlock screen might work, otherwise you can set the icon of the
 buttons to their same values).
 
 
 Ken Ray
 Sons of Thunder Software, Inc.
 Email: k...@sonsothunder.com
 Web Site: http://www.sonsothunder.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: MySQL joined select

2012-03-20 Thread Marek Reichenbach
Thanks for the replies.
I've made it workin, but I wanna add something else:

So the question in SQL is:

Maybe there is a way to hide columns it the result, like:
SELECT car_nr, model, travel_days FROM table1,table2 WHERE number  414
AND (car_nr  truck_nr) from transport;
and show only result of the colums travel_days, but ONLY on*
**separate* columns
and  HIDE OTHER COLUMNS.

I've posted here more detailed:
http://forums.runrev.com/viewtopic.php?f=12t=11426p=53702#p53702
Help please...

On 20 March 2012 01:09, Pete p...@mollysrevenge.com wrote:

 Seems like either Peter or Mark's solution would be a lot better than
 trying to do it with an SQL SELECT, but I'm also not sure of what Marek is
 trying to achieve - seems strange to want to replace all the numbers with
 plus signs.  Maybe he wants a floating plus sign at the start of the
 number, dunno.
 Pete

 On Mon, Mar 19, 2012 at 3:50 PM, Peter M. Brigham, MD pmb...@gmail.com
 wrote:

  repeat with n = 1 to length(tInput)
if char n of tInput is a number
then put + into char n of tInput
else put - into char n of tInput
  end repeat
 
  Or am I missing something?
 
  -- Peter
 
  Peter M. Brigham
  pmb...@gmail.com
  http://home.comcast.net/~pmbrig
 
  On Mar 19, 2012, at 5:15 PM, Pete wrote:
 
   I wonder if there might be a less ugly way to do this in LC instead of
   SQL...
   Pete
  
   On Mon, Mar 19, 2012 at 2:04 PM, Marek reichenbach.ma...@gmail.com
  wrote:
  
   Thanks a lot! That helped me a lot man.
  
   Marek Reichenbach
  
   On 2012 Kov. 19, at 19:29, Ken Ray k...@sonsothunder.com wrote:
  
  
   On Mar 19, 2012, at 3:44 AM, Marek Reichenbach wrote:
   when i get for example: 1234567 - i should get result +++,
  123-56-
   I
   would get +++-++- .
  
   The only way I know is kind of ugly, requiring seven nested REPLACE
   statements:
  
   SELECT
  
 
 REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(123-56-,1,+),2,+),3,+),4,+),5,+),6,+),7,+)
  
   This would return:
  
   +++-++-
  
  
   Ken Ray
   Sons of Thunder Software, Inc.
   Email: k...@sonsothunder.com
   Web Site: http://www.sonsothunder.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
  
  
  
  
   --
   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
 
 
  ___
  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

___
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: Serious Question about the list...

2012-03-20 Thread Bernard Devlin
The mailing lists predate the forum by many years.  Some people who
used the mailing list complained they preferred a forum, so RunRev
obliged and provided the forum.  It's not that one discussion
mechanism is officially sanctioned by RunRev, although I suspect new
users find the forum before the find the mailing list (and I suspect
that announcements from the MotherShip might be more notable in the
mailing list channel than in the forum).

Those of us for whom the mailing list was the way we discussed these
things for years have continued to use the mailing list.  Some people
are quite disciplined in going off to the forum to help out in
discussions there.  Some of us (such as me) just have a look at the
forum every few weeks or months.  I have a load of different
technologies to keep on top of, and just don't feel I have the time to
visit the forum on a regular basis.  Some of the old-hands (and some
of the new-hands) here are super-human.

Like others, I keep my email from RunRev in gmail, and have my own
search mechanism at hand.  I also use the 'draft' folder on gmail to
hold RunRev related notes of my own, so that when searching for
something I don't just find the past discussions of others, but also
have my own notes turn up in the results.  The forum is not actually
(IMO) easier to read or search than using the mailing list via gmail.

Bernard

On Sun, Mar 18, 2012 at 1:32 PM, Richard MacLemale
rich...@richardmac.com wrote:
 Here's my serious question.  Why do so many people in the know use the list 
 instead of the official RunRev LiveCode forums?  Forums have so many 
 advantages over mailing lists - they're easier to read, they're easier to 
 search, you can access them from anywhere, I could keep going.  I'm just 
 curious as to why the best LiveCoders spend more time here than in the 
 forums? There are people who participate in both - I see Jacque and Klaus in 
 there all the time and I probably owe Klaus a case of beer at this point...

 Anyway, just curious?

 ---
 Richard MacLemale
 Music = http://www.richardmac.com
 Programming = http://www.macandchee.se

 ___
 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


[MobGUI]Geometry Reset?

2012-03-20 Thread Mike Kerner
I have one of several apps that I'm using MG to create the layouts for the
other iOS geometries.
Everything is going fine until I select iPad Landscape.  Then all of a
sudden font sizes shrink and objects get bigger - the navBar, buttons, etc.
all grew, but the fonts in all of those objects shrunk.  This is especially
obvious when you fire up the simulator.

So has anybody else run into this, and how did you fix it?  I tried the MG
recovery but that didn't help matters.

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is good.
___
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: Failing to understand the oddities of the line chunk

2012-03-20 Thread Peter M. Brigham, MD
On Mar 20, 2012, at 1:52 AM, Geoff Canyon wrote:

 On Mon, Mar 19, 2012 at 12:54 PM, J. Landman Gay
 jac...@hyperactivesw.comwrote:
 
 I think it should behave the same way character selections do. A negative
 range has been a valid construct since HyperCard and is, actually, the only
 way to set the insertion point by script. It's a necessary feature.
 
 
 This seems to work, and is far clearer:
 
   *select* before char 8 of fld 1
 
 after works as well, as do word and line references.

Right, but if you have an insertion point in a field (no text selected), then 
the selectedChunk will contain something like
   char 13 to 12 of field 2
This is designed so that the selectedChunk is always in the form
   char startchar to endchar of fld fldNbr
That's just the way it works. After dealing with chunks for a while it does 
make sense, and it's consistent.

Jacque's point still holds, though -- the implementation of this form using 
lines instead of chars is *not* consistent.

try this:

put one,two,three into t
replace comma with cr in t
put t into tt
put WHAT!!!??? into line 3 to 2 of tt
put t  cr  cr  tt

which gives you:

one
two
three

WHAT!!!???one
two
three

The WHAT should appear at the start of line 3, or possibly should replace the 
cr at the end of line 2, depending on how you look at it.

I agree with you that this syntax should be blocked by the IDE at compile time 
if it's not going to be implemented properly at runtime. I'd call it a bug.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: Failing to understand the oddities of the line chunk

2012-03-20 Thread Geoff Canyon
I understand that this is what the engine returns when the selection is
empty, and I'm prepared to accept it as a necessary method for the engine
to describe an empty insertion point, but just because the engine reports
char 13 to 12 doesn't mean the engine should accept setting the selection
to char 47 to 26, or to word 9 to 3, or line 7 to 4. The engine returns one
exact format, and allowing it to accept that one exact format should be all
it does. There's no reason other than bad history to do so.

On Tue, Mar 20, 2012 at 8:40 AM, Peter M. Brigham, MD pmb...@gmail.comwrote:

 Right, but if you have an insertion point in a field (no text selected),
 then the selectedChunk will contain something like
   char 13 to 12 of field 2
 This is designed so that the selectedChunk is always in the form
   char startchar to endchar of fld fldNbr

___
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: [MobGUI]Geometry Reset?

2012-03-20 Thread Mike Kerner
Every one of the other layouts went smoothly - switch to the layout
setting, move and resize everything, repeat.  However when I went to iPad
Landscape all of a sudden the objects crew substantially and the fonts
shrunk substantially.  It is really dramatic when comparing to iPad
Portrait.

In the simulator the fonts look downright goofy.  if I could trash the iPad
Landscape geometry info and start over it would be fine.  There aren't that
many objects on this card.

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is good.
___
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


accessing colorized script

2012-03-20 Thread Peter M. Brigham, MD
Anyone know how I can get the colorized htmltext of a script from the script 
editor without opening the editor and copying the text? I have a handler that 
puts a section of a stack script into a field -- pretty straightforward to just 
extract the relevant plain text from the script. But it would be a bonus if I 
could put the colorized script into the field without recreating the colorizing 
scripts of the IDE. I'm doing this in the IDE, not a standalone, so I could 
make use of the hooks in the IDE if I could figure out how. I've looked at the 
scripts in the revNewScriptEditor stack but can't figure them out. I'm looking 
for something like a revColorizeScript handler

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: [MobGUI]Geometry Reset?

2012-03-20 Thread Mike Kerner
Ugh.  Well I just (foolishly) tried this with another stack as well, and in
this one it's iPad Portrait that seems to break.  Hmm.


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is good.
___
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: Failing to understand the oddities of the line chunk

2012-03-20 Thread Peter M. Brigham, MD
On Mar 20, 2012, at 10:00 AM, Klaus on-rev wrote:

 Hi Peter,
 
 Am 20.03.2012 um 14:40 schrieb Peter M. Brigham, MD:
 
 On Mar 20, 2012, at 1:52 AM, Geoff Canyon wrote:
 
 On Mon, Mar 19, 2012 at 12:54 PM, J. Landman Gay
 jac...@hyperactivesw.comwrote:
 
 ...
 Jacque's point still holds, though -- the implementation of this form using 
 lines instead of chars is *not* consistent.
 try this:
 
 put one,two,three into t
 replace comma with cr in t
 put t into tt
 
 ##put WHAT!!!??? into line 3 to 2 of tt
 ## Wrong ORDER of line range!
 
 put Waht!!!??? into line 2 to 3 of tt
 ## Will give the desired result:

That's my point. The compiler should reject
   put WHAT!!!??? into line 3 to 2 of tt
if it's not going to implement it in a way that is consistent with
   put WHAT!!!??? into char 3 to 2 of tt

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: [MobGUI]Geometry Reset?

2012-03-20 Thread Matthias Rebbe
Hi Mike,

the data is stored in custom properties of the card.
For each object there is one custom property and for each 
orientation/resolution there is a set e.g. uMobGUIGeometry-640x960.
Try to delete the set  uMobGUIGeometry-640x960. This deletes all settings for  
ipad landscape.
But please make a backup first, as i am not sure, if this is the correct way.

John Craig should know the correct solution/answer.

Regards,

Matthias

Am 20.03.2012 um 15:33 schrieb Mike Kerner:

 Ugh.  Well I just (foolishly) tried this with another stack as well, and in
 this one it's iPad Portrait that seems to break.  Hmm.
 
 
 -- 
 On the first day, God created the heavens and the Earth
 On the second day, God created the oceans.
 On the third day, God put the animals on hold for a few hours,
   and did a little diving.
 And God said, This is good.
 ___
 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: [MobGUI]Geometry Reset?

2012-03-20 Thread Matthias Rebbe
Hi Mike,

i made a mistake in my last post. Try to delete uMobGUIGeometry-960x640. That 
is the correct set.


Am 20.03.2012 um 15:53 schrieb Matthias Rebbe:

 Hi Mike,
 
 the data is stored in custom properties of the card.
 For each object there is one custom property and for each 
 orientation/resolution there is a set e.g. uMobGUIGeometry-640x960.
 Try to delete the set  uMobGUIGeometry-640x960. This deletes all settings for 
  ipad landscape.
 But please make a backup first, as i am not sure, if this is the correct way.
 
 John Craig should know the correct solution/answer.
 
 Regards,
 
 Matthias
 
 Am 20.03.2012 um 15:33 schrieb Mike Kerner:
 
 Ugh.  Well I just (foolishly) tried this with another stack as well, and in
 this one it's iPad Portrait that seems to break.  Hmm.
 
 
 -- 
 On the first day, God created the heavens and the Earth
 On the second day, God created the oceans.
 On the third day, God put the animals on hold for a few hours,
  and did a little diving.
 And God said, This is good.
 ___
 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: [MobGUI]Geometry Reset?

2012-03-20 Thread Mike Kerner
Thanks, Matthias.  I'll try that.  John has been really busy, so I was
hoping to get an answer from the masses first.


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is good.
___
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: Failing to understand the oddities of the line chunk

2012-03-20 Thread Mark Wieder
Folks-

Maybe I've missed this, but has a bug been filed? I can't think of a
use case where the current behavior is preferred, and I can't see how
changing it to something more consistent and er... correct... would
break any existing code. I think this is something the rev team should
fix, or at least look into.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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: MySQL joined select

2012-03-20 Thread Bob Sneidar
Any columns you define in the select statement will be in the returned data. 
You do not have to retrieve a column to use it in the select statement. This 
works:

select zip from addresses where state = CA

Besides that, I do not know what you mean by hide. Hide from what? Your user 
interface? If you are using a datagrid, you can simply set the 
dgprop[columns] of the datagrid to the ones you want to see, excluding the 
ones you want to hide. The data will still be there and can be referenced like 
all the other data, but it won't show in the datagrid. 

Bob


On Mar 20, 2012, at 2:20 AM, Marek Reichenbach wrote:

 Thanks for the replies.
 I've made it workin, but I wanna add something else:
 
 So the question in SQL is:
 
 Maybe there is a way to hide columns it the result, like:
 SELECT car_nr, model, travel_days FROM table1,table2 WHERE number  414
 AND (car_nr  truck_nr) from transport;
 and show only result of the colums travel_days, but ONLY on*
 **separate* columns
 and  HIDE OTHER COLUMNS.
 
 I've posted here more detailed:
 http://forums.runrev.com/viewtopic.php?f=12t=11426p=53702#p53702
 Help please...
 
 On 20 March 2012 01:09, Pete p...@mollysrevenge.com wrote:
 
 Seems like either Peter or Mark's solution would be a lot better than
 trying to do it with an SQL SELECT, but I'm also not sure of what Marek is
 trying to achieve - seems strange to want to replace all the numbers with
 plus signs.  Maybe he wants a floating plus sign at the start of the
 number, dunno.
 Pete
 
 On Mon, Mar 19, 2012 at 3:50 PM, Peter M. Brigham, MD pmb...@gmail.com
 wrote:
 
 repeat with n = 1 to length(tInput)
  if char n of tInput is a number
  then put + into char n of tInput
  else put - into char n of tInput
 end repeat
 
 Or am I missing something?
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 On Mar 19, 2012, at 5:15 PM, Pete wrote:
 
 I wonder if there might be a less ugly way to do this in LC instead of
 SQL...
 Pete
 
 On Mon, Mar 19, 2012 at 2:04 PM, Marek reichenbach.ma...@gmail.com
 wrote:
 
 Thanks a lot! That helped me a lot man.
 
 Marek Reichenbach
 
 On 2012 Kov. 19, at 19:29, Ken Ray k...@sonsothunder.com wrote:
 
 
 On Mar 19, 2012, at 3:44 AM, Marek Reichenbach wrote:
 when i get for example: 1234567 - i should get result +++,
 123-56-
 I
 would get +++-++- .
 
 The only way I know is kind of ugly, requiring seven nested REPLACE
 statements:
 
 SELECT
 
 
 REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(123-56-,1,+),2,+),3,+),4,+),5,+),6,+),7,+)
 
 This would return:
 
 +++-++-
 
 
 Ken Ray
 Sons of Thunder Software, Inc.
 Email: k...@sonsothunder.com
 Web Site: http://www.sonsothunder.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
 
 
 
 
 --
 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
 
 
 ___
 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
 
 ___
 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: MySQL joined select

2012-03-20 Thread Ken Ray

On Mar 20, 2012, at 4:20 AM, Marek Reichenbach wrote:

 Thanks for the replies.
 I've made it workin, but I wanna add something else:
 
 So the question in SQL is:
 
 Maybe there is a way to hide columns it the result, like:
 SELECT car_nr, model, travel_days FROM table1,table2 WHERE number  414
 AND (car_nr  truck_nr) from transport;
 and show only result of the colums travel_days, but ONLY on*
 **separate* columns
 and  HIDE OTHER COLUMNS.

You only include the columns you want back in the SELECT part of the query:

SELECT travel_days FROM …

Also, although I know you provided a dummy query, be aware that there are two 
inherent problems with the one you provided:

1) If you have multiple tables in the FROM clause, you need to identify the 
table attached to the column in the SELECT clause (although some SQL engines 
might just assume you meant the first table, it's good form to identify the 
table), either by full name:

  SELECT table1.travel_days FROM table1,table2 WHERE…

or by alias:

  SELECT t1.travel_days FROM table1 t1,table2 t2 WHERE…

2) I'm not sure what from transport means since you already have a FROM 
clause in your example query

The bottom line is that you don't have to include columns in the SELECT portion 
of the query that you don't want back, so long as you identify them properly 
and they actually exist in the table you're referencing.

Just be aware that LiveCode's text parsing is second to none, so there are 
usually times where it may actually be easier and more efficient to let SQL 
handle getting the data, but let LiveCode handle parsing the data after it 
arrives. As I mentioned in an earlier post, you *can* use SQL to change your 
numbers to + symbols, but it's ugly - Mark's method to post-process it in LC 
with a single statement if far better (IMHO).

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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: accessing colorized script

2012-03-20 Thread J. Landman Gay

On 3/20/12 9:30 AM, Peter M. Brigham, MD wrote:

Anyone know how I can get the colorized htmltext of a script from the
script editor without opening the editor and copying the text?


I don't think you can any more, the colorization is done by the engine. 
There used to be a script for it in older versions of the IDE. If you 
have an old version of Rev you might find it. I can't recall which 
version had the changeover but if you go back to, say, version 3.x it's 
probably in there.


--
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: Failing to understand the oddities of the line chunk

2012-03-20 Thread Bob Sneidar
If I may be so bold, remember the discussion about the filter command returning 
different results depending on whether or not the chunk ended in a CR or not? 
Some argued that that was how it ought to behave. Are we now saying that 
consistency is the order of the day? So let it be written! So let it be done! 
But let's go with consistency in ALL things. 

Bob


On Mar 20, 2012, at 6:40 AM, Peter M. Brigham, MD wrote:

 Right, but if you have an insertion point in a field (no text selected), then 
 the selectedChunk will contain something like
   char 13 to 12 of field 2
 This is designed so that the selectedChunk is always in the form
   char startchar to endchar of fld fldNbr
 That's just the way it works. After dealing with chunks for a while it does 
 make sense, and it's consistent.
 
 Jacque's point still holds, though -- the implementation of this form using 
 lines instead of chars is *not* consistent.


___
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: accessing colorized script

2012-03-20 Thread Bob Sneidar
Confounded new fangled engines! You can't work on 'em these days!

Bob


On Mar 20, 2012, at 8:46 AM, J. Landman Gay wrote:

 On 3/20/12 9:30 AM, Peter M. Brigham, MD wrote:
 Anyone know how I can get the colorized htmltext of a script from the
 script editor without opening the editor and copying the text?
 
 I don't think you can any more, the colorization is done by the engine. There 
 used to be a script for it in older versions of the IDE. If you have an old 
 version of Rev you might find it. I can't recall which version had the 
 changeover but if you go back to, say, version 3.x it's probably in there.
 
 -- 
 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


___
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: MySQL joined select

2012-03-20 Thread Pete
Hi Marek,
I think you're confusing what you get back from the SELECT statement with
what you display to your users - they are two different things.  I'm going
to assume that you need all the columns you name in your SELECT statement
for some processing reasons but that doesn't mean you have to show them all
to your users.  Once you get the data back from the SELECT, it's up to you
which columns you put in a filed, datagrid, or any other Livecode control.

Maybe  you're thinking that you have to SELECT the column because you refer
to it elsewhere in the SELECT statement, but that's not the case.  You can
refer to any columns form the selected tables anywhere in your SELECT even
if they are not explicitly selected.

Pete

On Tue, Mar 20, 2012 at 2:20 AM, Marek Reichenbach 
reichenbach.ma...@gmail.com wrote:

 Thanks for the replies.
 I've made it workin, but I wanna add something else:

 So the question in SQL is:

 Maybe there is a way to hide columns it the result, like:
 SELECT car_nr, model, travel_days FROM table1,table2 WHERE number  414
 AND (car_nr  truck_nr) from transport;
 and show only result of the colums travel_days, but ONLY on*
 **separate* columns
 and  HIDE OTHER COLUMNS.

 I've posted here more detailed:
 http://forums.runrev.com/viewtopic.php?f=12t=11426p=53702#p53702
 Help please...

 On 20 March 2012 01:09, Pete p...@mollysrevenge.com wrote:

  Seems like either Peter or Mark's solution would be a lot better than
  trying to do it with an SQL SELECT, but I'm also not sure of what Marek
 is
  trying to achieve - seems strange to want to replace all the numbers with
  plus signs.  Maybe he wants a floating plus sign at the start of the
  number, dunno.
  Pete
 
  On Mon, Mar 19, 2012 at 3:50 PM, Peter M. Brigham, MD pmb...@gmail.com
  wrote:
 
   repeat with n = 1 to length(tInput)
 if char n of tInput is a number
 then put + into char n of tInput
 else put - into char n of tInput
   end repeat
  
   Or am I missing something?
  
   -- Peter
  
   Peter M. Brigham
   pmb...@gmail.com
   http://home.comcast.net/~pmbrig
  
   On Mar 19, 2012, at 5:15 PM, Pete wrote:
  
I wonder if there might be a less ugly way to do this in LC instead
 of
SQL...
Pete
   
On Mon, Mar 19, 2012 at 2:04 PM, Marek reichenbach.ma...@gmail.com
   wrote:
   
Thanks a lot! That helped me a lot man.
   
Marek Reichenbach
   
On 2012 Kov. 19, at 19:29, Ken Ray k...@sonsothunder.com wrote:
   
   
On Mar 19, 2012, at 3:44 AM, Marek Reichenbach wrote:
when i get for example: 1234567 - i should get result +++,
   123-56-
I
would get +++-++- .
   
The only way I know is kind of ugly, requiring seven nested REPLACE
statements:
   
SELECT
   
  
 
 REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(123-56-,1,+),2,+),3,+),4,+),5,+),6,+),7,+)
   
This would return:
   
+++-++-
   
   
Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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
   
   
   
   
--
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
  
  
   ___
   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
 
 ___
 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 

Re: MySQL joined select

2012-03-20 Thread Pete
Hi Ken,
Good catch on the multiple FROM clauses, not sure what that's all about.
 Probably just needs to qualify the columns in the condition with the table
name.

The SELECT statement has a lot of problems in general.  There's no JOIN
statement to link table1 and table2 together, for example.  That might work
as long as the column(s) to be used to join the tables together have the
same name in both tables but in general, it's much better to explicitly
define the linkage with a JOIN statement - for clarity reasons if no other.

Just one comment on the need to qualify columns with table names.  I
definitely agree it's good practice to do that for clarity but as long as a
column name is unique among all tables, SQL will figure out which table an
unqualified column name belongs to.

Pete

On Tue, Mar 20, 2012 at 8:46 AM, Ken Ray k...@sonsothunder.com wrote:


 On Mar 20, 2012, at 4:20 AM, Marek Reichenbach wrote:

  Thanks for the replies.
  I've made it workin, but I wanna add something else:
 
  So the question in SQL is:
 
  Maybe there is a way to hide columns it the result, like:
  SELECT car_nr, model, travel_days FROM table1,table2 WHERE number  414
  AND (car_nr  truck_nr) from transport;
  and show only result of the colums travel_days, but ONLY on*
  **separate* columns
  and  HIDE OTHER COLUMNS.

 You only include the columns you want back in the SELECT part of the query:

 SELECT travel_days FROM …

 Also, although I know you provided a dummy query, be aware that there are
 two inherent problems with the one you provided:

 1) If you have multiple tables in the FROM clause, you need to identify
 the table attached to the column in the SELECT clause (although some SQL
 engines might just assume you meant the first table, it's good form to
 identify the table), either by full name:

  SELECT table1.travel_days FROM table1,table2 WHERE…

 or by alias:

  SELECT t1.travel_days FROM table1 t1,table2 t2 WHERE…

 2) I'm not sure what from transport means since you already have a FROM
 clause in your example query

 The bottom line is that you don't have to include columns in the SELECT
 portion of the query that you don't want back, so long as you identify them
 properly and they actually exist in the table you're referencing.

 Just be aware that LiveCode's text parsing is second to none, so there are
 usually times where it may actually be easier and more efficient to let SQL
 handle getting the data, but let LiveCode handle parsing the data after it
 arrives. As I mentioned in an earlier post, you *can* use SQL to change
 your numbers to + symbols, but it's ugly - Mark's method to post-process
 it in LC with a single statement if far better (IMHO).

 Ken Ray
 Sons of Thunder Software, Inc.
 Email: k...@sonsothunder.com
 Web Site: http://www.sonsothunder.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




-- 
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: MySQL joined select

2012-03-20 Thread Marek Reichenbach
Thanks for the replie!!! :), I'll make some research.

On 20 March 2012 18:38, Pete p...@mollysrevenge.com wrote:

 Hi Ken,
 Good catch on the multiple FROM clauses, not sure what that's all about.
  Probably just needs to qualify the columns in the condition with the table
 name.

 The SELECT statement has a lot of problems in general.  There's no JOIN
 statement to link table1 and table2 together, for example.  That might work
 as long as the column(s) to be used to join the tables together have the
 same name in both tables but in general, it's much better to explicitly
 define the linkage with a JOIN statement - for clarity reasons if no other.

 Just one comment on the need to qualify columns with table names.  I
 definitely agree it's good practice to do that for clarity but as long as a
 column name is unique among all tables, SQL will figure out which table an
 unqualified column name belongs to.

 Pete

 On Tue, Mar 20, 2012 at 8:46 AM, Ken Ray k...@sonsothunder.com wrote:

 
  On Mar 20, 2012, at 4:20 AM, Marek Reichenbach wrote:
 
   Thanks for the replies.
   I've made it workin, but I wanna add something else:
  
   So the question in SQL is:
  
   Maybe there is a way to hide columns it the result, like:
   SELECT car_nr, model, travel_days FROM table1,table2 WHERE number 
 414
   AND (car_nr  truck_nr) from transport;
   and show only result of the colums travel_days, but ONLY on*
   **separate* columns
   and  HIDE OTHER COLUMNS.
 
  You only include the columns you want back in the SELECT part of the
 query:
 
  SELECT travel_days FROM …
 
  Also, although I know you provided a dummy query, be aware that there are
  two inherent problems with the one you provided:
 
  1) If you have multiple tables in the FROM clause, you need to identify
  the table attached to the column in the SELECT clause (although some SQL
  engines might just assume you meant the first table, it's good form to
  identify the table), either by full name:
 
   SELECT table1.travel_days FROM table1,table2 WHERE…
 
  or by alias:
 
   SELECT t1.travel_days FROM table1 t1,table2 t2 WHERE…
 
  2) I'm not sure what from transport means since you already have a FROM
  clause in your example query
 
  The bottom line is that you don't have to include columns in the SELECT
  portion of the query that you don't want back, so long as you identify
 them
  properly and they actually exist in the table you're referencing.
 
  Just be aware that LiveCode's text parsing is second to none, so there
 are
  usually times where it may actually be easier and more efficient to let
 SQL
  handle getting the data, but let LiveCode handle parsing the data after
 it
  arrives. As I mentioned in an earlier post, you *can* use SQL to change
  your numbers to + symbols, but it's ugly - Mark's method to
 post-process
  it in LC with a single statement if far better (IMHO).
 
  Ken Ray
  Sons of Thunder Software, Inc.
  Email: k...@sonsothunder.com
  Web Site: http://www.sonsothunder.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
 
 


 --
 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

___
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


Error Codes

2012-03-20 Thread Ralph DiMola
OK, I give up. How do you translate error number into descriptive text?

The only reference I can find is:

put line errorcode of the cErrorsList of stack revErrorDisplay

I tried for example

put line 353 of the cErrorsList of stack revErrorDisplay

and all I get is empty.

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


___
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: using a special keyboard in livecode fields (in Windows 7)

2012-03-20 Thread Richmond

On 03/20/2012 12:08 AM, rand valentine wrote:

Hi, guys. Here’s another Unicode-related question. How can I use a Unicode 
keyboard to type in a Livecode field? I’m working with an American Indian 
language (called Hocąk), and I need to be able to type characters such as š, 
ǧ and ąą. I can put them into a field with Unicode commands, but when I try 
and type in a field using the special keyboard (a system-level thing), the 
keyboard seems to be ignored. Is there some trick to this? Thanks so much.



rand valentine

university of wisconsin-madison

___
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


On a Mac, a Win or a Lin?

___
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

AW: how to resize icons when resizing objects?

2012-03-20 Thread Tiemo Hollmann TB
Yes so do I today too, but after I've seen first impressions of Win8, I'm
thinking of where the journey goes to...
Tiemo

 
 No, you're absolutely right - the main reason I haven't had to do this is
 that 99.5% of my development is on desktop apps, so I'm more used to
 resizing windows and repositining controls rather than scaling them.
 
 :D
 
 Ken Ray
 Sons of Thunder Software, Inc.
 Email: k...@sonsothunder.com
 Web Site: http://www.sonsothunder.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: accessing colorized script

2012-03-20 Thread Alex Tweedly

Could you use the one from GLX  ?
  (I don't know how stand alone it is, or how hard it might be to 
extract from its context).


-- Alex.

On 20/03/2012 15:46, J. Landman Gay wrote:

On 3/20/12 9:30 AM, Peter M. Brigham, MD wrote:

Anyone know how I can get the colorized htmltext of a script from the
script editor without opening the editor and copying the text?


I don't think you can any more, the colorization is done by the 
engine. There used to be a script for it in older versions of the IDE. 
If you have an old version of Rev you might find it. I can't recall 
which version had the changeover but if you go back to, say, version 
3.x it's probably in there.





___
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: using a special keyboard in livecode fields (in Windows 7)

2012-03-20 Thread Warren Samples

On 03/20/2012 12:37 PM, Richmond wrote:

On a Mac, a Win or a Lin?



Did you fall asleep before you reached the end of the subject?

:D

___
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: Error Codes

2012-03-20 Thread Ralph DiMola
Mark,

THANK YOU The of card 1 was what I was missing.

Again I'm guilty of reading the dictionary too fast.

Thanks for your time!

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mark Schonewille
Sent: Tuesday, March 20, 2012 1:54 PM
To: How to use LiveCode
Subject: Re: Error Codes

Hi Ralph,

One possibility is to use the LiveCodeErrors app for iPhone. You can find
this in the iTunes store.

Another possibility is to use this http://qery.us/1w7 library (shareware). 

There is also quite some information about this available on the mailing
list http://qery.us/1w8 and there you can find that you need to use the
cErrorsList of cd 1 of stack revErrorDisplay.

--
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 20 mrt 2012, at 18:37, Ralph DiMola wrote:

 OK, I give up. How do you translate error number into descriptive text?
 
 The only reference I can find is:
 
 put line errorcode of the cErrorsList of stack revErrorDisplay
 
 I tried for example
 
 put line 353 of the cErrorsList of stack revErrorDisplay
 
 and all I get is empty.
 
 Thanks
 
 Ralph DiMola
 IT Director
 Evergreen Information Services
 rdim...@evergreeninfo.net
 


___
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: using a special keyboard in livecode fields (in Windows 7)

2012-03-20 Thread Richmond

On 03/20/2012 08:10 PM, Warren Samples wrote:

On 03/20/2012 12:37 PM, Richmond wrote:

On a Mac, a Win or a Lin?



Did you fall asleep before you reached the end of the subject?

:D



Pretty well.

___
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: using a special keyboard in livecode fields (in Windows 7)

2012-03-20 Thread Bob Sneidar
Me?? I never replied to this subject.


On Mar 20, 2012, at 11:33 AM, Richmond wrote:

 Did you fall asleep before you reached the end of the subject?
 
 :/D
 
 You ought to think a wee bit before you decide to be rude.
 
 Thunderbird cut off the end of your subject line (I found out what it was
 by accessing the Use-List via Firefox).
 
 -
 
 Richmond.
 /
 
 ___
 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: Failing to understand the oddities of the line chunk

2012-03-20 Thread Pete
I think it's unlikely anything about this behavior will change no matter
what bug report is filed.  There's the backward compatibility issue you
raised (although I personally think that is usually a cop out) but you
could also argue that what happens is by design.

I'm thinking your hope for a more right answer is probably in vain at
this point!

Pete

On Tue, Mar 20, 2012 at 10:53 AM, Alex Tweedly a...@tweedly.net wrote:

 On 20/03/2012 17:17, Pete wrote:

 So I wouldn't vote for a bug report that asked for lines to behave like
 characters in this respect.  I would vote for a bug report that asked for
 this situation to be caught as an error (although I think it would have to
 be a run time error not compile time since the start and end points could
 be variables or expressions).

 Lost in this discussion is the reason why someone wanted to do this in the
 first place.  Alex, I think it was you that started this whole thread -
 did
 you have a specific reason for wanting to specify a line range with an end
 point before the start or was it just an observation?

  No, no specific reason to want to do it - it kind of happened by
 accident :-)
 And it wasn't so much an observation as a question -
   can someone give me a rationale for this behaviour so I can deal with it
 better ?

 What I *wanted* to do was replace line 'x' of someContainer (and
 everything after it) by my new data,
 so I did the (temptingly logical - but WRONG) thing of

 put newData into line x to -1 of someContainer

 NB that is simply wrong, because line -1 means the last line that is
 there - not to the end after what I specified :-)

 as it happened, the container had x-1 lines in it at the time (including a
 trailing line delimiter, just to confuse things), so that became equivalent
 to   put newData into line x to x-1 of someContainer

 I knew that what was happening seemed wrong - but couldn't figure out how
 or why. Jacque's explanation showed me what I should do - but still left
 that niggling feeling of something being a bit odd.

 I can get what I wanted in a couple of safe ways
 a.delete line x to -1 of t!! inverted range - but AFAIK it does
 the right thing with it in all cases
   put newData into line 2 of t

 b.put newData into line 2 to kInfinity of t   -- where kInfinity is
 some arbitrarily large constant

 I'm not sure what I would vote for now, hence I haven't yet put in a bug
 report. Personally, I'd probably like a run-time error, but I suspect that
 the need for backwards compatability would prevent that being feasible.

 -- Alex, still hoping for someone to come up with a more right answer :-)



 __**_
 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




-- 
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: using a special keyboard in livecode fields (in Windows 7)

2012-03-20 Thread Richmond

On 03/20/2012 08:48 PM, Bob Sneidar wrote:

Me?? I never replied to this subject.


@Bob: you have never been rude to me; unless, of course, I am so goofy as to
have misunderstood the subtleties of what you are saying . . .  :)

The person who wrote this Did you fall asleep before you reached the 
end of the subject?


knows very well who they are.

AND . . . between you, me and the rest of the Use-List, I am 
sufficiently thick-skinned not to let that
sort of thing really fuss me: but the person who wrote it should no that 
I am only partly cretinous,
and that there might have been a perfectly good reason for my question: 
which there was.

--

Just been over to my Mac and managed very successfully to type some 
Hindi into a Unicode field,

so suspect this is a Windows 7 thing.

Knowing that Non-Latin keyboards do tend to screw up in Windows (faced 
this with Vista a while
back), I went through a merry time with my Devawriter; to the extent 
that it locks out all
keyboard mappings except the ones I have programmed into the standalone 
itself.


J. Landman Gay was writing something that I only saw out of half and eye 
that Unicode types
would be happy about whatever is forthcoming in LC 5.5 (personally don't 
have the money right now);

so, just maybe, this aspect of things will be sorted out.




On Mar 20, 2012, at 11:33 AM, Richmond wrote:


Did you fall asleep before you reached the end of the subject?

:/D

You ought to think a wee bit before you decide to be rude.

Thunderbird cut off the end of your subject line (I found out what it was
by accessing the Use-List via Firefox).

-

Richmond.
/

___
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


MySQL standalone issues

2012-03-20 Thread Sieg Lindstrom
Can anyone point me to an article or tutorial that walks thru all the 
considerations for making MySQL database functionality work in a standalone?

I have created several apps that query a MySQL database. They work fine in the 
IDE but I have never been able to get them to run as standalones, from which 
they return a variety of error messages depending on the specific query 
involved.

Thanks in advance,

Sieg Lindstrom
___
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: Text formatting for a slider

2012-03-20 Thread Richmond

I wonder what is wrong with this:

put the propertyNames of scrollbar ZLIDE into fld PROPPS

___
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


answer dlog box changes Mac full screen mode

2012-03-20 Thread tbodine
Hi all.

Found a quirk on MacOSX and wonder if you have a workaround. Scenario:

Standalone (made with LC 4.6.4) and running on Mac Lion is set to full
screen, so there is not titlebar when it opens. However, if app uses the
answer command, after dismissing that dlog box the Mac puts a titlebar
across the top of the full screen monitor.  (PC does not do this.)

Since the app is for use in a presentation, I want to avoid the titlebar. 
Anyone know a workaround?

Thanks,
Tom Bodine


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/answer-dlog-box-changes-Mac-full-screen-mode-tp4490058p4490058.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: New Xcode 4.3.1

2012-03-20 Thread Pete
I'm happy to see  in the newsletter announcement of LC 5.5 I just received
that it retains Save As as a file menu option.  Maybe Apple will ban LC
from use on desktops because of that, who knows.
Pete

On Mon, Mar 19, 2012 at 3:57 PM, Tim Jones tolis...@me.com wrote:

 On Mar 19, 2012, at 3:43 PM, J. Landman Gay wrote:

  On 3/19/12 3:25 PM, Ken Ray wrote:
 
  This is actually a lot uglier when you try to Save as a file on a
 locked volume to another place - you get multiple steps and tirades of
 dialogs informing you why you can't save the original file (which you
 weren't trying to do in the first place)…
 
  Is Export supposed to do that now? Mind, I'm still going on
 theoreticals until I actually install Lion.

 ... but what you're supposed to do is according to my Apple Store Genius
 is Duplicate the opened file, close the original, change the new Copy
 and then Save.  When you save the duplicate, you'll be prompted with the
 normal Save As... dialogs.

 And I agree, this is two steps back.

 Tim


 ___
 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: accessing colorized script

2012-03-20 Thread J. Landman Gay

On 3/20/12 2:24 PM, Mark Wieder wrote:

Peter M. Brigham, MDpmbrig@...  writes:


I'm looking for something like a revColorizeScript handler


_internal script colorize line 1 to (the number of lines of field 1) of field 1



Ooooh!

--
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: accessing colorized script

2012-03-20 Thread Mark Wieder
Jacque-

Tuesday, March 20, 2012, 1:20:51 PM, you wrote:

 _internal script colorize line 1 to (the number of lines of field 1) of 
 field 1

 Ooooh!

You can also use chars instead of lines.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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: Error Codes

2012-03-20 Thread J. Landman Gay

On 3/20/12 12:37 PM, Ralph DiMola wrote:

OK, I give up. How do you translate error number into descriptive
text?


There's a plugin that Richard Gaskin and I developed. I've been trying 
to upload it to RevOnline for some time but it won't let me. Until that 
gets fixed, anyone who wants it can grab it from my Dropbox:


http://dl.dropbox.com/u/23431607/LiveCode%20Error%20Lookup.livecode.zip

The advantage of this little stack over a static resource (besides being 
free) is that it dynamically loads the error list from the currently 
running copy of LiveCode. That means it will never go out of date, and 
will change depending on which version of LiveCode you open it in.


There's a second card that's intended for use with debugging iOS errors 
copied from the Console app. There's an Info button in the stack for 
more details.


It hasn't been thoroughly tested but I've been using it for some time 
without any problems. The scripts are open, so you can change it if you 
want. If you do, please let me know so I can update the master copy.


--
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: MySQL standalone issues

2012-03-20 Thread Sieg Lindstrom
Thanks, Pete. That gives me a clue. The LC app of primary concern to me has 
such a long history it started out as a HyperCard stack (and formerly 
interfaced with a local database, not MySQL). There are instances in which it 
temporarily saves data to text files to get around HyperCard's 30,000-character 
field length limit. That said, I have considered that aspect before, and the 
text files in question are included with the stack in the standalone settings, 
but maybe I haven't done that properly.

In fact, I now realize that the text files, being of such ancient vintage, 
don't have .txt extensions. Now wondering if that is the root of the problem, 
even though this app has worked in the IDE for 7 years.

Sieg Lindstrom

On Mar 20, 2012, at 1:20 PM, Pete wrote:

 Hi Sieg,
 I don't know of such an article but people on this list can probably help
 if you give use a bit more detail about what the queries are and what error
 messages you are getting.
 
 There shouldn't be any SQL reasons for things not working in a standalone
 if they worked in the IDE so I suspect it's some LC related issue.  The
 favorite candidate for things like this is usually relying on data being
 saved somewhere in the standalone, which can't be done.

___
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: accessing colorized script

2012-03-20 Thread J. Landman Gay

On 3/20/12 3:30 PM, Mark Wieder wrote:

Jacque-

Tuesday, March 20, 2012, 1:20:51 PM, you wrote:


_internal script colorize line 1 to (the number of lines of field 1) of field 1



Ooooh!


You can also use chars instead of lines.



You mean like, line 2 to -1 of ...oh never mind.

--
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: accessing colorized script

2012-03-20 Thread Mark Wieder
Jacque-

Tuesday, March 20, 2012, 1:44:08 PM, you wrote:

 On 3/20/12 3:30 PM, Mark Wieder wrote:
 Jacque-

 Tuesday, March 20, 2012, 1:20:51 PM, you wrote:

 _internal script colorize line 1 to (the number of lines of field 1) of 
 field 1

 Ooooh!

 You can also use chars instead of lines.


 You mean like, line 2 to -1 of ...oh never mind.

Actually, (ignoring the other discussion...) the colorize routine for
some reason won't take -1 as a parameter - you have to be explicit
about it and say (the number of lines of x) instead.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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: accessing colorized script

2012-03-20 Thread Bob Sneidar
That will invert the colors of the previous lines to their polar opposites. But 
only if they have a trailing CR. ;-)

Bob


 You mean like, line 2 to -1 of ...oh never mind.
 
 -- 
 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


___
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: Text formatting for a slider

2012-03-20 Thread stephen barncard
I made an attempt at 'fixing' Smart properties a while back, but found it's
not as simple as it might seem to be. Three objects created for each
property in real time made to scroll together and some other trickery going
on. It's a project I do want to tackle one of these days.

On 19 March 2012 15:34, stephen barncard stephenrevoluti...@barncard.comwrote:

 JIm, I'm a fan of Mr. Rinaldi as well - he supplied the first serial xcmds
 for hypercard back in 89 -
 however I can't get Smartproperties to work these days - have you used it
 lately?

 sqb


 On 19 March 2012 14:57, Jim Hurley jhurley0...@sbcglobal.net wrote:

 Pete,

 Yes, my feeling exactly. It looks like there was a conscious effort to
 omit the foregroundColor  for the slider (and scollbar as well). I was
 worried that it was to be deprecated.

 (I wasn't concerned about ALL the properties being in the Inspector. It
 is odd, however, that there is a place for the foreGroundColor property, an
 icon but no defining text, but no way to access it. I suspect RR got
 distracted while implementing the slider Inspector.)

 You might want to check out Richard's 4wProps (under the
 Development/Plugins menu). Easy access to all the properties.

 Occasionally I have found (legendary) Renaldi's SmartProperties
 invalueable. It allows one to compare side by side the properties to two
 objects. It is valuable in finding out why two, apparently identical,
 controls behave or look different.

 Jim Hurley

  Message: 24
  Date: Mon, 19 Mar 2012 11:42:46 -0700
  From: Pete p...@mollysrevenge.com
  To: How to use LiveCode use-livecode@lists.runrev.com
  Subject: Re: Text formatting for a slider
  Message-ID:
CABx6j9mAJJtKUZneWCna5tP7fWxUMBvH7LqBsvxZgbJ=
 ybd...@mail.gmail.com
  Content-Type: text/plain; charset=ISO-8859-1
 
  Yeah, but that displays all possible properties of any object.  The
  properties property of an object gets you an array of properties for a
  specific object.  Still a long list mind you, and not a complete list
  either according to the dictionary.
 
  I think you're probably right that it would make the inspector windows
 very
  unwieldy to include all properties.  The problem is that by leaving
 some of
  them out, arbitrarily, it gives the impression that they aren't
 available,
  especially to new users.  I remember when I first started using LC and
  wanted to set the behavior of an option menu button - there's no
 inspector
  window behavior field so I just assumed it wasn't possible for some
 reason
  and went down a different, much more complicated path.
 
  Seems like it would have been trivial to include one more option in the
  inspector option menu for All Properties or something similar.  I
 ended
  up writing my own plugin to show all the properties of a selected object
  and allow me to change any of them.
 
  Pete
 
  On Mon, Mar 19, 2012 at 11:09 AM, Richmond richmondmathew...@gmail.com
 wrote:
 
  On 03/19/2012 06:05 PM, Jim Hurley wrote:
 
  I have a slider in which the showValue is set to true.
 
  Unfortunately, the card background is gray and the black slider value
 is
  very difficult to read.
 
  The inspector for the slider does not display an option for the
  foreground color. Why not?
 
  Using 4W Properties (thank you RIchard) the foreground color is
 listed as
  an option (and can be changed there, or from the msg box.)
 
  Why this omission in the Inspector? (LC version 4 AND 5.)
 
 
  Almost all object have a vast number of options that one can fiddle
 around
  with; the Props Inspector only
  displays a subset of them; why? I don't know, but I can hazard a guess:
 
  a Props Inspector that displayed ALL the props of each object might be
 so
  unwieldy as to be virtually unusable.
 
  Just for fun . . .
 
  Set up a new stack with a scrollingListField field called PROPPS
 
  and try this in the MessageBox:
 
  put the propertyNames into fld PROPPS
 
  and blow your mind . . .   :)
 
 
 
  Jim
  __**_
  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://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




 --



 Stephen Barncard
 San Francisco Ca. USA

 more about sqb  http://www.google.com/profiles/sbarncar




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:

RE: answer dlog box changes Mac full screen mode

2012-03-20 Thread tbodine
Thanks. I'll give that a go! Tom

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/answer-dlog-box-changes-Mac-full-screen-mode-tp4490058p4490632.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: Failing to understand the oddities of the

2012-03-20 Thread Mark Wieder
I filed bug 10109 on this. It's open for comments and of course the rev team can
act on it or punt as they see fit. But I think it does need fixing. I can't see
any way now in which the current implementation makes sense, even as an
accidental side-effect. It's rather something to have to be aware of and
studiously avoid when coding. It would be nice to have One Less Pitfall, and I
don't see a downside to fixing it.



___
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


LiveCode 5.5

2012-03-20 Thread TERRY HASS
Hello List,

I read this list almost everyday, but this is only the second time I have 
posted here. I guess I feel like I am still a newbie compared to everybody else.

After reading the LiveCode 5.5 iOS release notes, I think I am missing 
something very basic concerning the recent LiveCode upgrade to 5.5. Unless I 
overlooked it, LiveCode does not support Xcode 4.3.1 (and therefore iOS 5.1). 
Can this be correct?? Do we have to wait for the next upgrade for that 
capability? I know another member put out a terminal based workaround to 
shoehorn the iOS 5.1 simulator into Xcode 4.2.1, could this now be the official 
approach??

Thanks for sharing ANY insight into what RunRev has in mind here concerning 
this subject. I will have a very tough sell ahead of me justifying this fee 
based upgrade without official LiveCode support for the most recent iOS.

Terry
Confused in St. Louis.



___
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: MySQL standalone issues

2012-03-20 Thread Sieg Lindstrom
Pete,

I investigated further. I found something strange. I copied the simple script 
below from lessons.runrev.com and put it in a button on a brand new stack. 
Saved as a standalone and it worked as designed.

Next I copied the button containing the working script to my existing app and 
saved that as a standalone. This time it didn't open the database. Instead it 
returned the answer error Unable to connect to the database. revdberr, invalid 
database type.

What could possibly cause the same button to work in a brand new stack but not 
work in an old one once it's saved as a standalone? Any suggestions for what to 
do short of recreating a stack that has many buttons and fields?

Here is the script in the button in question.

on mouseUp
   -- use a global variable to hold the connection ID so other scripts can use 
it
   global gConnectionID
   
   -- set up the connection parameters - edit these to suit your database
   
   put fake.com into tDatabaseAddress
   put fake_stats into tDatabaseName
   put fake_username into tDatabaseUser
   put fakepassword into tDatabasePassword
   
   -- connect to the database
   put revOpenDatabase(MySQL, tDatabaseAddress, tDatabaseName, tDatabaseUser, 
tDatabasePassword) into tResult
   
   -- check if it worked and display an error message if it didn't
   --  set the connection ID global
   if tResult is a number then
  put tResult into gConnectionID
  answer info Connected to the database.  cr  Connection ID =   
gConnectionID
   else
  put empty into gConnectionID
  answer error Unable to connect to the database:  cr  tResult
   end if
end mouseUp

Thanks,

Sieg Lindstrom

On Mar 20, 2012, at 1:20 PM, Pete wrote:
 
 Hi Sieg,
 I don't know of such an article but people on this list can probably help
 if you give use a bit more detail about what the queries are and what error
 messages you are getting.
 
 There shouldn't be any SQL reasons for things not working in a standalone
 if they worked in the IDE so I suspect it's some LC related issue.  The
 favorite candidate for things like this is usually relying on data being
 saved somewhere in the standalone, which can't be done.
 
 Pete
 
 On Tue, Mar 20, 2012 at 12:00 PM, Sieg Lindstrom
 s...@trackandfieldnews.comwrote:
 
 Can anyone point me to an article or tutorial that walks thru all the
 considerations for making MySQL database functionality work in a standalone?
 
 I have created several apps that query a MySQL database. They work fine in
 the IDE but I have never been able to get them to run as standalones, from
 which they return a variety of error messages depending on the specific
 query involved.
 
 Thanks in advance,
 
 Sieg Lindstrom
 ___
 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: Error Codes

2012-03-20 Thread Mark Wieder
Jacque-

Tuesday, March 20, 2012, 1:40:26 PM, you wrote:

 On 3/20/12 12:37 PM, Ralph DiMola wrote:
 OK, I give up. How do you translate error number into descriptive
 text?

You could just let the engine do the heavy lifting:

put line tErrorNumber of the scriptExecutionErrors

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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


Audio from online server

2012-03-20 Thread Peter Bogdanoff
Hi,

I'm working on a music-related LC project that plays audio that is delivered 
from a server. Works great, especially with fast start checked on .movs.

The project has moved on to the point that we are now in negotiations to 
license music from a major media corporation that will be served to potentially 
many users--desktop and mobile.

They are concerned about the security of their files. We are concerned about 
reliability.

1. Is a media file written temporarily to the hard drive or is it just in 
memory? Can we say that it is secure from copying (assuming we do things 
correctly)? Of course, I'm referring to standard Livecode.

2. Our audio library for the immediate future is fairly small, a couple of gigs 
of files. However, potentially there could be many simultaneous users--let's 
say a couple of thousand or more. We need someone to host the content. They 
want to know how secure their files will be. They mentioned Akamai but said 
that we have a microscopic amount of content for that company. What kind of 
company should we be looking for, and any suggestions? Hopefully, we'll be 
forced to scale up in the future if all goes well (and I can quit my day job).

Peter Bogdanoff
___
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