Re: Problem with setting Password with LC 5.5.3

2012-12-11 Thread Charles Szasz
Jacque,

Thanks for the explanation. I will go ahead and remove the passKey from my 
launcher stack. This should solve the problem as my app stack should be 
password protected from attempts to edit the scripts in it.

Charles Szasz
csz...@mac.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: Algorithm time...

2012-12-11 Thread Dick Kriesel

On Dec 9, 2012, at 4:31 PM, Glen Bojsza wrote:

> That's it!!
> 
> 500,000 points in 419 milliseconds.
> 
> This scales perfectly for what I need.
> 
> thanks Dick.
> 

You're welcome, Glen.  So now I've tried optimizing for speed and legibility.  
Would you check the timing for your data, please, and report again?
Invoke it like this:
digest tLines, tGroupSize, tResult

Any questions?

-- Dick


command digest @pLines, pGroupSize, @rResult
   local tLineNumber, tArray, tMin, tMax
   repeat for each line tLine in pLines
  -- note:  create tArray[  ] = 
  if item 2 of tLine is not among the keys of tArray then
 put item 1 of tLine into tArray[ item 2 of tLine ]
  end if
  add 1 to tLineNumber
  if tLineNumber is pGroupSize then
 put item 1 of the extents of tArray into tMin
 put item 2 of the extents of tArray into tMax
 put tArray[ tMin ] & tab & tMin & cr & tArray[ tMax ] & tab & tMax & 
cr after rResult
 put empty into tArray
 put 0 into tLineNumber
  end if
   end repeat
end digest

___
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: [Endorsement] lcTaskList

2012-12-11 Thread Matthias Rebbe

Hi,

totally agree. I could not have said it any better.


Matthias

--
Matthias Rebbe
matthias (at) rebbe.tk
Tel +49.5741.31
Tel +49.160.5504462
--
"Life is too short for boring code"


Am 11.12.2012 um 23:54 schrieb Chris Sheffield :

> I absolutely agree Paul! I've also been using lcTaskList since the beta 
> versions. It has been an indispensable tool. At $10 USD it's a steal. Grab it 
> at this price while you still can. You won't regret it. Thanks, Bill, for all 
> your hard work on this.
> 
> Chris Sheffield
> 
> 
> --
> Chris Sheffield
> Read Naturally, Inc.
> www.readnaturally.com
> 
> 
> 
> On Dec 11, 2012, at 3:16 PM, Paul Looney  wrote:
> 
>> Fellow LiveCoders,
>> 
>> I've been using Bill Vlahos' lcTaskList since he introduced it.
>> 
>> A few months ago I wrote how much I appreciated it - and that appreciation 
>> has grown with time and use. We are completing a huge, year-long project. In 
>> such big projects there is code that must be fixed now, and code that should 
>> be fixed when time permits. The latter is easy to forget or lose. With the 
>> lcTaskList you can mark the code that needs future attention and come back 
>> to it systematically when there is time. You can also be more certain that 
>> you have, indeed, addressed everything that needs attention in a piece of 
>> code.
>> 
>> The lcTaskList reflects Bill's usual attention to detail and interface. It 
>> is built well beyond its price.
>> 
>> I've met Bill but have no affiliation with him - I just like this product. 
>> If you deal with large pieces of code, in one project or many, I think you 
>> will also find the lcTaskList helpful.
>> 
>> Paul Looney
>> ___
>> 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: Mobile Scroller with Snapping?

2012-12-11 Thread Scott Rossi
OK, I think I figured out the problem.  Apparently
mobileControlGet(theID,"vScroll") sometimes returns a decimal value (i.e.
10.5), but LiveCode doesn't allow setting the vScroll of a field to a
decimal value, so the field wouldn't scroll.  Rounding
mobileControlGet(theID,"vScroll") appears to have solved the problem.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 12/11/12 12:27 PM, "Scott Rossi"  wrote:

>Has anybody been able to set up a mobile scroller with scrolling that
>"snaps" to a predefined distance?
>
>I have a set of icons in a vertical scroller which I want to snap to a
>multiple of the icon height once the scroller completely decelerates/stops
>dragging.  Using 5.5.1, the routine I built works fine in the iOS
>simulator
>but intermittently fails on an iPhone 4 in that the snap doesn't always
>occur.  The code is apparently executing correctly, both scrollerEndDrag
>and
>scrollerEndDecelerate messages are being received, but again apparently
>intermittently.
>
>I'm trying to submit this week so am under  the gun time-wise.  Thanks for
>any suggestions.
>
>Best Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, UX Design
>
>
>___
>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: [Endorsement] lcTaskList

2012-12-11 Thread Chris Sheffield
I absolutely agree Paul! I've also been using lcTaskList since the beta 
versions. It has been an indispensable tool. At $10 USD it's a steal. Grab it 
at this price while you still can. You won't regret it. Thanks, Bill, for all 
your hard work on this.

Chris Sheffield


--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com



On Dec 11, 2012, at 3:16 PM, Paul Looney  wrote:

> Fellow LiveCoders,
> 
> I've been using Bill Vlahos' lcTaskList since he introduced it.
> 
> A few months ago I wrote how much I appreciated it - and that appreciation 
> has grown with time and use. We are completing a huge, year-long project. In 
> such big projects there is code that must be fixed now, and code that should 
> be fixed when time permits. The latter is easy to forget or lose. With the 
> lcTaskList you can mark the code that needs future attention and come back to 
> it systematically when there is time. You can also be more certain that you 
> have, indeed, addressed everything that needs attention in a piece of code.
> 
> The lcTaskList reflects Bill's usual attention to detail and interface. It is 
> built well beyond its price.
> 
> I've met Bill but have no affiliation with him - I just like this product. If 
> you deal with large pieces of code, in one project or many, I think you will 
> also find the lcTaskList helpful.
> 
> Paul Looney
> ___
> 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


[Endorsement] lcTaskList

2012-12-11 Thread Paul Looney
Fellow LiveCoders,

I've been using Bill Vlahos' lcTaskList since he introduced it.

A few months ago I wrote how much I appreciated it - and that appreciation has 
grown with time and use. We are completing a huge, year-long project. In such 
big projects there is code that must be fixed now, and code that should be 
fixed when time permits. The latter is easy to forget or lose. With the 
lcTaskList you can mark the code that needs future attention and come back to 
it systematically when there is time. You can also be more certain that you 
have, indeed, addressed everything that needs attention in a piece of code.

The lcTaskList reflects Bill's usual attention to detail and interface. It is 
built well beyond its price.

I've met Bill but have no affiliation with him - I just like this product. If 
you deal with large pieces of code, in one project or many, I think you will 
also find the lcTaskList helpful.

Paul Looney
___
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: App & desktop combo project

2012-12-11 Thread Colin Holgate
I don't think the letting them use the file on iOS if they paid for it on 
desktop will work out, unless you put in a feature into the desktop one that 
gives a link to the iOS app, maybe using custom URLs?

As for the normal in-app purchasing system, you don't need to keep track of 
things. When the user does a reinstall of the app (as opposed to an update), 
you can give them an option to restore old purchases. You then ask the app 
store if that person has paid for that item, and if they have, it's downloaded 
again.
___
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


App & desktop combo project

2012-12-11 Thread Peter Bogdanoff
Hi,

I'm planning a program that is a desktop application and also an iOS app.

The program is a series of audio-only classical music lectures.

The desktop version is a one-time $50 purchase of all the lectures. The app 
version is a free version containing 1 lecture with possible in-app purchases 
of additional single lectures or, all of the other lectures (for a discount).

I've not yet done any iOS development or dealt with app store mechanisms and 
have some questions.

1. So when someone does an in-app purchase, I would keep track of what the user 
has purchased as a saved bit of data, then unlock the purchased lectures. Is 
this the recommended method? If someone reloads the program onto their device 
after getting a new phone or deleting the app, they would have to depend on 
their backup. If they don't have a backup, then what?

Or I suppose, that I could save that data on my remote server...

2. If someone purchases the desktop version, I would like to give them the iOS 
app free. Can this be done? Does the App store accept coupons or such? I'm 
assuming that I don't get any personal information from Apple about who buys my 
apps, so I can't even give someone store credit if they purchase both versions.

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


Mobile Scroller with Snapping?

2012-12-11 Thread Scott Rossi
Has anybody been able to set up a mobile scroller with scrolling that
"snaps" to a predefined distance?

I have a set of icons in a vertical scroller which I want to snap to a
multiple of the icon height once the scroller completely decelerates/stops
dragging.  Using 5.5.1, the routine I built works fine in the iOS simulator
but intermittently fails on an iPhone 4 in that the snap doesn't always
occur.  The code is apparently executing correctly, both scrollerEndDrag and
scrollerEndDecelerate messages are being received, but again apparently
intermittently.

I'm trying to submit this week so am under  the gun time-wise.  Thanks for
any suggestions.

Best Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


___
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: pFirstLineContainsHeaders is being ignored in DataGrid

2012-12-11 Thread Roger Eller
I think am now on the right track.  Thanks for being tolerant of my
DataGrid [noob] status.

~Roger


On Tue, Dec 11, 2012 at 2:23 PM, Peter Haworth  wrote:

> Hi Roger,
> You can set the column names using another property, the dgProps["columns"]
> of .  That property is a list of column names, one per
> line so you would set that property to the first line of your file with the
> column separator (comma, tab, etc) replaced with return.
>
> lcSQL Software 
>
>
>
> On Tue, Dec 11, 2012 at 10:51 AM, Roger Eller
> wrote:
>
> > Hi Pete,
> >
> > Back to what I was trying to do... If I need the first line of the
> imported
> > text file to define the header names of each column, I will need to
> script
> > that manually for each column, right?
> >
> > ~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: pFirstLineContainsHeaders is being ignored in DataGrid

2012-12-11 Thread Peter Haworth
Hi Roger,
You can set the column names using another property, the dgProps["columns"]
of .  That property is a list of column names, one per
line so you would set that property to the first lien of your file with the
column separator (comma, tab, etc) replaced with return.  After that, you
can either still set the firstlinecontainscolumns to true and present the
whole file as the dgText, or set it to false and just present lines 2 to -1
of your file as the dgtext.

If you need to somehow set the column labels to something different than
the column names, you can use the dgProps["column labels"], once again, one
column label per line.  Don't need to do that if the column labels you want
are the same as the column names.

lcSQL Software 



On Tue, Dec 11, 2012 at 10:51 AM, Roger Eller
wrote:

> Hi Pete,
>
> Well this changes everything!  Literally!  So, if I wish to re-order the
> columns, this will fit the bill quite nicely.  Thank you for clarifying
> what this param actually does, Pete.
>
> Back to what I was trying to do... If I need the first line of the imported
> text file to define the header names of each column, I will need to script
> that manually for each column, right?
>
> I don't see any references to data grid properties like dgText in the LC
> dictionary.  There are a few lessons on the RunRev site, but I don't see an
> example of how to do this with a built-in function.  It's roll your own
> time, I guess.
>
> ~Roger
>
>
> On Tue, Dec 11, 2012 at 1:09 PM, Peter Haworth  wrote:
>
> > Hi Roger,
> > That parameter doesn't change the column names, it just defines the order
> > of the column data within each line of dgText.  If it's false, then the
> > dgText is expected to contain the column data in the order the columns
> are
> > defined to the datagrid.  When true, then the first line of dgText
> defines
> > the order of the column data by specifying the column names, for example
> > Col2,col1,Col3.
> >
> >
> > Pete
> > lcSQL Software 
> >
> >
> >
> > On Tue, Dec 11, 2012 at 9:50 AM, Roger Eller <
> roger.e.el...@sealedair.com
> > >wrote:
> >
> > > Hi Klaus,
> > >
> > > Thanks for the quick reply, but I still can not get it to work as you
> > > describe.  I have tried in Revolution 4.0.0, LiveCode 5.5.1, and
> LiveCode
> > > 5.5.2.  Without any parameter, the grid is populated without the
> headers
> > > changing.  With the parameter [TRUE], the grid is not populated at all.
> > >
> > > ~Roger
> > >
> > >
> > >
> > > On Tue, Dec 11, 2012 at 11:27 AM, Klaus on-rev  > > >wrote:
> > >
> > > > Hi Roger,
> > > >
> > > > Am 11.12.2012 um 17:23 schrieb Roger Eller <
> > roger.e.el...@sealedair.com
> > > >:
> > > >
> > > > > According to this datagrid lesson, this should work but it does
> not.
> > > >  Could
> > > > > someone please confirm?
> > > > >
> > > > >
> > > >
> > >
> >
> http://lessons.runrev.com/s/lessons/m/datagrid/l/7309-how-do-i-populate-a-data-grid-with-data
> > > > >
> > > > > on mouseUp
> > > > >   answer file "Select a Tab Delimited text file:"
> > > > >   set the pFirstLineContainsHeaders of grp "DataGrid" to true
> > > > >   set the dgText [ pFirstLineContainsHeaders ] of grp "DataGrid" to
> > URL
> > > > > ("file:" & it)
> > > > > end mouseUp
> > > > >
> > > > > The headers remain as "Col 1"  "Col 2",  etc.
> > > >
> > > > "pFirstLineContainsHeaders" is not a property of the datagrid, but a
> > > > parameter for dgtext!
> > > >
> > > > So this will work:
> > > > ...
> > > >   set the dgText [TRUE] of grp "DataGrid" to URL ("file:" & it)
> > > > ...
> > > >
> > > > > ~Roger
> > > >
> > > > 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
>
___
use-livecode mailing list
use-livecode@lists.runr

Re: pFirstLineContainsHeaders is being ignored in DataGrid

2012-12-11 Thread Robert Sneidar
Make sure the first line of column headers are the *actual* names of the 
columns in the datagrid. Otherwise you will get nothing in the datagrid, 
because no columns matched what was in your headers. Note that initially some 
are confused, thinking the column LABEL is the column NAME. Not true. Verify 
the column headers are identical to the actual datagrid column names. 

Bob


On Dec 11, 2012, at 10:51 AM, Roger Eller wrote:

> Hi Pete,
> 
> Well this changes everything!  Literally!  So, if I wish to re-order the
> columns, this will fit the bill quite nicely.  Thank you for clarifying
> what this param actually does, Pete.
> 
> Back to what I was trying to do... If I need the first line of the imported
> text file to define the header names of each column, I will need to script
> that manually for each column, right?
> 
> I don't see any references to data grid properties like dgText in the LC
> dictionary.  There are a few lessons on the RunRev site, but I don't see an
> example of how to do this with a built-in function.  It's roll your own
> time, I guess.
> 
> ~Roger
> 
> 
> On Tue, Dec 11, 2012 at 1:09 PM, Peter Haworth  wrote:
> 
>> Hi Roger,
>> That parameter doesn't change the column names, it just defines the order
>> of the column data within each line of dgText.  If it's false, then the
>> dgText is expected to contain the column data in the order the columns are
>> defined to the datagrid.  When true, then the first line of dgText defines
>> the order of the column data by specifying the column names, for example
>> Col2,col1,Col3.
>> 
>> 
>> Pete
>> lcSQL Software 
>> 
>> 
>> 
>> On Tue, Dec 11, 2012 at 9:50 AM, Roger Eller >> wrote:
>> 
>>> Hi Klaus,
>>> 
>>> Thanks for the quick reply, but I still can not get it to work as you
>>> describe.  I have tried in Revolution 4.0.0, LiveCode 5.5.1, and LiveCode
>>> 5.5.2.  Without any parameter, the grid is populated without the headers
>>> changing.  With the parameter [TRUE], the grid is not populated at all.
>>> 
>>> ~Roger
>>> 
>>> 
>>> 
>>> On Tue, Dec 11, 2012 at 11:27 AM, Klaus on-rev >>> wrote:
>>> 
 Hi Roger,
 
 Am 11.12.2012 um 17:23 schrieb Roger Eller <
>> roger.e.el...@sealedair.com
 :
 
> According to this datagrid lesson, this should work but it does not.
 Could
> someone please confirm?
> 
> 
 
>>> 
>> http://lessons.runrev.com/s/lessons/m/datagrid/l/7309-how-do-i-populate-a-data-grid-with-data
> 
> on mouseUp
>  answer file "Select a Tab Delimited text file:"
>  set the pFirstLineContainsHeaders of grp "DataGrid" to true
>  set the dgText [ pFirstLineContainsHeaders ] of grp "DataGrid" to
>> URL
> ("file:" & it)
> end mouseUp
> 
> The headers remain as "Col 1"  "Col 2",  etc.
 
 "pFirstLineContainsHeaders" is not a property of the datagrid, but a
 parameter for dgtext!
 
 So this will work:
 ...
  set the dgText [TRUE] of grp "DataGrid" to URL ("file:" & it)
 ...
 
> ~Roger
 
 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


___
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: All DataGrid's updates the hilited index together

2012-12-11 Thread Robert Sneidar
Without perusing your code and the card you are working with, there is no way 
to tell. Only thing I can suggest is, if it is your code that is doing this, 
put breakpoints in your code and step through to see where the effect is taking 
place. 

Bob


On Dec 11, 2012, at 5:30 AM, Ueliweb wrote:

> Hei
> 
> I have 3 DataGrid on one card (all with another name).
> If I click/ double-click to one DG (doesen't matter witch one) to a Row ->
> the other both DG's update the hilited the Row with the same index too.
> 
> I put away all "me" in all scripts of this card and the stack and replaced
> them with the real name like:
>... of group "dataGrid name" of this card of this stack
> But the behavior is still the same.
> 
> Functionally there looks to be everything OK just this wrong changes of the
> hilited Row of the other 2 DG's
> 
> 
> some Idea?
> 
> ueliweb
> ___
> 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: pFirstLineContainsHeaders is being ignored in DataGrid

2012-12-11 Thread Roger Eller
Hi Pete,

Well this changes everything!  Literally!  So, if I wish to re-order the
columns, this will fit the bill quite nicely.  Thank you for clarifying
what this param actually does, Pete.

Back to what I was trying to do... If I need the first line of the imported
text file to define the header names of each column, I will need to script
that manually for each column, right?

I don't see any references to data grid properties like dgText in the LC
dictionary.  There are a few lessons on the RunRev site, but I don't see an
example of how to do this with a built-in function.  It's roll your own
time, I guess.

~Roger


On Tue, Dec 11, 2012 at 1:09 PM, Peter Haworth  wrote:

> Hi Roger,
> That parameter doesn't change the column names, it just defines the order
> of the column data within each line of dgText.  If it's false, then the
> dgText is expected to contain the column data in the order the columns are
> defined to the datagrid.  When true, then the first line of dgText defines
> the order of the column data by specifying the column names, for example
> Col2,col1,Col3.
>
>
> Pete
> lcSQL Software 
>
>
>
> On Tue, Dec 11, 2012 at 9:50 AM, Roger Eller  >wrote:
>
> > Hi Klaus,
> >
> > Thanks for the quick reply, but I still can not get it to work as you
> > describe.  I have tried in Revolution 4.0.0, LiveCode 5.5.1, and LiveCode
> > 5.5.2.  Without any parameter, the grid is populated without the headers
> > changing.  With the parameter [TRUE], the grid is not populated at all.
> >
> > ~Roger
> >
> >
> >
> > On Tue, Dec 11, 2012 at 11:27 AM, Klaus on-rev  > >wrote:
> >
> > > Hi Roger,
> > >
> > > Am 11.12.2012 um 17:23 schrieb Roger Eller <
> roger.e.el...@sealedair.com
> > >:
> > >
> > > > According to this datagrid lesson, this should work but it does not.
> > >  Could
> > > > someone please confirm?
> > > >
> > > >
> > >
> >
> http://lessons.runrev.com/s/lessons/m/datagrid/l/7309-how-do-i-populate-a-data-grid-with-data
> > > >
> > > > on mouseUp
> > > >   answer file "Select a Tab Delimited text file:"
> > > >   set the pFirstLineContainsHeaders of grp "DataGrid" to true
> > > >   set the dgText [ pFirstLineContainsHeaders ] of grp "DataGrid" to
> URL
> > > > ("file:" & it)
> > > > end mouseUp
> > > >
> > > > The headers remain as "Col 1"  "Col 2",  etc.
> > >
> > > "pFirstLineContainsHeaders" is not a property of the datagrid, but a
> > > parameter for dgtext!
> > >
> > > So this will work:
> > > ...
> > >   set the dgText [TRUE] of grp "DataGrid" to URL ("file:" & it)
> > > ...
> > >
> > > > ~Roger
> > >
> > > 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: Opening a stack crashes RevMedia, and message box won't work

2012-12-11 Thread J. Landman Gay

On 12/11/12 11:15 AM, dfepst...@comcast.net wrote:



I have encountered two strange new symptoms using RevMedia 2.9 on a
Windows 7 machine.  I do not know if they are related.


It's likely. Rev 2.9 was released almost 5 years ago and a lot has 
changed since then, especially since it didn't expect a 64-bit Windows 
OS. I think you'd be doing yourself a favor by updating.


--
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: pFirstLineContainsHeaders is being ignored in DataGrid

2012-12-11 Thread Peter Haworth
Hi Roger,
That parameter doesn't change the column names, it just defines the order
of the column data within each line of dgText.  If it's false, then the
dgText is expected to contain the column data in the order the columns are
defined to the datagrid.  When true, then the first line of dgText defines
the order of the column data by specifying the column names, for example
Col2,col1,Col3.


Pete
lcSQL Software 



On Tue, Dec 11, 2012 at 9:50 AM, Roger Eller wrote:

> Hi Klaus,
>
> Thanks for the quick reply, but I still can not get it to work as you
> describe.  I have tried in Revolution 4.0.0, LiveCode 5.5.1, and LiveCode
> 5.5.2.  Without any parameter, the grid is populated without the headers
> changing.  With the parameter [TRUE], the grid is not populated at all.
>
> ~Roger
>
>
>
> On Tue, Dec 11, 2012 at 11:27 AM, Klaus on-rev  >wrote:
>
> > Hi Roger,
> >
> > Am 11.12.2012 um 17:23 schrieb Roger Eller  >:
> >
> > > According to this datagrid lesson, this should work but it does not.
> >  Could
> > > someone please confirm?
> > >
> > >
> >
> http://lessons.runrev.com/s/lessons/m/datagrid/l/7309-how-do-i-populate-a-data-grid-with-data
> > >
> > > on mouseUp
> > >   answer file "Select a Tab Delimited text file:"
> > >   set the pFirstLineContainsHeaders of grp "DataGrid" to true
> > >   set the dgText [ pFirstLineContainsHeaders ] of grp "DataGrid" to URL
> > > ("file:" & it)
> > > end mouseUp
> > >
> > > The headers remain as "Col 1"  "Col 2",  etc.
> >
> > "pFirstLineContainsHeaders" is not a property of the datagrid, but a
> > parameter for dgtext!
> >
> > So this will work:
> > ...
> >   set the dgText [TRUE] of grp "DataGrid" to URL ("file:" & it)
> > ...
> >
> > > ~Roger
> >
> > 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


Re: pFirstLineContainsHeaders is being ignored in DataGrid

2012-12-11 Thread Roger Eller
Hi Klaus,

Thanks for the quick reply, but I still can not get it to work as you
describe.  I have tried in Revolution 4.0.0, LiveCode 5.5.1, and LiveCode
5.5.2.  Without any parameter, the grid is populated without the headers
changing.  With the parameter [TRUE], the grid is not populated at all.

~Roger



On Tue, Dec 11, 2012 at 11:27 AM, Klaus on-rev wrote:

> Hi Roger,
>
> Am 11.12.2012 um 17:23 schrieb Roger Eller :
>
> > According to this datagrid lesson, this should work but it does not.
>  Could
> > someone please confirm?
> >
> >
> http://lessons.runrev.com/s/lessons/m/datagrid/l/7309-how-do-i-populate-a-data-grid-with-data
> >
> > on mouseUp
> >   answer file "Select a Tab Delimited text file:"
> >   set the pFirstLineContainsHeaders of grp "DataGrid" to true
> >   set the dgText [ pFirstLineContainsHeaders ] of grp "DataGrid" to URL
> > ("file:" & it)
> > end mouseUp
> >
> > The headers remain as "Col 1"  "Col 2",  etc.
>
> "pFirstLineContainsHeaders" is not a property of the datagrid, but a
> parameter for dgtext!
>
> So this will work:
> ...
>   set the dgText [TRUE] of grp "DataGrid" to URL ("file:" & it)
> ...
>
> > ~Roger
>
> 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


Opening a stack crashes RevMedia, and message box won't work

2012-12-11 Thread dfepstein


I have encountered two strange new symptoms using RevMedia 2.9 on a Windows 7 
machine.  I do not know if they are related. 



1.  I often write stacks on my Macintosh with Metacard 2.0, then run them 
successfully in Windows with RevMedia 2.9.  But for a new stack that works fine 
on my Mac, opening it in RevMedia causes Rev to quit, with no warning or 
advice.  I tried opening the same stack with a script "lock messages; go card 1 
of stack x", but the result was the same.  

To try to troubleshoot, in a separate stack, I put the script of stack x into a 
field; edited the script to comment out the "openStack" and "resumeStack" 
handlers (the only ones that I see that would execute when the stack is 
opened); set the script of stack x to the revised version; and saved stack x.  
(Somewhat to my surprise, this all seemed to work, since I thought that such 
commands mean that Rev loads the stack into memory; so why no crash in this 
case?).  (Card 1 of stack x has no script). 
How can I diagnose the problem? 



2.  When I try to execute any command in the Message box, I get an error 
message, indicating that Rev has been tripped up on this line: 

  do "global" && the globalNames 

of the "revExecuteMessage" handler in the script of field "Message Field" of 
stack "Message Box." 



Any suggestions? 



Many thanks. 



David Epstein 
___
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: Why Does "remove" Actually "delete"?

2012-12-11 Thread J. Landman Gay

On 12/11/12 2:19 AM, Scott Rossi wrote:

Thanks for the responses on this.  Apparently when using the term "group",
the source card of the group is required (placing fails if you don't
reference the source card).  If you use the term "background" you
(apparently) don't need to specify the source card.

And removing works fine in a simple test stack, so I'm at loss why the
group is being deleted in my production stack.  But I used a workaround of
copying a group from one card to another so things are OK.


I'm sure you've checked, but is the "removed" group also missing from 
the backgroundnames?


--
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: pFirstLineContainsHeaders is being ignored in DataGrid

2012-12-11 Thread Klaus on-rev
Addition;

Am 11.12.2012 um 17:27 schrieb Klaus on-rev :

> Hi Roger,
> 
> Am 11.12.2012 um 17:23 schrieb Roger Eller :
>> ...
>> on mouseUp
>>  answer file "Select a Tab Delimited text file:"
>>  set the pFirstLineContainsHeaders of grp "DataGrid" to true
>>  set the dgText [ pFirstLineContainsHeaders ] of grp "DataGrid" to URL
>> ("file:" & it)
>> end mouseUp
>> The headers remain as "Col 1"  "Col 2",  etc.
> "pFirstLineContainsHeaders" is not a property of the datagrid, but a 
> parameter for dgtext!

this parameter can be TRUE or FALSE or just empty (= false)

> So this will work:
> ...
>  set the dgText [TRUE] of grp "DataGrid" to URL ("file:" & it)
> ...

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: [ANN] lcSTackBrowser V 1.2.0 Released

2012-12-11 Thread Ralph DiMola
Peter,

Nice!! A must have of any LC developer.

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


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Peter Haworth
Sent: Monday, December 10, 2012 1:45 PM
To: How to use LiveCode
Subject: [ANN] lcSTackBrowser V 1.2.0 Released

Version 1.1.3 of lcStackBrowser, a plugin replacement for the Livecode IDE
Application Browser is now available
here
.

This version includes several significant enhancements.

*Live Find*

A new "Live Find" field at the top of the lcStackBrowser stack window can be
used to quickly locate an object by name.

As you type into the field, the first object whose name matches the typed
characters will be highlighted in the display.  The search starts from the
current highlighted line and collapsed objects will be expanded if
necessary. After a line is highlighted, you can keep typing more characters
or click the up and down arrows to the right of the Live Find field to go to
the previous/next qualifying object.

Using the dropdown menu to the left of the Live Find field, you can save
your search strings, execute saved searches, and remove saved searches from
the list

*Integration with explicitProperties plugin*
*
*
Alex Tweedly's explicitProperties is a great way to protect yourself from
typos in custom property names which can cause difficult-to-debug problems.
 It finds custom property references in a stack and gives you the option of
adding each one to a list of valid custom property names.
 explicitProperties is free and you can download a copy
here.
 Note: You must have explicitProperties V1.1.1 for the integration to work.

The explicitProperties valid custom property names will be displayed in the
lcStackBrowser Script Assist palette.  Double clicking on one will insert it
into the current position in your script editor window in the form "the
 of ".

*Auto commenting of end if, end repeat, and end switch statements*
*
*
A new "Auto Comment" button is available on the Script Assist palette.

Place the cursor anywhere in an end if, end repeat, or end switch statement,
click the Auto Comment button and a comment will be appended to the end
statement consisting of the contents of its corresponding if/repeat/switch
statement.

Pete
lcSQL Software 
___
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: pFirstLineContainsHeaders is being ignored in DataGrid

2012-12-11 Thread Klaus on-rev
Hi Roger,

Am 11.12.2012 um 17:23 schrieb Roger Eller :

> According to this datagrid lesson, this should work but it does not.  Could
> someone please confirm?
> 
> http://lessons.runrev.com/s/lessons/m/datagrid/l/7309-how-do-i-populate-a-data-grid-with-data
> 
> on mouseUp
>   answer file "Select a Tab Delimited text file:"
>   set the pFirstLineContainsHeaders of grp "DataGrid" to true
>   set the dgText [ pFirstLineContainsHeaders ] of grp "DataGrid" to URL
> ("file:" & it)
> end mouseUp
> 
> The headers remain as "Col 1"  "Col 2",  etc.

"pFirstLineContainsHeaders" is not a property of the datagrid, but a parameter 
for dgtext!

So this will work:
...
  set the dgText [TRUE] of grp "DataGrid" to URL ("file:" & it)
...

> ~Roger

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


pFirstLineContainsHeaders is being ignored in DataGrid

2012-12-11 Thread Roger Eller
According to this datagrid lesson, this should work but it does not.  Could
someone please confirm?

http://lessons.runrev.com/s/lessons/m/datagrid/l/7309-how-do-i-populate-a-data-grid-with-data

on mouseUp
   answer file "Select a Tab Delimited text file:"
   set the pFirstLineContainsHeaders of grp "DataGrid" to true
   set the dgText [ pFirstLineContainsHeaders ] of grp "DataGrid" to URL
("file:" & it)
end mouseUp

The headers remain as "Col 1"  "Col 2",  etc.

~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: Why Does "remove" Actually "delete"?

2012-12-11 Thread Klaus on-rev
Hi Scott,

Am 11.12.2012 um 09:19 schrieb Scott Rossi :

> Thanks for the responses on this.  Apparently when using the term "group",
> the source card of the group is required (placing fails if you don't
> reference the source card).  If you use the term "background" you
> (apparently) don't need to specify the source card.

the difference between "goup" and "background" is the way Livecode sees them!
Groups are counted relative to the current card, backgrounds to the stack!

...
put the num of groups
## will give the number of groups of the current card!
...
put the num of backgrounds
## will give the num of ALL groups in the current stack!
...

That's why you need to add the card descriptor when using "place GROUP xyz..."

> And removing works fine in a simple test stack, so I'm at loss why the
> group is being deleted in my production stack.  

This is very strange and should not happen, keep an eye on it :-)

> But I used a workaround of
> copying a group from one card to another so things are OK.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design

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


All DataGrid's updates the hilited index together

2012-12-11 Thread Ueliweb
Hei

I have 3 DataGrid on one card (all with another name).
If I click/ double-click to one DG (doesen't matter witch one) to a Row ->
the other both DG's update the hilited the Row with the same index too.

I put away all "me" in all scripts of this card and the stack and replaced
them with the real name like:
... of group "dataGrid name" of this card of this stack
But the behavior is still the same.

Functionally there looks to be everything OK just this wrong changes of the
hilited Row of the other 2 DG's


some Idea?

ueliweb
___
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: Why Does "remove" Actually "delete"?

2012-12-11 Thread Scott Rossi
Thanks for the responses on this.  Apparently when using the term "group",
the source card of the group is required (placing fails if you don't
reference the source card).  If you use the term "background" you
(apparently) don't need to specify the source card.

And removing works fine in a simple test stack, so I'm at loss why the
group is being deleted in my production stack.  But I used a workaround of
copying a group from one card to another so things are OK.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 12/10/12 4:38 PM, "Paul Hibbert"  wrote:

>
>On 2012-12-10, at 12:46 PM, Scott Rossi wrote:
>
>> I've been trying to figure out how to "place" a group by script.  It
>>took me
>> a while to figure out that "place groupŠ" doesn't work, but instead
>>"place
>> backgroundŠ".
>> 
>> Now when I execute "remove bkgnd xyz from this cd" the group ends up
>>getting
>> deleted from the stack, even though the group resides on a completely
>> different card.
>> 
>> What am I missing here?  Thanks for any clarification.
>> 
>> Regards,
>> 
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX Design
>> 
>> 
>> ___
>> 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
>
>Scott,
>
>Just tried this with 1 stack...
>
>on Card 1
>group id 1009 (Group name = GrpTest2 ) <= 2 fields
>
>on Card 2
>place button
>on mouseUp
>   place group id 1009 of cd 1 onto this card
>   -- place group "GrpTest2" of cd 1 onto this card ## Also woks OK
>   -- place background "GrpTest2" onto this card ## Also woks OK
>end mouseUp
>
>remove button
>on mouseUp
>   remove group id 1009 from this card ## Works OK - removes from the
>card, doesn't delete from stack
>   -- remove group "GrpTest2" from this card ## Also works OK
>   -- remove background "GrpTest2" from this card ## Also works OK
>end mouseUp
>
>I can place and remove the group with no problem, tried with the
>backgroundBehavior property set to true and false with no difference.
>
>This all fails if the target group is nested within another group.
>
>LiveCode 5.5.3 Mac OS X 10.7.5
>
>Paul
>___
>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