corrupted stack message

2014-11-03 Thread larry
I keep getting this message:

There was a problem opening that stack;
stack is corrupted, check for ~ backup file


Luckily I did have the stack backed up.  I copied my backup to the folder 
(6.1.1  on Windows XP) and made a few changes. Then I saved the stack.
When I went to reopen my new stack I got the same message.

Any advice?

TIA
Larry
___
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: Valentina db

2014-10-31 Thread larry

Hi Bob,
Thanks for the detailed info.
I'll look into that.
Larry

- Original Message - 
From: Bob Sneidar bobsnei...@iotecdigital.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, October 31, 2014 9:06 AM
Subject: Re: Valentina db



Hi Larry.

The simplest SQL database to my mind is sqLite. You can create a database 
by simply providing a path name and opening it using the LC built in 
database functions. Once the file is created, you can download the Firefox 
SQLite Manager plugin, open the database and begin to add tables and 
columns.


There are tons of easy to read tutorials on the inter web on how to do 
select, insert and updates. The best source I think is sqlite.org itself 
at https://www.sqlite.org/lang.html.


sqLite is very forgiving when it comes to type constraints. This is 
because the data is literally stored as text no matter what type the 
column is. Where mySQL might throw an error for storing the wrong type of 
data, sqLite will store whatever you tell it to.


This is somewhat of a blessing, but also a curse. You really do want to 
know if your data is outside the parameters you’ve set. However, for those 
just starting out, it’s nice to not have to deal with SQL errors so much.


Bob S



On Oct 30, 2014, at 24:42 , la...@significantplanet.org wrote:

Hello,

Has anyone used Valentina database with LC?

If so, what is your experience with it?

Is it a product that a newbie (me) could reasonably learn how to use with 
LC?


Thanks for any info,
Larry

P.S. If you have a recommendation for a database that is REALLY easy to 
use with LC, please let me know.

___
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

Valentina db

2014-10-30 Thread larry
Hello,

Has anyone used Valentina database with LC?

If so, what is your experience with it?

Is it a product that a newbie (me) could reasonably learn how to use with LC?

Thanks for any info,
Larry

P.S. If you have a recommendation for a database that is REALLY easy to use 
with LC, please let me know.
___
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: Valentina db

2014-10-30 Thread larry

Thanks very much Kay and Tiemo!

- Original Message - 
From: Kay C Lan lan.kc.macm...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Thursday, October 30, 2014 2:33 AM
Subject: Re: Valentina db



On Thu, Oct 30, 2014 at 3:42 PM, la...@significantplanet.org wrote:


Hello,

Has anyone used Valentina database with LC?

Yes, for many years now.




If so, what is your experience with it?

Love it. Especially if you need speed and simplified table 
relationships -

Binary Links are great.



Is it a product that a newbie (me) could reasonably learn how to use with
LC?

Probably not at your stage.


I am a hobbyist. I was moderately competent with HC when I moved to
Revolution which is now LC. Because of LC db capabilities I then played
with MySQL and SQLite with some success, but again I was fluent with LC at
the time. In the search for more speed I went to Valentina. Having some
knowledge of SQL and pretty fluent with LC made the move to Valentina less
bumpy.

Noting your many bumps along the path of LC enlightenment I'm not sure
getting tangled with Valentina right now would be painless. I note 
frequent

posts on the Valentina Users List about people who get stuck installing
Valentina for LC. It's a simple 2 step process, but as most people's
experience with installers is that it does absolutely everything for them,
they regular seem to miss the need for the 2nd step.

I do recommend you download Valentina Studio, it's free - I'll explain
later.

http://www.valentina-db.com/en/all-downloads



P.S. If you have a recommendation for a database that is REALLY easy to
use with LC, please let me know.

Whether you are just interested in trying out LC's database capabilities,

or have a real need to do something with a database, unless you definitely
need something fed from a web server you can't go wrong with SQLite. It's
already installed on your computer (it is for OS X and I'm pretty sure it
is the same for Win and Linux) so there is ZERO installation process to go
through. It's free and will always be free - unlike MySQL which has a
pretty convoluted licensing structure which most people can't understand
and so you'll often see a suggestion to 'contact MySQL, give them your 
case

and see what they say'.

You can download the free Valentina Studio which allows you to build, view
and test SQLite dbs. Makes it really easy with LC (or any other 
programming
environment) to test SQL statements outside of LC to determine is it the 
LC

code that is wrong or the SQL statement. There are also plenty of online
tutorials for SQLite so you can play with Valentina Studio + SQLite first,
make sure you've got the basics of dbs organised and working before taking
the next step and seeing if you can get LC to talk to the db you've 
created.


Unless you have very large data sets it is unlikely that you'll notice any
real speed difference. Yes, you might be able to prove that Valentina is a
couple of ms faster, but to the user it all happens within the blink of an
eye. Even then, if you do have huge data sets, you can do all your 
learning
and testing with SQLite, once you feel you know what you are doing, you 
can

download a trial version of Valentina, export all the data out of SQLite
and import it into a Valentina db, create your own 'realistic' benchmark
test and see the difference for yourself. You'll then know exactly what 
you

are getting for your money.

There are many LC + SQLite users on this List, and a couple of gurus, so 
if

you run into trouble help is not far away.

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



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


Re: how to disturb newbies

2014-10-28 Thread larry

Hi Peter,
Just about the sanest thing I've read on here.
I hope it happens.
Larry

One possible solution would be to build into the the native LC dictionary a 
userNotes feature, allowing the user to add comments or examples saved 
locally for her/his own reference, and within that feature allowing 
submission of a particular note to the community documentation team for 
curating for inclusion as a shared note for all users. Best of both worlds, 
AFAICS.


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



___
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: Autosave ???

2014-10-28 Thread larry

Amen, Richmond!!

- Original Message - 
From: Richmond richmondmathew...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tuesday, October 28, 2014 12:08 PM
Subject: Re: Autosave ???



On 28/10/14 16:53, Richard Gaskin wrote:

Mike Kerner wrote:
 I would like some sort of versioning, similar to what we had with
 that alternate script editor - so it would be the main project,
 and a version get updated.

MaxV posted a nice script for that in the forums recently:
http://forums.livecode.com/viewtopic.php?f=9t=21913



I am anti plug-ins and scripts for a very simple reason:

I mainly deal with LiveCode learners, and as such it would be nice if such 
things as AutoSave

worked straight out of the box without having to add things on.

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


maximum lines?

2014-10-27 Thread larry
Hello,
Can anyone please tell me the maximum number of lines for:

a variable in LC

a field in LC

also I'd like to know how to find that info!
 
Thanks, Larry
___
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


deleting lines in a field

2014-10-26 Thread larry
I have a field that allows non-contiguous selection of lines

What is the easiest way to delete the selected lines?

I've tried a bunch of things and I end up doing this big convoluted script to 
do it.  It seems like it should be simple?

Thanks, Larry
___
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


hilitedline

2014-10-26 Thread larry
I have the following script in a button:

on mouseUp

put the hilitedline of field mySelects into myDelete

repeat for each item L in myDelete

delete line L of field mySelects

end repeat

end mouseUp



If the hilitedlines of the field are, say, 1,4,7  then it will delete lines 1 
and 4, but not 7.  It always deletes all but the last line.  Why?

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


Re: how to disturb newbies

2014-10-26 Thread larry

I appreciate all this effort to improve the Dictionary.
But I feel the discussion about allowing EACH LC user to personally modify 
the Dictionary with his/her own notes is being overlooked.
I think it is crazy that LC only allows notes in the Dictionary that have 
been reviewed by the staff.
I WANT to add my own notes to the Dictionary, edit the examples, etc.  In 
short, I don't want to wait around for the LC Community to fix MY 
Dictionary.

I do not think this is an unreasonable request.
Larry

- Original Message - 
From: Jacques Hausser jacques.haus...@unil.ch

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 26, 2014 3:02 AM
Subject: Re: how to disturb newbies





Le 26 oct. 2014 à 03:27, Kay C Lan lan.kc.macm...@gmail.com a écrit :


Again, I FULLY SUPPORT Richard's recommendation that if anyone notices 
any

errors or even believes there should be better examples, Notes, Tips or
inclusions in the Dictionary and User Guide, then PLEASE submit them to:

http://quality.runrev.com/

Whilst they may not appear in the next cycle, I do appreciate that an
improved Dictionary is being worked on, and like LC itself, that has come
forward leaps and bounds in the last year, I'm sure all the corrections 
the
Community adds to the Bug DB in relation to the Dictionary will 
eventually

come back to us in the form of much better documentation.

After entry in the Bug DB, a quick post to this List giving everyone here 
a

heads up of what you've found would also be much appreciated.


I fully agree. The dictionary is very important to shape the first 
impression of newcomers about LC. I have read and heard several 
disparaging comments about the documentation which are a very negative 
publicity for this fantastic product. I perfectly understand that it is 
far more interesting and stimulating for the small staff in Edinburgh to 
develop new features - and they are brilliant at that - than devote time 
and energy to do the house cleaning on the documentation. But it's a vital 
part of how their work is appreciated outside. I would suggest Kevin to 
establish a weekly hour of dictionary cleaning for everybody. Most of 
the dictionary problems could be solved in such a short time.


**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel: ++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***


___
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: hilitedline

2014-10-26 Thread larry

Thanks Terry,
Sometimes I wish I wasn't so dense.
Larry

- Original Message - 
From: Terry Judd terry.j...@unimelb.edu.au

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 26, 2014 4:35 AM
Subject: Re: hilitedline


Larry - you need to delete the lines in reverse orderŠ

put the hilitedlines of field mySelects into myDelete

repeat with i = (the number of items in myDelete) down to 1
   delete line (item i of myDelete) of fld ³mySelects
end repeat

HTH,

Terry...

On 26/10/2014 7:58 pm, la...@significantplanet.org
la...@significantplanet.org wrote:


I have the following script in a button:

on mouseUp

put the hilitedline of field mySelects into myDelete

repeat for each item L in myDelete

delete line L of field mySelects

end repeat

end mouseUp



If the hilitedlines of the field are, say, 1,4,7  then it will delete
lines 1 and 4, but not 7.  It always deletes all but the last line.  Why?

Thanks, Larry
___
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: how to disturb newbies

2014-10-26 Thread larry

Richard,
It appears to me that you missed my point.
I do not see how me adding a note to my OWN Dictionary causes a spam issue.
Right now if I want to add a note to the Dictionary I have to log in. Then 
the note is submitted for approval (I don't know to whom.)
Then if the note is approved by (whomever) it gets added to the Dictionary 
for everyone. Is that the spam you're talking about? Because that is already 
in place.
I am NOT talking about Dictionary policing.  I am saying that I want to only 
edit MY PERSONAL copy of the Dictionary.


Also, it would be nice to search on the body and notes of the Dictionary. If 
that is currently possible (in 6.1.1) I do not know how to do it.

Thanks,
Larry

- Original Message - 
From: Richard Gaskin ambassa...@fourthworld.com

To: use-livecode@lists.runrev.com
Sent: Sunday, October 26, 2014 9:24 AM
Subject: Re: how to disturb newbies



larry wrote:

 I appreciate all this effort to improve the Dictionary.
 But I feel the discussion about allowing EACH LC user to personally
 modify the Dictionary with his/her own notes is being overlooked.
 I think it is crazy that LC only allows notes in the Dictionary that
 have been reviewed by the staff.

It may seem crazy until you consider the alternative:  once any 
communications venue is open for unmoderated posting by everyone, it 
becomes a spam magnet.


If it weren't for the daily efforts of the volunteer forum moderators, the 
LiveCode forums would be an unusable cesspool of spam.


Like the forums, an unmoderated Comments facility in the Dictionary would 
require significant manual effort from a sizable team to keep it in check.


We often don't think about spam as an issue, but that's only because of 
the team of moderators working across multiple time zones culling such 
posts and banning those accounts almost as soon as they come in, every 
day.


Personally, I find the forum spam moderation more than enough work for me, 
and I'd guess Klaus and the mods feel the same.  Adding Dictionary 
policing to that task load would take resources away from the community 
that could be better applied to more interesting things, like:



 I WANT to add my own notes to the Dictionary, edit the examples,
 etc.  In short, I don't want to wait around for the LC Community
 to fix MY Dictionary.

I can't fault others for wanting to share the benefits of their learning 
with the rest of the community.  That desire for sharing is what's 
motivating the focus around an enhancement process that benefits everyone. 
LiveCode is a relatively recent entrant into the open source world, but as 
we move forward we're finding ever better ways to coordinate the desires 
of community members to help others for maximum benefit for all.


That said, I recognize that from time to time folks may have a desire for 
something more specialized, in your case for local personal notes. 
Thankfully Peter Haworth (whom I had the pleasure of finally meeting in 
person at RevLive last month) seems to have come through for you - this is 
from a post he made here yesterday:


 I have a free plugin that allows you to enter your own notes
 and tags about a dictionary entry.  They are local to you so
 not available to all users.

 If interested, you can find it at
 http://www.lcsql.com/free-stuff.html

Thank you, Peter, for taking the time to craft that tool and your 
generosity in sharing it with the community.


--
 Richard Gaskin
 LiveCode Community Manager
 rich...@livecode.org

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



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


Re: how to disturb newbies

2014-10-26 Thread larry

Hi Bill
As I already replied to Richard:
It seems you missed my point.
I am NOT talking about the LC user base modifying the Dictionary we all use.
I specifically said: MY Dictionary.
In other words, just my own copy of the Dictionary on my machine.
I apologize if I did not make that more clear.
Thanks,
Larry

- Original Message - 
From: Earthednet-wp proth...@earthednet.org

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 26, 2014 9:33 AM
Subject: Re: how to disturb newbies



Folks,
To me, allowing the entire LC user base to modify the dictionary that we 
all use, will cause more problems than it solves. Richard's idea to form a 
team of experienced live coders to at least review additions and changes 
and brainstorm improvements is a great idea. Also, a feature that allows 
users to make private notes is also a great one. Perhaps, taking it a bit 
further, users' private notes might contain a button to submit them to the 
dictionary committee for review and inclusion in the master dictionary.


An important goal, I think, is to consider feedback from both experienced 
and relatively new users who perhaps use a different vocabulary for their 
desired outcome and can't find their way around the huge number of 
commands and intricacies.


This list also contains a wealth of questions that the documentation team 
might address. The challenge is to try to get into the mindset of those 
who are, in real time, trying to solve coding problems.


Best,
Bill

William Prothero
http://es.earthednet.org


On Oct 26, 2014, at 2:15 AM, la...@significantplanet.org wrote:

I appreciate all this effort to improve the Dictionary.
But I feel the discussion about allowing EACH LC user to personally 
modify the Dictionary with his/her own notes is being overlooked.
I think it is crazy that LC only allows notes in the Dictionary that have 
been reviewed by the staff.
I WANT to add my own notes to the Dictionary, edit the examples, etc.  In 
short, I don't want to wait around for the LC Community to fix MY 
Dictionary.

I do not think this is an unreasonable request.



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



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


Re: how to disturb newbies

2014-10-25 Thread larry

Richard,
If that is the case, then apparently there isn't much being done in 
submitting notice, because I know of many, many Dictionary errors.

Larry

I don't like to keep being a pest about this, but it would be SO nice if LC 
allowed us to edit the Dictionary on our own - our own corrections and our 
own notes.




I've found in recent years that Dictionary errors have generally been 
fixed almost instantly once notice is submitted, almost always prior to 
the next release.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: how to disturb newbies

2014-10-25 Thread larry

Hi Pete
I had your previous plugin and now downloaded the updated one you listed 
below.

GREAT!!
Larry
P.S. Why can't LC  be as smart as you?

- Original Message - 
From: Peter Haworth p...@lcsql.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Saturday, October 25, 2014 1:44 PM
Subject: Re: how to disturb newbies



I have a free plugin that allows you to enter your own notes and tags about
a dictionary entry.  They are local to you so not available to all users.

If interested, you can find it at http://www.lcsql.com/free-stuff.html




Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html

On Sat, Oct 25, 2014 at 8:50 AM, Earthednet-wp proth...@earthednet.org
wrote:


If there was a way to include user comments from a link in the dictionary
entry, it would be helpful to those who work to improve the dictionary. 
Or

perhaps a direct link to the location where dictionary bugs are reported.
Many of the comments would probably be made by newer users, who wouldn't
necessarily know where to post their experience or problem. In my work,
some of the most valuable feedback I get is from new users.

Bill

William Prothero
http://es.earthednet.org

 On Oct 25, 2014, at 8:19 AM, la...@significantplanet.org wrote:

 Richard,
 If that is the case, then apparently there isn't much being done in
submitting notice, because I know of many, many Dictionary errors.
 Larry

 I don't like to keep being a pest about this, but it would be SO nice 
 if

LC allowed us to edit the Dictionary on our own - our own corrections and
our own notes.



 I've found in recent years that Dictionary errors have generally been
fixed almost instantly once notice is submitted, almost always prior to 
the

next release.

 --
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Programming LiveCode with LiveCode

2014-10-16 Thread larry
Hi Jim,
I'm not trying to argue (don't know enough.)  But what you say below (I put in 
italics) seems only to underscore what I believe: that it will be easier to 
deal with those differences by just developing apps that run within a browser. 
Because don't both Android and iOS both run browsers?
Please understand that, compared to most people on this list, I know almost 
nothing.  So I'm really just trying to understand all of this.
What is SEEMS like to me is that a developer can 1) use LC to deal with this 
continuing differentiation of devices and OS ecosystems.  or 2) just develop 
for running in a browser and then no problem.

Please tell me if I'm over-simplifying that.
Thanks very much,
Larry


Jim wrote:
That may be true with desktop software, but I respectfully disagree when it 
comes to mobile.

There’s ever-growing fragmentation on Android, sometimes the developer must 
adapt to handset manufactures'  carriers' idiosyncratic variations of the 
OS/UI, form factors and unique features.
Then there are Apple's new and tempting backend solutions, like CloudKit, which 
provide a seamless experience for both users and developers. 
But they are clearly iOS only solutions. Leading to developer lock in.

IMO, the LiveCode is very nicely evolving to deal with this continuing 
differentiation of devices and OS ecosystems.

Jim Lambert

___
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: Programming LiveCode with LiveCode

2014-10-15 Thread larry

Hi John,
I'm on board with all of that!
Even though the LC community is relatively small, I agree 100% with you that 
a lot of people would start writing shared code that would greatly improve 
the LC IDE.  AND if LC did that, it would start attracting a lot more 
programmers.
I am of the opinion that all of the platform/device specific approach to 
software is going the way of the dinosaur.  I believe the future of software 
will be browser based for several reasons.  Maybe I'm ignorant and maybe I'm 
wrong, but that's what I believe.  What I would personally LOVE to see 
happen with LC is true open source like you're talking about and then see LC 
become a LEADER in writing software that works in any standard browser.  No 
fuss, no muss.  Don't have to worry about OS or device.
I'm working with a guy right now who is taking my clunky LC Windows 
prototype and rewriting it so that it will run in any browser.  He tells me 
that he can code it so that the program automatically detects the screen 
size of the device and automatically adjusts the program accordingly.  He 
also says that the user will be able to use the program offline and then 
synch automatically back to their personal data as soon as they get back 
online.  In other words, the app is available both online and offline.
If LC developed the ability to do all that kind of stuff with all of LC's 
other benefits, I would be extremely excited.


Since I don't know very much about the pecking order/politics whatever at 
Rev, I hope you more experienced list people will push for your idea.

You have my vote!
Larry
P.S. As one example, I got a lot of kind help from this list in 
understanding how to build and implement a library stack.  However, TO ME 
(in my little brain) it still seems like a work-around.  How wonderful it 
would be if I could just write and name a function (or import someone else's 
function) and then use it right within any script just like I use lineoffset 
or whatever AND also go to the LC dictionary and not only see the example(s) 
the author wrote, but add my own notes and examples right into the 
dictionary.  Well, we can dream can't we?


- Original Message - 
From: JB sund...@pacifier.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Wednesday, October 15, 2014 3:26 AM
Subject: Programming LiveCode with LiveCode



There have been hints that in the near future it will be
possible to program LiveCode with LiveCode like you
write scripts for your stacks.

Now that foundation has been added they have been
updating LiveCode and it sounds like they are using
Grand Central Dispatch for some of the graphics.

There are many powerful tools in foundation.  I am not
sure how difficult it would be but it would be a great if
instead of making a few really good changes to LiveCode
with foundation and GCD etc that they opened the doors
so anyone could access the tools in foundation from the
script level of LiveCode without writing an external.  If
this could be done you might even be able to allow scripts
to include the Swift programming language.

That would make LiveCode advance faster because a lot
of people would be writing code that would improve LiiveCode
and sharing it.  This would open the doors for amazing things
at a rapid pace with a true community involvement in writing
code for the changes.

John Balgenorth

___
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


enhancement request

2014-10-14 Thread larry
Hello,
I've had this situation before and had it again today, which cost me a couple 
of hours.

I dragged a new scrolling field onto my stack and named it myInput.  I hit 
Ctrl C and Ctrl V to copy it.  I dragged the new field to a new position and 
named it myOutput.

Somehow (I'm not sure how) I ended up with 2 fields named myInput one right 
over the top of the other one.

Then I put some text into the top myInput (not realizing there was a bottom 
one) and tried to do some stuff.  What was happening, is that LC was looking at 
the bottom (1st) field myInput and there was no text in that one.

So, of course, I got very strange behavior and used up a good portion of my 
rock collection.


Here is what I wish for: (and I do not know how to officially make the request, 
and this is where someone can help)

If I am so ignorant or unattentive ?  to make such a blunder, it would be 
really wonderful for LC to pop up a warning saying something like, Hey Larry! 
Wake Up!  You already have a field named myInput!!!

Know what I mean?

Thanks,
Larry
___
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: problem with counting words

2014-10-13 Thread larry

Hi Richard,
in a word...
I really enjoyed reading your post and I learned a lot!

Larry

- Original Message - 
From: Richard Gaskin ambassa...@fourthworld.com

To: use-livecode@lists.runrev.com
Sent: Monday, October 13, 2014 9:03 AM
Subject: Re: problem with counting words


Good post, Kay.  Each of the examples you provided is among the reasons I 
like xTalk.


But even though they demonstrate useful features of the language, neither 
is dependent on xTalk's trait of counting quoted text as a single word 
when using the word chunk type.


Perhaps I should preface this by noting that I very much enjoy xTalk in 
general and LiveCode in particular, a love that's only grown in my 27 
years with this family of languages.


But all programming languages have historical anomalies, and xTalk is not 
the world's only exception to this.  Programming languages are, by nature, 
somewhat funky, attempting to communicate the richness of human thought to 
a machine too stupid to count past 1.  All of them require trade-offs.


In the first example you provided, the list of names, none of them 
includes quoted text.  And even with the broader support of treating words 
as white-space delimited (breaking from the English rule of usually not 
including punctuation), as you noted at least one of the examples there 
will fail (sorry, Mr. Van Damme).


Many other languages also provide means of dealing with multi-character 
white space (sed, awk, and Python come to mind), and none of them, not 
even xTalk, will reliably sort by last name unless we separate the first 
and last more explicitly, such in separate fields or with a tab character, 
as is commonly done in any language where a last-name sort is important, 
even in LiveCode.


In the second example in which a multi-word value is used as an object 
identifier, once again we're not asked to parse that using xTalk's word 
chunk type, but instead get to rely on the engine's expression evaluator, 
which works very much like JavaScript's and others' in which literal 
strings can be used as object identifiers.  Useful as it is, it's neither 
unique to xTalk nor necessarily dependent on how we use the word chunk 
type.


Object identifiers *can* become dependent on the word chunk type if you 
need to parse them yourself, as others have noted along with many other 
good examples to justify the HyperTalk team's implementation (though we 
might ask why we need to do this so often, such as why we don't have 
objectType or ownerStack functions).


No matter how useful the current implementation is, the choice still 
requires justification.  Even if that justification is sound, favoring a 
certain utility, it's still a trade-off, the downside being a redefinition 
of the word word from its more common definition in natural language.


Larry's initial confusion is far from rare.  xTalk's reliance on a unique 
definition of word that differs from its use in natural language is 
something we all had to learn.  We may accept it, we may like it, we may 
even prefer it, but it's by no means intuitive to the native English 
speaker.


xTalk was born more than a decade before Unicode was invented, so it 
couldn't have taken advantage of the vast pool of collective knowledge 
embodied in the Unicode spec, nor was there the luxury of having the 
computational horsepower needed to use such a spec efficiently.


Today the LiveCode team has at last corrected this with the introduction 
of the trueWord token type, though I have to shrug my shoulders with an 
acknowledging chuckle in sharing Larry's initial observation that if xTalk 
were being designed today, with it's ostensible emphasis on English-like 
syntax, the order is backwards:


If we didn't have 27 years of code dependent on xTalk's unique 
redefinition of word, to support the claim of English-like it might be 
more intuitive to have word act as trueWord does, and have some other 
token do what word currently does in xTalks unique redefinition.


But that's not the world we live in.  Like every other language, LiveCode 
is a product of its unique history.  Useful as its conventions are, they 
will from time to time require us to learn new ways of doing things.


This is just one of many reasons I generally don't use the phrase 
English-like when giving talks on LiveCode.  Our favorite language 
brings to the world's programming choices a uniquely valuable blend of 
features, but while it's certainly more readable than most it isn't 
particularly English-like, nor does it really even try all that hard to 
be.


And that's a good thing.

Natural language is really tough stuff to parse, full of its own even 
longer and more nuanced history, and intended for a very different 
audience (the cognitive complexity of the human mind rather than the 
logical simplicity of computers).


I think most of us (except Geoff Canyon who has a rare mind for this sort 
of stuff g) would agree that we're all glad this isn't a valid statement

problem with counting words

2014-10-12 Thread larry
Hello,

I'm posting this to help any other poor saps who run into this insanity:

I want to count the words in a field.  I have:

set the itemDel to space

put the number of words of field myTest into field myNumber



Here is what happens:

I am testing the word count in LiveCode 6.1.1. Believe it or not, LiveCode will 
count all these words 

as 23 words because everything contained within the quotes is counted as ONE 
word!!!



There is nothing that I could find that says LiveCode will treat everything 
within quotes as one word, even when I have itemDel set to space.

I doubt the RunRev people will see this as a bug, but just how it is.  Well, 
it's really stupid - and beyond that, it is not documented in the Dictionary 
that I could see.

btw, I spoke to a programmer friend of mine (who used to work for Novell) and 
he said he'd never heard anything like that in the several programming 
languages he knows.

Yes, I do know how to do a work around to count all the actual words, but that 
is not the point.  The point is that I wasted over 2 hours of my time figuring 
out why my word count was inaccurate.

quite depressed,

Larry
___
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: problem with counting words

2014-10-12 Thread larry
Please tell me where it says that in the dictionary - I could find nothing 
about it.
I also searched the User Guide for quoted strings and also smart quotes 
and found nothing.
I also searched both the dictionary and the User Guide for truewords and 
found nothing.
So I'm very mystified where this stuff is to be found and how it is to be 
found.
I'm just trying to understand how this information is found so I don't need 
to keep bothering everyone on this list.

Thanks,
Larry

- Original Message - 
From: Colin Holgate co...@verizon.net

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 12:36 PM
Subject: Re: problem with counting words


The dictionary clearly says that quoted strings are counted as a single 
word. If you wanted to work around that as an issue by using the 
itemDelimiter, you would then look at the number of items in the field, not 
the number of words.


There’s a better option though, you can see how many truewords there are in 
the field, because that uses Unicode delimiters.


If you don’t want to use truewords instead of words for some other reason, 
you could solve the issue by using smart quotes instead of dumb quotes.

___
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: problem with counting words

2014-10-12 Thread larry

Easy to say, but how does one replace the quotes with curly-quotes?
I can't find out where it says how to do that.
Sorry I'm so lame.
Larry

- Original Message - 
From: Jerry Jensen j...@jhj.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 1:26 PM
Subject: Re: problem with counting words


Ah, and then there are tabs to deal with, and double-spaces will count an 
empty item between. It may be better to just replace the quotes with 
curly-quotes, count the words, and then replace the curly-quotes back to 
quotes if you want.


On Oct 12, 2014, at 12:20 PM, Jerry Jensen j...@jhj.com wrote:


Hi Larry,

the itemDel is the character that delimits ITEMS, not words. You could 
use it to get around your problem with quotes. If you set the itemDel to 
space, you would then look for the number of ITEMS in the field. Thats 
not quite the end of it though, because there may not be a space between 
lines in the field, only returns. So, you could add up the number of 
items in each line - something like:


put 0 into tCount
set the itemDel to space
repeat for each line L in field foo
 add the number of items in L to tCount
end repeat

(not tested)

.Jerry

On Oct 12, 2014, at 11:17 AM, la...@significantplanet.org wrote:


Hello,

I'm posting this to help any other poor saps who run into this insanity:

I want to count the words in a field.  I have:

set the itemDel to space

put the number of words of field myTest into field myNumber



Here is what happens:

I am testing the word count in LiveCode 6.1.1. Believe it or not, 
LiveCode will count all these words


as 23 words because everything contained within the quotes is counted 
as ONE word!!!




There is nothing that I could find that says LiveCode will treat 
everything within quotes as one word, even when I have itemDel set to 
space.


I doubt the RunRev people will see this as a bug, but just how it is. 
Well, it's really stupid - and beyond that, it is not documented in the 
Dictionary that I could see.


btw, I spoke to a programmer friend of mine (who used to work for 
Novell) and he said he'd never heard anything like that in the several 
programming languages he knows.


Yes, I do know how to do a work around to count all the actual words, 
but that is not the point.  The point is that I wasted over 2 hours of 
my time figuring out why my word count was inaccurate.


quite depressed,

Larry
___
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: problem with counting words

2014-10-12 Thread larry

Hi Terry,
Here is the real problem.  I don't know much.
I'm sitting here assuming that a word is a word, regardless of whether it is 
inside quotes.
Now I find out there is trueword.  It's just hard for me to reconcile 
LiveCode's boast of simple English and stuff like this.
The other thing I don't understand is this:  Is there any way to search the 
dictionary on the text of the dictionary and not just on the keywords?

If there is a way to do that, I don't know how.  It would help a lot.
Thanks,
Larry
P.S. That would be a cool thing if they added a wordDel function.  It would 
be REALLY cool if people could write their own functions and then add them 
to their personal LC dictionary.  Probably there is a way to do that, but 
again, I don't know how.


- Original Message - 
From: Terence Heaford t.heaf...@btinternet.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 1:38 PM
Subject: Re: problem with counting words


Wouldn’t it be good if RunRev could add WordDelimiter to the dictionary, 
would that solve the problem.


I believe it exists in SuperCard.

I thought LiveCode was a more modern version of SuperCard and would surely 
have this option.


All the best

Terry

On 12 Oct 2014, at 20:20, Jerry Jensen j...@jhj.com wrote:


the itemDel is the character that delimits ITEMS, not words.


___
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: problem with counting words

2014-10-12 Thread larry
Hi Craig,
I've written several functions within stacks, but have no idea how to create a 
library stack or, seems better, as a plug-in.
For example, one function I use in many of the programs I'm writing is:   
commaInsert:

on commaInsert

put round(thisFigure) into thisFigure

if thisFigure  0 then put thisFigure * -1 into thisFigure

put the length of thisFigure into L

if L  3 then put , before char -3 of thisFigure

put the length of thisFigure into L

if L  7 then put , before char -7 of thisFigure

put the length of thisFigure into L

if L  11 then put , before char -11 of thisFigure

put the length of thisFigure into L

if L  15 then put , before char -15 of thisFigure -- THIS WOULD BE AT LEAST 
1 TRILLION!!

put $ before thisFigure

end commaInsert



I use the above function (command) after performing math functions on numbers 
that I then want to display as dollar amounts with the commas in the right 
places.
It would be very cool to have it available all the time through a plug-in.  It 
would be even more cool if I could somehow add it to the LC dictionary and do 
this:

put commaInsert(thisFigure) into field myDollarDisplay
if thisFigure  1 then set the textcolor of field myDollarDisplay to red

Or even:
put commaInsert(thisFigure + otherFigure) into [container]

From what I've heard from programming friends, other languages allow for 
adding of functions to the dictionary as in the two line example in italics 
above.

Do you know if that is possible in LC?  As far as I know, it is not possible.
Larry

- Original Message - 
From: dunb...@aol.com
To: use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 4:53 PM
Subject: Re: problem with counting words


 
 
 Larry.
 But you can make your own dictionary. Without limit. Most of that, too, has 
 been possible since Hypercard. You can define your own properties, commands 
 and functions, and place them in permanent use in several ways, for example, 
 as a library stack in use or a plug-in.
 Have you ever written such a thing? Please write back if you have not, and we 
 will play around for a while. Or if you have written such gadgetry, but just 
 never saved any of them for later, general use in your own personal LC world, 
 the tell us that as well.
 Craig Newman
 
 ___
 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: problem with counting words

2014-10-12 Thread larry

Hello Mark,
It truly pleases me that you explained a reason for text within quotes being 
a single word.
I don't have enough experience (actually none) in defining arguments for 
commandline syntax and would never have thought of that.

So now I must say, OK, there is a reason.
However, I would still really like it if I could create my own functions as 
I please and add them directly into the LC dictionary/language of the IDE. 
I'm completely unclear how that would work with a plug-in.
If I wrote functions and put them into an expandable plug-in (to add future 
functions) could I call those functions up within a script?

For example:

put larryFunction(larryVar) into field myLarry

If anyone knows how to do that for the IDE so that the function I write is 
now available to me for ANY script of ANY stack, I would love to hear about 
it.

Larry

- Original Message - 
From: Mark Wieder mwie...@ahsoftware.net

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 6:00 PM
Subject: Re: problem with counting words


Terence-

Sunday, October 12, 2014, 12:38:53 PM, you wrote:


Wouldn’t it be good if RunRev could add WordDelimiter to the
dictionary, would that solve the problem.



I believe it exists in SuperCard.


I thought LiveCode was a more modern version of SuperCard and would surely 
have this option.


wordDelimiter would be an interesting addition, but would have its own
complexities. You need to keep in mind that words are delimited by
whitespace: spaces, tabs, carriage returns, etc., but also by some
punctuation: commas, periods, semicolons, etc.

I also find that text within quotes being a single word is congruent
with defining arguments for comandline syntax.

--
-Mark Wieder
ahsoftw...@gmail.com

This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not
consent to the retrieving or storing of this communication and any
related metadata, as well as printing, copying, re-transmitting,
disseminating, or otherwise using it. If you believe you have received
this communication in error, please delete it immediately.


___
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: problem with counting words

2014-10-12 Thread larry

Mark,
This is why personal functions are so important.  You like having all the 
words within quotes being seen as a single word for commandline calls.
On the other hand, it is giving me fits having to go from regular quotes to 
curly quotes (for counting) and then back to regular quotes for display 
(since LC displays a curly quote as some oddball char).  But if I could 
write my own function for that stuff, wow.


I do not have ANY experience with frontscripts, backscripts, plug-ins, 
whatever.  Maybe some day.  In the meantime, if anyone wants to write/point 
to a detailed explanation of how to do it, that will be great.
I would say that an ability for me to write functions and have them 
available for scripting would be #1 on my wish list.

Larry

- Original Message - 
From: Mark Wieder mwie...@ahsoftware.net

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 6:32 PM
Subject: Re: problem with counting words



larry-

Sunday, October 12, 2014, 5:16:45 PM, you wrote:


Hello Mark,
It truly pleases me that you explained a reason for text within quotes 
being

a single word.


Glad I could help.


I don't have enough experience (actually none) in defining arguments for
commandline syntax and would never have thought of that.
So now I must say, OK, there is a reason.


It's pretty simple, really. If I have a program that counts lines in a
file (let's call it linecount) and I want to call it with a file to
work on, then from a command prompt I would say something like

linecount fileToWorkOn.txt

However, if someone made a file with a name that had embedded spaces,

linecount some file with spaces.txt

wouldn't work because the first thing that would happen is the
linecount program would try to work on file some. What I'd need to
do in that case is say

linecount some file with spaces.txt

And then the operating system would treat everything within the quotes
as a single parameter. So I can extrapolate from that to xtalk
languages treating everything within quotes as a single entity.

If anyone knows how to do that for the IDE so that the function I write 
is
now available to me for ANY script of ANY stack, I would love to hear 
about

it.


Well, my first advice would be to wait for the next major version of
LiveCode, because the new initiative (I'm too tired and lazy at the
moment to look up the name) is designed to give you exactly that
capability.

But if you want to play around with it now, you'll want to read up on
frontscripts and backscripts. If you, for example, put a function into
a script and then insert the script into the backscripts, the function
will be available to any stack. This is a large part of how the IDE
itself works.

--
-Mark Wieder
ahsoftw...@gmail.com

This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not
consent to the retrieving or storing of this communication and any
related metadata, as well as printing, copying, re-transmitting,
disseminating, or otherwise using it. If you believe you have received
this communication in error, please delete it immediately.


___
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: problem with counting words

2014-10-12 Thread larry

Hi Robert,
I understand what you wrote.  That is not a problem for me.
What I want is to be able to put my function into the LC IDE so that I can 
use it in other stacks.
You mention a library stack.  I do not know how to make one or use one. Is 
there some tutorial or something that will tell me how?

Thanks,
Larry

- Original Message - 
From: Robert Brenstein r...@robelko.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 7:15 PM
Subject: Re: problem with counting words



Larry,

Change the first line of your function to

function commaInsert thisFigure

Better yet:

function commaInsert pFigure
put pFigure into thisFigure

Then add before the last end the following line

return thisFigure

If you have your function anywhere in the path (like in the stack script 
or library stack that is in use), then the following will work as you want


put commaInsert(thisFigure) into field myDollarDisplay

Robert


On 12.10.2014 at 17:09 Uhr -0600 la...@significantplanet.org apparently 
wrote:

Hi Craig,
I've written several functions within stacks, but have no idea how to 
create a library stack or, seems better, as a plug-in.
For example, one function I use in many of the programs I'm writing is: 
commaInsert:


on commaInsert

put round(thisFigure) into thisFigure

if thisFigure  0 then put thisFigure * -1 into thisFigure

put the length of thisFigure into L

if L  3 then put , before char -3 of thisFigure

put the length of thisFigure into L

if L  7 then put , before char -7 of thisFigure

put the length of thisFigure into L

if L  11 then put , before char -11 of thisFigure

put the length of thisFigure into L

if L  15 then put , before char -15 of thisFigure -- THIS WOULD BE AT 
LEAST 1 TRILLION!!


put $ before thisFigure

end commaInsert



I use the above function (command) after performing math functions on 
numbers that I then want to display as dollar amounts with the commas in 
the right places.
It would be very cool to have it available all the time through a plug-in. 
It would be even more cool if I could somehow add it to the LC dictionary 
and do this:


put commaInsert(thisFigure) into field myDollarDisplay
if thisFigure  1 then set the textcolor of field myDollarDisplay to red

Or even:
put commaInsert(thisFigure + otherFigure) into [container]

From what I've heard from programming friends, other languages allow for 
adding of functions to the dictionary as in the two line example in 
italics above.


Do you know if that is possible in LC?  As far as I know, it is not 
possible.

Larry

- Original Message -
From: dunb...@aol.com
To: use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 4:53 PM
Subject: Re: problem with counting words





 Larry.
 But you can make your own dictionary. Without limit. Most of that, 
too, has been possible since Hypercard. You can define your own 
properties, commands and functions, and place them in permanent use in 
several ways, for example, as a library stack in use or a plug-in.
 Have you ever written such a thing? Please write back if you have not, 
and we will play around for a while. Or if you have written such 
gadgetry, but just never saved any of them for later, general use in 
your own personal LC world, the tell us that as well.

 Craig Newman

 ___
 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


lock screen question and detect field question

2014-10-12 Thread larry
Hello,

2 questions this time:

1) I have a program where I'm creating and deleting fields.  If I try to delete 
a field that hasn't yet been created, I get a script error.  So is there a way 
to first find out if the field exists?
Something like:

if field myField01 exists then
  do stuff
end if


2) Other than creating a substack to overlay my main stack with a Loading 
field that adds a period after Loading.. is there a way to lock the 
screen (so the user doesn't see the fields being created) and still show a 
field with the Loading... going on?
Like:

on createMyFields
lock screen
create the fields
update the Loading. field with a new period  -- AND DON'T LOCK THIS VIEW 
FROM BEING UPDATED
unlock screen
end createMyFields

Thanks,
Larry


___
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: problem with counting words

2014-10-12 Thread larry

Hello Kay,
Mark gave me a short explanation of why it is good to see the words within 
quotes as one word and now you've given a longer and more detailed 
explanation.

So I thank you and I will stop throwing rocks at my computer.
Larry
P.S. I still want to understand how to write my own functions that I can use 
right within any script of any stack.



- Original Message - 
From: Kay C Lan lan.kc.macm...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 7:58 PM
Subject: Re: problem with counting words


On Mon, Oct 13, 2014 at 7:45 AM, Richard Gaskin 
ambassa...@fourthworld.com

wrote:



I hear ya', but like so many other oddities in the language this one came
from Apple,



Sheer brilliance! One of the first analogies of HyperCard was that it was 
a

an electronic rolodex. Here is a list of names:

Abu MusabAl-Zarqawi
Camilla Parker-Bowles
CatherineZeta-Jones
Claude Levi-Strauss
D'ArcyCorrigan
Daniel  Day-Lewis
DavidBen-Gurion
Dodi Al-Fayed
FlorenceGriffith-Joyner
Gilbert  O'Sullivan
GloriaMacapagal-Arroyo
Jean-Claude Van Damme
JimmyO'Dea
Justine  Henin-Hardenne
KareemAbdul-Jabbar
Karim Abdul-Jabbar
KristinScott-Thomas
Maddox  Jolie-Pitt
MichaelO'Leary
Olivia Newton-John
PeterO'Toole
Sinéad O'Connor
TimBrooke-Taylor
Ralph Twistleton-Wykham-Fiennes

So lets say you want to sort these by surname - a kind of rolodex thing to
do.

sort lines of myListOfNames by word  of  -1 each

will result in only one mistake

sort lines of myListOfnames by trueword -1 of each --if you are on LC7.0

will result in basically the same messed up result most other programming
languages will give you. Put it in and word processor and see how you go.

Please feel free to try and write your own function that is more 
successful
and more efficient than the beautiful one liner Bill Atkinson gave us. 
Even

if you had wordDel it wouldn't help much. I can't imagine the amount of
hours that have been wasted, especially on genealogical websites, trying 
to

unfathom why double barrelled names never sort correctly. This is also
compounded by the certain fact that some people will put a space between
the last given name and the Surname, some a tab, and some will 'format' 
the

data by placing multiple spaces in between names so that things 'line up
nicely' - and are then confused as to why it only looks that way on their
screen an not on someone else's. One of the reasons double barrelled names
have picked up the '-' is to help computers recognise them as a single 
word.


Also;

put myVariable into fld Not A Variable

doesn't work

put myVariable into fld Not A Variable

does. The ability to recognise words in quote as a single entity is
extremely important. Yes, we don't typically think of such as a single
word, but when we understand that computers don't think like us, and we do
understand why things are the way they are, such oddities can be
manipulated in many powerful ways to our own advantage. It is also helpful
when we understand such things that we don't go around replacing one
character willy nilly with another character. ~ [tilde] for instance is 
one

character I'd never use as it has a special meaning in many computer
languages; as does / \   . * and many others. If we had some text that
contained both straight and curly quotes and replaced the straight quotes
with curly quotes so we could get a word count, and then changed the curly
quotes back to straight quotes, the finL text is not the same as it 
started

- and this could cause problems. Today your function might work perfectly
for today's problem, but next month, or next year, when you start 
expanding

your LC skills and try working with SQL databases, or Servers and network
connections, every now and then someone will report a bug that your app
does something strange. You may never be able to track it down because it
just happens that once every million DB calls a random user happens to use
data that contains a character that you never use yourself and thought no
one else would. I have a particular liking to numToChar(127) myself.

Yep, no other programming language might define a word like LC defines a
word, but I for one am EXTREMELY thankful for that.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode 



___
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: problem with counting words

2014-10-12 Thread larry

Hello Kay,
I read the chapter in the user guide about creating a library.
I also read insert script in the dictionary and it talks about a limit of 
10 scripts(10 front and 10 back) in the compiled app.
What I'm unclear about is, may I have multiple functions within, say, a card 
or stack script?  In other words, if I have one script that contains 10 
commands within it that could be called up, is that counted as 1 script or 
as 10 scripts?

Thanks,
Larry

- Original Message - 
From: Kay C Lan lan.kc.macm...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 8:09 PM
Subject: Re: problem with counting words



Open the User Guide (from the IDE Help Menu select 'User Guide' and type
Library in your pdf viewer's search box. Chapter 5.8 'Extending the 
Message

Path' should come up as the first hit.

This also may be helpful:

http://lessons.runrev.com/m/4071/l/11787-how-to-call-a-function-or-command-in-another-object

HTH

On Mon, Oct 13, 2014 at 9:58 AM, la...@significantplanet.org wrote:


Hi Robert,
I understand what you wrote.  That is not a problem for me.
What I want is to be able to put my function into the LC IDE so that I 
can

use it in other stacks.
You mention a library stack.  I do not know how to make one or use one. 
Is

there some tutorial or something that will tell me how?
Thanks,
Larry

- Original Message - From: Robert Brenstein r...@robelko.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 7:15 PM

Subject: Re: problem with counting words


 Larry,


Change the first line of your function to

function commaInsert thisFigure

Better yet:

function commaInsert pFigure
put pFigure into thisFigure

Then add before the last end the following line

return thisFigure

If you have your function anywhere in the path (like in the stack script
or library stack that is in use), then the following will work as you 
want


put commaInsert(thisFigure) into field myDollarDisplay

Robert


On 12.10.2014 at 17:09 Uhr -0600 la...@significantplanet.org
apparently wrote:


Hi Craig,
I've written several functions within stacks, but have no idea how to
create a library stack or, seems better, as a plug-in.
For example, one function I use in many of the programs I'm writing is:
commaInsert:

on commaInsert

put round(thisFigure) into thisFigure

if thisFigure  0 then put thisFigure * -1 into thisFigure

put the length of thisFigure into L

if L  3 then put , before char -3 of thisFigure

put the length of thisFigure into L

if L  7 then put , before char -7 of thisFigure

put the length of thisFigure into L

if L  11 then put , before char -11 of thisFigure

put the length of thisFigure into L

if L  15 then put , before char -15 of thisFigure -- THIS WOULD BE 
AT

LEAST 1 TRILLION!!

put $ before thisFigure

end commaInsert



I use the above function (command) after performing math functions on
numbers that I then want to display as dollar amounts with the commas 
in

the right places.
It would be very cool to have it available all the time through a
plug-in. It would be even more cool if I could somehow add it to the LC
dictionary and do this:

put commaInsert(thisFigure) into field myDollarDisplay
if thisFigure  1 then set the textcolor of field myDollarDisplay to
red

Or even:
put commaInsert(thisFigure + otherFigure) into [container]

From what I've heard from programming friends, other languages allow 
for
adding of functions to the dictionary as in the two line example in 
italics

above.

Do you know if that is possible in LC?  As far as I know, it is not
possible.
Larry

- Original Message -
From: dunb...@aol.com
To: use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 4:53 PM
Subject: Re: problem with counting words





 Larry.
 But you can make your own dictionary. Without limit. Most of that,
too, has been possible since Hypercard. You can define your own 
properties,
commands and functions, and place them in permanent use in several 
ways,

for example, as a library stack in use or a plug-in.
 Have you ever written such a thing? Please write back if you have 
not,
and we will play around for a while. Or if you have written such 
gadgetry,

but just never saved any of them for later, general use in your own
personal LC world, the tell us that as well.
 Craig Newman

 ___
 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

Re: lock screen question and detect field question

2014-10-12 Thread larry

That is a really good question!  And I have a really good answer!
Because the fields are dynamic and not always the same ones needed.
But you've given me a new thought:  Maybe I can just create all the fields I 
will ever possibly need and then just show and hide them.

I'm going to think about that.
Thanks,
Larry

- Original Message - 
From: Kay C Lan lan.kc.macm...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 12, 2014 8:14 PM
Subject: Re: lock screen question and detect field question



On Mon, Oct 13, 2014 at 10:05 AM, la...@significantplanet.org wrote:



1) I have a program where I'm creating and deleting fields.



Why are you creating them and deleting them? Why aren't the fields already
there and you just show and hide them?
___
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


summary question for functions and libraries

2014-10-12 Thread larry

Thanks everyone for the info on libraries and backscripts, etc.

I feel like I'm back in college taking an intensive class.

If I understand everyone correctly, I could do this if I want my functions 
to work in a standalone:


Make a stack that has a button (or the stack itself, right?) with all my 
functions in it.


Then just add (copy) that stack as a sub-stack to whatever application I'm 
working on - say stack larryLibrary


That way all my functions are available to me as I develop and also 
available when I create the standalone.


Have I got it right?

Thank you again!
Larry 



___
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: LC 6.6.3 and 6.6.4 really slower than LC 6.1.2

2014-10-09 Thread larry

My (limited) experience:
I found several bugs in 6.6.3
Without changing the code at all, I opened my stack in 6.1.1 and everything 
ran perfectly.



Larry


- Original Message - 
From: Alain Vezina alain.vez...@logilangue.com

To: LiveCode How to use-livecode@lists.runrev.com
Sent: Thursday, October 09, 2014 9:41 AM
Subject: LC 6.6.3 and 6.6.4 really slower than LC 6.1.2



Hi All,

When I press a btn to go back to a previews card it takes 1/10 of a second 
with LC 6,1,2, but it takes 3.28 second with LC 6.6.3 and 6.6.4. That the 
same when my app is a standalone.

I use the same script for all trials

on mouseUp
  global sBrowserId
  BrowserInvisible02
  hide btn accidPronomi
  hide btn Rectif
  go to cd LaRecherche
  show btn avance
  show btn recule
  show fld flexions
  if fld info is not empty then
 show fld info
  end if
  revBrowserSet sBrowserId, visible, true
  show image browserimage of cd LaRecherche
end mouseUp

I am on Maveriks and XCode 6.0.1 for LC 6.6.3 and 6.6.4 and on Maveriks 
and XCode 5.1.1 for the LC 6.1.2 version.


I dont understand.
Is it a bug I have to report?

Anybody has an idea of what is the problem?

Alain Vezina
Logilangue
www.logilangue.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


quotes question

2014-10-08 Thread larry
Hello All,

I've been given some good advice from a couple of people on this list about 
being sure to put quotes around object names.

So I'm going back through my code and doing that.

Question: If I'm using a variable as part of a field name, should it have 
quotes around it?
In other words, which of the two examples below is the right way to do it?

create field
set the name of the last field to (myfield  x)

OR

create field
set the name of the last field to (myfield  x)

??

Thanks
Larry
___
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


reporting a bug?

2014-10-07 Thread larry
Hello,

I've just spent about 3 hours trying to debug my program and finally found out:
There is a problem in the IDE, but when I compile, the problem goes away.

I am creating several fields using the templateField and create field

I set the locktext to false for all the fields - both in the templateField and 
after they are created - just to be sure. (Originally I just had: set the 
locktext of the templateField to false)

Each created field has its script set to a master script that has an openField 
command in it.

When I open the IDE and create my fields, and then try to click in a newly 
created field, nothing happens.

I found out, just by trial and error, that if I first drag a button or field 
using the tool bar on to my stack and then delete that button or field and then 
create my fields, everything works as it should.  However, if I 
PROGRAMMATICALLY create the button and then delete it, I still cannot click in 
a newly created field.

So after 3 hours of stuff like that, I finally compiled my program and 
everything works fine.


I am just reporting this to the list because I'm not smart enough to know if 
that is a bug or not.  But if anyone was experiencing anything like that, then 
you now know what happened with me.

btw, I'm using 6.6.3 on an XP machine.

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


from here to there

2014-10-06 Thread larry
Hello,

Can someone please tell me the syntax for putting words x to y from one 
field/var to another?

I tried:
put words 1 to 40 of field fld1 into field fld2
but that doesn't work.

I don't even know how to look up the syntax!  Sorry.

Thanks
Larry
___
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: from here to there

2014-10-06 Thread larry

Thanks Klaus and Dave,
It is sort of strange to me that I want more than 1 word and so I used 
words, but you guys are right of course.  Just use word

Larry

- Original Message - 
From: Klaus major-k kl...@major-k.de

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Monday, October 06, 2014 4:34 PM
Subject: Re: from here to there



Hi Larry,

Am 07.10.2014 um 00:25 schrieb la...@significantplanet.org 
la...@significantplanet.org:



Hello,

Can someone please tell me the syntax for putting words x to y from one 
field/var to another?


I tried:
put words 1 to 40 of field fld1 into field fld2
but that doesn't work.
I don't even know how to look up the syntax!  Sorry.


avoid the plural :-)

put word 1 to 40 of field fld1 into field fld2


Thanks
Larry


Best

Klaus

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


___
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: from here to there

2014-10-06 Thread larry

I'm echoing John:
Thanks Kay for the detailed explanation.
That really helps us understand the LC syntax so much better!
Larry

- Original Message - 
From: Kay C Lan lan.kc.macm...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Monday, October 06, 2014 8:31 PM
Subject: Re: from here to there



On Tue, Oct 7, 2014 at 6:37 AM,  la...@significantplanet.org wrote:


It is sort of strange to me that I want more than 1 word and so I used
words,


As to how grammatically correct it is I'm sure Richmond could tell us,
but I like to think of it this way, I'm not actually specifying plural
what I'm doing is specifying a start point and an end point and these
are always singular.

char 1 to char 21
word 5 to word -2

this is then conveniently shorthanded to:

item 2 to 22
token 34 to -9
byte -8 to -1

Also, if I ask myself, how do I get every word from a variable - note
I've used the singular, so the answer is, word 1 to -1  --again I use
the singular

And just in case it comes up, remember a word in LC includes any
punctuation that may follow what we typically think of as a word, in
the message box

put this is, a word into tStore
put word 1 to 2 of tStore into msg

if you don't want the punctuation you might find trueword is what you need

put this is, a word into tStore
put trueword 1 to 2 of tStore into msg

HTH

___
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


create a new label field

2014-10-05 Thread larry
I can use create field to create a new field, but it is a rectangular field 
with square corners.  How do I create a new label field programatically?
___
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: create a new label field

2014-10-05 Thread larry

Hi Craig,
Yes, but how do I do that?
I cannot find any command that distinguishes from label or regular field.
I do use templateField for other properties, but nothing I've tried will set 
the property of a label field.

Thanks,
Larry

- Original Message - 
From: dunb...@aol.com

To: use-livecode@lists.runrev.com
Sent: Sunday, October 05, 2014 5:14 PM
Subject: Re: create a new label field



Hi.


Set up the templateField as a label field. Then all new fields created 
will have its properties.



Craig Newman



-Original Message-
From: larry la...@significantplanet.org
To: use-livecode use-livecode@lists.runrev.com
Sent: Sun, Oct 5, 2014 6:32 pm
Subject: create a new label field


I can use create field to create a new field, but it is a rectangular 
field

with square corners.  How do I create a new label field programatically?
___
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: create a new label field

2014-10-05 Thread larry

Hi Craig,
Thanks for elaborating. I really appreciate it.  I know your first message 
meant perfect sense to you, but I just don't have much experience.

I should have thought to do what you just said in this most recent post.
Now I have a better understanding of how to do stuff like that.
Again, thanks very much.
Larry

- Original Message - 
From: dunb...@aol.com

To: use-livecode@lists.runrev.com
Sent: Sunday, October 05, 2014 6:24 PM
Subject: Re: create a new label field


Make a label field the way you want it. Set the properties of the 
templateField to the properties of your label field.



Craig



-Original Message-
From: larry la...@significantplanet.org
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sun, Oct 5, 2014 7:20 pm
Subject: Re: create a new label field


Hi Craig,
Yes, but how do I do that?
I cannot find any command that distinguishes from label or regular field.
I do use templateField for other properties, but nothing I've tried will 
set

the property of a label field.
Thanks,
Larry

- Original Message - 
From: dunb...@aol.com

To: use-livecode@lists.runrev.com
Sent: Sunday, October 05, 2014 5:14 PM
Subject: Re: create a new label field



Hi.


Set up the templateField as a label field. Then all new fields created
will have its properties.


Craig Newman



-Original Message-
From: larry la...@significantplanet.org
To: use-livecode use-livecode@lists.runrev.com
Sent: Sun, Oct 5, 2014 6:32 pm
Subject: create a new label field


I can use create field to create a new field, but it is a rectangular
field
with square corners.  How do I create a new label field programatically?
___
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: create a new label field

2014-10-05 Thread larry

Thanks Jacque,
That note is actually very enlightening to me!
Larry

- Original Message - 
From: J. Landman Gay jac...@hyperactivesw.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 05, 2014 6:50 PM
Subject: Re: create a new label field


Just for reference, LiveCode has only one field and one button object. 
All the field variations in the tool palette are just a single field 
object with different properties set.  The same goes for all the buttons.


I think it's misleading for new users because it gives the impression that 
there are different types of button and field controls.


On October 5, 2014 7:36:14 PM CDT, la...@significantplanet.org wrote:

Hi Craig,
Thanks for elaborating. I really appreciate it.  I know your first
message
meant perfect sense to you, but I just don't have much experience.
I should have thought to do what you just said in this most recent
post.
Now I have a better understanding of how to do stuff like that.
Again, thanks very much.
Larry

- Original Message - 
From: dunb...@aol.com

To: use-livecode@lists.runrev.com
Sent: Sunday, October 05, 2014 6:24 PM
Subject: Re: create a new label field



Make a label field the way you want it. Set the properties of the
templateField to the properties of your label field.


Craig



-Original Message-
From: larry la...@significantplanet.org
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sun, Oct 5, 2014 7:20 pm
Subject: Re: create a new label field


Hi Craig,
Yes, but how do I do that?
I cannot find any command that distinguishes from label or regular

field.

I do use templateField for other properties, but nothing I've tried

will

set
the property of a label field.
Thanks,
Larry

- Original Message - 
From: dunb...@aol.com

To: use-livecode@lists.runrev.com
Sent: Sunday, October 05, 2014 5:14 PM
Subject: Re: create a new label field



Hi.


Set up the templateField as a label field. Then all new fields

created

will have its properties.


Craig Newman



-Original Message-
From: larry la...@significantplanet.org
To: use-livecode use-livecode@lists.runrev.com
Sent: Sun, Oct 5, 2014 6:32 pm
Subject: create a new label field


I can use create field to create a new field, but it is a

rectangular

field
with square corners.  How do I create a new label field

programatically?

___
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


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


how to detect insertion point

2014-10-05 Thread larry
Hello,

I have several fields... myField1, myField2, etc.

When the user clicks within a field, I want to detect the (?? selection, 
insertion ??) and run a script.

I've experimented for over an hour with no luck.

The only thing I found that sort of works is:
on mouseEnter
  do stuff
end mouseEnter

The problem with that is that one of the things I want to do is change the 
color of the field while the script is doing stuff and only change back to the 
original color when the stuff is finished, and not when the mouse leaves.  It 
is too clunky to require the user to leave the mouse in the field while the 
stuff is being done.

I hope that makes sense.
Thanks for any help.
Larry
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: how to detect insertion point

2014-10-05 Thread larry

Thanks Kay,
For some reason, neither focusIn nor focusOut works.
I can get what I want with openField but I haven't found anything that works 
when the focus is no longer on the field; focusOut doesn't work and neither 
does closeField (because closeField only works if the user changed the 
contents of the field)

So I'm just here tearing my hair out!
Larry

- Original Message - 
From: Kay C Lan lan.kc.macm...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 05, 2014 8:35 PM
Subject: Re: how to detect insertion point



Maybe the focusIn messgae might help.

On Mon, Oct 6, 2014 at 10:30 AM,  la...@significantplanet.org wrote:

Hello,

I have several fields... myField1, myField2, etc.

When the user clicks within a field, I want to detect the (?? selection, 
insertion ??) and run a script.


I've experimented for over an hour with no luck.

The only thing I found that sort of works is:
on mouseEnter
  do stuff
end mouseEnter

The problem with that is that one of the things I want to do is change 
the color of the field while the script is doing stuff and only change 
back to the original color when the stuff is finished, and not when the 
mouse leaves.  It is too clunky to require the user to leave the mouse in 
the field while the stuff is being done.


I hope that makes sense.
Thanks for any help.
Larry
___
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: how to detect insertion point

2014-10-05 Thread larry

Thanks Mike!
Now I can keep the rest of my hair!
Larry

- Original Message - 
From: miked...@gmail.com
To: use-livecode@lists.runrev.com; How to use LiveCode 
use-livecode@lists.runrev.com

Sent: Sunday, October 05, 2014 8:47 PM
Subject: Re: how to detect insertion point


What about exitfield?

Mike

Original Message
From: la...@significantplanet.org
Sent: Sunday, October 5, 2014 10:45 PM
To: How to use LiveCode
Reply To: How to use LiveCode
Subject: Re: how to detect insertion point

Thanks Kay,
For some reason, neither focusIn nor focusOut works.
I can get what I want with openField but I haven't found anything that works
when the focus is no longer on the field; focusOut doesn't work and neither
does closeField (because closeField only works if the user changed the
contents of the field)
So I'm just here tearing my hair out!
Larry

- Original Message - 
From: Kay C Lan lan.kc.macm...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, October 05, 2014 8:35 PM
Subject: Re: how to detect insertion point



Maybe the focusIn messgae might help.

On Mon, Oct 6, 2014 at 10:30 AM, la...@significantplanet.org wrote:

Hello,

I have several fields... myField1, myField2, etc.

When the user clicks within a field, I want to detect the (?? selection,
insertion ??) and run a script.

I've experimented for over an hour with no luck.

The only thing I found that sort of works is:
on mouseEnter
do stuff
end mouseEnter

The problem with that is that one of the things I want to do is change
the color of the field while the script is doing stuff and only change
back to the original color when the stuff is finished, and not when the
mouse leaves. It is too clunky to require the user to leave the mouse in
the field while the stuff is being done.

I hope that makes sense.
Thanks for any help.
Larry
___
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: how to detect insertion point

2014-10-05 Thread larry

Thanks Craig,
I learned a lot today from your post and Jacque's post.
Larry

- Original Message - 
From: dunb...@aol.com

To: use-livecode@lists.runrev.com
Sent: Sunday, October 05, 2014 10:06 PM
Subject: Re: how to detect insertion point



Larry.


It takes a while to learn the many LC commands, functions and properties 
that pertain to the task at hand. Experimentation is the best way, but 
also do use the dictionary, trying out various words that seem to  fit 
what you are looking for. And especially the see also entries when you 
do.



In your original post, you mentioned the word selection. That, or maybe 
select by itself, would likely have led you to many possible lines of 
experimentation. After a while, you will have a a sense of what and how to 
search for in the dictionary, and the array of options presented there 
will lead you farther. I would keep the filter set to all.



Craig



-Original Message-
From: Mark Schonewille m.schonewi...@economy-x-talk.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sun, Oct 5, 2014 11:26 pm
Subject: Re: how to detect insertion point


Hi Larry,

To detect the insertion pint when the user clicks in a field, you can do 
this:


on selectionChanged
  put the selectedchunk
end selectionChanged

--
Kind regards,

Mark Schonewille
Economy-x-Talk
Http://economy-x-talk.com

Share the clipboard of your computer over a local network with Clipboard 
Link

http://clipboardlink.economy-x-talk.com


Op 6 okt. 2014 om 04:30 heeft la...@significantplanet.org het volgende
geschreven:


Hello,

I have several fields... myField1, myField2, etc.

When the user clicks within a field, I want to detect the (?? selection,

insertion ??) and run a script.


I've experimented for over an hour with no luck.

The only thing I found that sort of works is:
on mouseEnter
 do stuff
end mouseEnter

The problem with that is that one of the things I want to do is change 
the
color of the field while the script is doing stuff and only change back to 
the
original color when the stuff is finished, and not when the mouse leaves. 
It is
too clunky to require the user to leave the mouse in the field while the 
stuff

is being done.


I hope that makes sense.
Thanks for any help.
Larry
___
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


position of field scrollbar

2014-10-02 Thread larry
Hello,
I have a field with a vScrollbar

Does anyone know how to set the position of the scrollbar to 0  ??

I'm sorry, but the LC dictionary is of NO help in this matter - at least not 
that I could see.

Thanks,
Larry
___
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: sort question for today

2014-09-29 Thread larry

Hi Paul,
That is essentially what I did, but not as elegantly as your solution.
But it works and it is very quick, so I'm happy.
Thanks very much  for helping me see an even better way.
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Monday, September 29, 2014 1:28 AM
Subject: Re: sort question for today


Larry,

This should work…

  put line 7 to -1 of fld myStats into tLinesToSort
  sort lines of tLinesToSort by word 2 of each
  put tLinesToSort into line 7 to -1 of fld myStats

You can only sort all Lines or Items of a container, so if you need to sort 
specific lines or items, you must put them into a separate container to do 
the sort, then replace them.


Paul

On Sep 28, 2014, at 8:35 PM, la...@significantplanet.org wrote:


Hello,

I am trying to sort lines 7 through the last line of a field.

This doesn't work:
sort lines (7 to last) of field myStats by word 2 of each

Does anyone know the code that will work?

Thanks, Larry
___
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


sort question for today

2014-09-28 Thread larry
Hello,

I am trying to sort lines 7 through the last line of a field.

This doesn't work:
sort lines (7 to last) of field myStats by word 2 of each

Does anyone know the code that will work?

Thanks, Larry
___
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: 6.6.2 or 6.6.3???

2014-09-26 Thread larry

Hi Bob,
I had the exact same experience that you did.
I just assumed it was a display bug with LC and ignored it. When I got the 
alert about 6.6.3, I just chose Skip this version.

Maybe you or someone will report it as a bug.
Larry

- Original Message - 
From: Bob Sneidar bobsnei...@iotecdigital.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, September 26, 2014 12:00 PM
Subject: 6.6.2 or 6.6.3???


Hi all.

I’m wondering if any other Windows users are encountering this: I downloaded 
and installed the 6.6.3 installer, the commercial version, to test in my 
Windows 7 environment. But when the app launches it reports that it is 
6.6.2! So I get an alert that there is a new version, 6.6.3, so I install 
that over top. It still reports that it is version 6.6.2!!!


So which is it? 6.6.2, or 6.6.3? Is this just a display bug? The About 
Livecode splash screen is indicating 6.6.2 build 4012.


Bob S
___
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: searching for chars within a string

2014-09-26 Thread larry

Hello Peter,
Thanks for sending your functions. I'm still sort of a newbie and I had to 
get a programming friend give me a quick course in how functions work 
(especially the local variables.)
Anyway, I ran a test using your functions against the offset() function in 
LC
Searching 78 characters (the entire alphabet repeated 3 times) for all 
possible 7-ltr words (32,856 is the result) we have:

your functions: 3045 milliseconds
offset(): 1249 milliseconds

But I'm going to file away your functions because I may use them later in 
some other manner - and what I learned today about functions was very 
helpful.

So thanks again.
Larry
P.S. I'm using LC 6.6.3 on Windows XP with 4gb of ram.

- Original Message - 
From: Peter M. Brigham pmb...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, September 26, 2014 11:53 AM
Subject: Re: searching for chars within a string


I'm curious, Larry -- how fast is this on your machine compared to the 
regex solutions?


function isInString testStr, targetStr
  repeat for each char c in testStr
 add 1 to countArray[c]
  end repeat
  put the keys of countArray into letterList
  repeat for each line L in letterlist
 put countArray[L] into nbrCharsTest
 put howMany(c,targetStr,comma) into nbrCharsNeeded
 if nbrCharsNeeded  nbrCharsTest then return false
  end repeat
  return true
end isInString

function howmany tg,container,divChar
  -- how many tg = target string is in container

  replace tg with divChar in container
  set the itemdelimiter to divChar
  put the number of items of container into h
  if char -1 of container = divChar then return h
  -- trailing delimiter is ignored
  return h-1
end howmany

-- Peter

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


On Sep 26, 2014, at 11:58 AM, la...@significantplanet.org 
la...@significantplanet.org wrote:



Hello Kay,
Good stuff.
I did some time tests and offset() is about twice as fast as matchText(). 
Don't know why.

Larry

- Original Message - From: Kay C Lan lan.kc.macm...@gmail.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, September 26, 2014 12:54 AM
Subject: Re: searching for chars within a string



A simple way would be just to use basic matchText() for each single
letter and regex matchText() for repeating letters.  P.*P will find
double Ps, P.*P.*P will find triple Ps etc. Seems to be relatively
fast but if you have very large data sets other alternatives would
need to be investigated.

in the message box:

put ABCDEKLP into X
put ABCDEKMMOOPP into Y
put 10 into Z
put 0 into a
put 0 into b
put 0 into c
put 0 into d
put the millisec into tStart
repeat Z times
if (matchText(X, A) AND matchText(X, E) AND matchText(X, L) AND
matchText(X, P.*P)) then
 add 1 to a
else
add 1 to b
end if
if (matchText(Y, A) AND matchText(Y, E) AND matchText(Y, L) AND
matchText(Y, P.*P)) then
add 1 to c
else
add 1 to d
end if
end repeat
put the millisec into tEnd
put X Passed   a   times.  cr into msg
put X Failed   b   times.  cr after msg
put Y Passed   c   times.  cr after msg
put Y Failed   d   times.  cr after msg
put Z   repeats took   tEnd - tStart   ms after msg

The above should take less than 1 sec but for a million repeats I got:

X Passed 0 times.
X Failed 100 times.
Y Passed 100 times.
Y Failed 0 times.
100 repeats took 1997 ms

NOTE: the above only works if the letters you are looking for can
appear in ANY order. If you need a specific order then you'd have to
regex matchText() for all searches, ie

if (matchText(X, A.*E.*L.*P) AND matchText(X,P.*P)) then

Yes, the P must appear in both searches to ensure a P has both an L
before it and a P after it.

HTH

On Wed, Sep 24, 2014 at 8:22 AM,  la...@significantplanet.org wrote:

Hello,

I have done a lot research and cannot find any way to do this:

I have a string, AELPP and I want to see if all 5 of those letters 
are in search string


If search string is:  ABCDEKLP,   then NO it isn't because there are 
two P's in the string I'm searching for.


But if search string is:  ABCDEKLLLMMOOPP, then YES the string I'm 
searching for is found in the search string.


It is important to my program that I just find the 5 chars anywhere 
within the search string and they do not have to be sequential in the 
search string.


___
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: Replacing Characters

2014-09-26 Thread larry
My experience is that when doing string searching offset() is by far the 
fastest way.

But I don't know everything.
Larry

- Original Message - 
From: JB sund...@pacifier.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, September 26, 2014 10:26 PM
Subject: Replacing Characters



I want to replace every third character in
a text string if it is a certain character.  So
lets say I have a list of characters there
range from A thru F and the list is possibly
10,000 characters long.

I want to check every third character in the
list and if it is a D then I want to change it
to a +.

I can probably do it with a repeat and use a
variable for a counter that resets every three
times and then check the character when the
counter gets to three but I was wondering if it
could be done faster somehow.

John Balgenorth

___
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


variable trouble

2014-09-24 Thread larry
Hello,

I'm using 6.6.3 on Windows XP.

This line of code works just fine:
put the keys of wgList03 into theseKeys

but the following lines of code do NOT work: (where N is 3)  -- and yes, it IS 
a ZERO after wgList

put wgList0  N into thisVar

put the keys of thisVar into theseKeys

To me, this is just inexplicable and very frustrating.  Any help will be 
greatly appreciated.

Thanks,

Larry
___
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: variable trouble

2014-09-24 Thread larry

Hi Scott,
I meant to say inexplicable to me.
Your solution works great.
However, I cannot figure out the next part:
I want to put the value of thisKey into a variable when it matches.
So I tried a few iterations of:

put value(thisVar[thisKey])  space after newVar

but could not get anything to work - with the parenthesis in different 
places.


Do you know the syntax for adding the bracketed thisKey ??

Thanks,
Larry

- Original Message - 
From: Scott Rossi sc...@tactilemedia.com

To: LiveCode Mail List use-livecode@lists.runrev.com
Sent: Wednesday, September 24, 2014 12:28 AM
Subject: Re: variable trouble



Hi Larry:

Your situation is very explicable.  In your script you're treating
thisVar as an array, instead of accessing the array that you put into
thisVar.  You're trying to use one variable to refer to another.

If I understand the result you want, one way would be to use the value
function, to retrieve the data of the array stored in thisVar:

put wgList0  N into thisVar

put the keys of value(thisVar) into theseKeys


Hope this works for you.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 9/23/14 11:07 PM, la...@significantplanet.org
la...@significantplanet.org wrote:


Hello,

I'm using 6.6.3 on Windows XP.

This line of code works just fine:
put the keys of wgList03 into theseKeys

but the following lines of code do NOT work: (where N is 3)  -- and yes,
it IS a ZERO after wgList

put wgList0  N into thisVar

put the keys of thisVar into theseKeys

To me, this is just inexplicable and very frustrating.  Any help will be
greatly appreciated.

Thanks,

Larry
___
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: P.S. on searching for chars within a string

2014-09-24 Thread larry

Hi Craig,
Thanks for the tip.
I am using a for each loop and have run some benchmark time tests. I am able 
to find (match) the words I want in about 1/7 of the time that it used to 
take me using a different procedure - and the old way was pretty fast!  To 
find all the smaller words (length of 2 - 7) contained in a 12-ltr word, it 
used to take 3.46 seconds. Now it only takes 0.56 seconds. (finding 1698 
words)  And even better, the new way allows for getting the smaller words 
from a string of, say 30 chars, and it doesn't increase the time much - 
about 0.85 seconds for searching within 30 chars.  With the old way, I 
couldn't even search on more than 12 chars, because it just took too long.

So I learned a lot today!
Larry
P.S. Yes, I am using arrays.

- Original Message - 
From: dunb...@aol.com

To: use-livecode@lists.runrev.com
Sent: Tuesday, September 23, 2014 9:10 PM
Subject: Re: P.S. on searching for chars within a string



Larry.


Just read your brute force comment. Not sure how much data you want to 
compare, but a loop using the for each variant will run an awful lot of 
text in an awfully short time.



What about that array thing, just for modernity and compactness/


Craig



-Original Message-
From: larry la...@significantplanet.org
To: use-livecode use-livecode@lists.runrev.com
Sent: Tue, Sep 23, 2014 8:25 pm
Subject: P.S. on searching for chars within a string


Hello again,

I know how to do it with brute force,  but I want to know the FASTEST way 
to

find the chars.

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


sorting question

2014-09-24 Thread larry
Hello,

I have the following items in a field:

AD, AE, AI, AN, AR, AS, AT, DE, DI, DO, EE, EN, ER, ES, ET, IN, IO, IS, IT, NO, 
NU, OE, OP, OR, OS, OU, PA, PE, PI, ST, TO, UP, UR, UT, DA, EA, ED, ID, NA, NE, 
OD, OI, ON, PO, RE, SI, SO, TA, TE, TI, UN, US



You can see that they are not sorted alphabetically.  I have a test button with:

on mouseUp

sort items of field myField

end mouseUp

However, the order of the items remains unchanged.  

I also tried:

sort items of field myField text ascending

but it didn't make a difference



Thanks for the help,

Larry
___
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: sorting question

2014-09-24 Thread larry
Sorry, never mind!
Larry
___
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


now a paste question

2014-09-24 Thread larry

Hello Dave,
Yes, you guessed it correctly.

However I have a new weird thing.
I have a large amount of text - over 10,000 5-ltr words.  I can copy and 
paste the entire text with no problem from one txt document to another via 
the clipboard.
But when I try to paste the entire amount into a LC field (either 6.1.1 or 
6.6.3) it will not paste in the whole amount.
It seems that a couple of years ago someone told me that LC has some weird 
limitation on how much can be put into a field at one time.
Does anyone know anything about that - or why I cannot paste the entire text 
into a LC field all at once.  I can do pieces and keep going until all of it 
is in the field.

Thanks,
Larry


- Original Message - 
From: Dave Kilroy d...@applicationinsight.com

To: use-revolut...@lists.runrev.com
Sent: Wednesday, September 24, 2014 2:40 AM
Subject: Re: re: sorting question



Sounds like you've sorted it Larry :)

For others wondering what the cause was, it was likely that the spaces in
each item were confusing things - so if they are removed prior to the sort
it all works fine (they can be put back in after...)

on mouseUp
  replace space with empty in fld fldTest
  sort items of fld fldTest
  replace comma with ,  in fld fldTest
end mouseUp



-
Some are born coders, some achieve coding, and some have coding thrust 
upon them. - William Shakespeare  Hugh Senior


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/sorting-question-tp4683684p4683687.html

Sent from the Revolution - User mailing list archive at Nabble.com.

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



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


Re: now a paste question

2014-09-24 Thread larry

THANKS Dave,
I was going crazy trying to figure out the weird behavior.
I guess I should have read the user guide!
So I just put a return after every entry and, now, no problems!
Thanks very much for your help.
Larry

- Original Message - 
From: Dave Kilroy d...@applicationinsight.com

To: use-revolut...@lists.runrev.com
Sent: Wednesday, September 24, 2014 3:52 AM
Subject: Re: now a paste question



Hi Larry

Page 43 of the LC User Guide states  the maximum line length of a line in 
a

field is 65,536 characters storage (No more than 32,786 pixels wide for
display) Is your text all in one line by any chance?

I haven't heard of a max size for a field but if you are having problems
using a field how about using a custom property instead?




-
Some are born coders, some achieve coding, and some have coding thrust 
upon them. - William Shakespeare  Hugh Senior


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/sorting-question-tp4683684p4683690.html

Sent from the Revolution - User mailing list archive at Nabble.com.

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



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


sort lines by length

2014-09-23 Thread larry
Hello,

this line doesn't work:
sort lines of field myField by length of each

Can someone please tell me the code for sorting a field by length of line?

Thanks!
___
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


searching for chars within a string

2014-09-23 Thread larry
Hello,

I have done a lot research and cannot find any way to do this:

I have a string, AELPP and I want to see if all 5 of those letters are in 
search string

If search string is:  ABCDEKLP,   then NO it isn't because there are two P's in 
the string I'm searching for.

But if search string is:  ABCDEKLLLMMOOPP, then YES the string I'm searching 
for is found in the search string.

It is important to my program that I just find the 5 chars anywhere within the 
search string and they do not have to be sequential in the search string.

Thanks for any help,
Larry
___
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


P.S. on searching for chars within a string

2014-09-23 Thread larry
Hello again,

I know how to do it with brute force,  but I want to know the FASTEST way to 
find the chars.

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


repeat with each

2014-09-22 Thread larry
Hello,

I have never been able to understand how to use the each form in a repeat 
statement.

Can anyone explain why this code does not work?  It is almost verbatim from the 
example in the LC dictionary.

on mouseUp

repeat for each word thisWord in field justOne

put , after thisWord

end repeat

sort items of field justOne

end mouseUp



It does not insert the commas.  Supposedly the each form is a lot faster than 
using

put x + 1 into x
put , after word x of field justOne

Thanks,
Larry
___
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


file size

2014-09-22 Thread larry
Hello,

I know I can use:
put the files into field Current Files

to get the size of a file (in bytes), but is there any way to use answer file 
or some other way to get the size of just one specific file?



Thanks,

Larry
___
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: file size

2014-09-22 Thread larry

Thanks Paul and Alex and Richard,

I ended up using Paul's code:
on mouseUp
  answer file ?
  put binfile:  it into tFile
  put the length of URL tFile / 1000  KB into fld myResultField
end mouseUp

It works just great!
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Monday, September 22, 2014 4:50 PM
Subject: Re: file size



Larry,

Try:

on mouseUp
  answer file ?
  put binfile:  it into tFile
  put the length of URL tFile / 1000  KB into fld myResultField
end mouseUp

Paul

On Sep 22, 2014, at 2:29 PM, la...@significantplanet.org wrote:


Hello,

I know I can use:
put the files into field Current Files

to get the size of a file (in bytes), but is there any way to use answer 
file or some other way to get the size of just one specific file?




Thanks,

Larry
___
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: file size

2014-09-22 Thread larry

Hi Mike,
good point, but actually my line is:
put the length of URL tFile into field myResult

because I want the actual number and not how many kb.
Larry

- Original Message - 
From: miked...@gmail.com
To: use-livecode@lists.runrev.com; How to use LiveCode 
use-livecode@lists.runrev.com

Sent: Monday, September 22, 2014 6:28 PM
Subject: Re: file size



‎To be technically correct divide by 1024.

Mike

Original Message
From: la...@significantplanet.org
Sent: Monday, September 22, 2014 8:21 PM
To: How to use LiveCode
Reply To: How to use LiveCode
Subject: Re: file size

Thanks Paul and Alex and Richard,

I ended up using Paul's code:
on mouseUp
answer file ?
put binfile:  it into tFile
put the length of URL tFile / 1000  KB into fld myResultField
end mouseUp

It works just great!
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Monday, September 22, 2014 4:50 PM
Subject: Re: file size



Larry,

Try:

on mouseUp
answer file ?
put binfile:  it into tFile
put the length of URL tFile / 1000  KB into fld myResultField
end mouseUp

Paul

On Sep 22, 2014, at 2:29 PM, la...@significantplanet.org wrote:


Hello,

I know I can use:
put the files into field Current Files

to get the size of a file (in bytes), but is there any way to use 
answer

file or some other way to get the size of just one specific file?



Thanks,

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

reading a file

2014-09-21 Thread larry
Hello,

Could anyone please explain why the following script does not work?
(It puts into the field the name of the selected file and not the contents of 
the file.

on mouseUp

answer file Select a file.

put quote  it  quote into thisFile

open file thisFile

read from file thisFile until EOF

put it into field myOutput

close file thisFile

end mouseUp



Thanks,

Larry
___
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: reading a file

2014-09-21 Thread larry

Thanks Alain,

Why is it that if I explicitly want to open a file, I have to put quotes 
around the name, but if I put the name in a variable, I do not need the 
quotes?

Thank you again,
Larry

- Original Message - 
From: Alain Farmer alain_far...@yahoo.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, September 21, 2014 4:09 PM
Subject: Re: reading a file



replace:
put quote  it  quote into thisFile
with
put it into thisFile


On Sunday, September 21, 2014 6:03 PM, la...@significantplanet.org 
la...@significantplanet.org wrote:




Hello,

Could anyone please explain why the following script does not work?
(It puts into the field the name of the selected file and not the contents 
of the file.


on mouseUp

answer file Select a file.

put quote  it  quote into thisFile

open file thisFile

read from file thisFile until EOF

put it into field myOutput

close file thisFile

end mouseUp



Thanks,

Larry
___
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: Usng an image to disable a group

2014-09-20 Thread larry

Hi Peter,
I'm not sure what you're exactly looking for in looks but I just now made 
a little test stack with colored buttons.
You can adjust the blendlevel so that the group is as opaque or as 
transparent as you wish it to be.

That's one idea.
Larry

- Original Message - 
From: Peter Haworth p...@lcsql.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Saturday, September 20, 2014 10:20 AM
Subject: Usng an image to disable a group



I have a stack with a series of groups on it.  I need to control the order
in which data is entered into the groups.  The obvious/easy way is to
enable/disable the groups as needed but I'm not happy with the way groups
look when they are disabled.

I vaguely remember a thread about using images to do this since clicks
within the image don't make it through to the underlying controls.  When I
tried this, clicks on buttons that were under the image did not trigger 
any

mouse events on them, as hoped, but field controls still get focus and I
can type into them.

It seems like this isn't going to work so looking for other ways to 
achieve

this without having to go through every control in the group and adjusting
their properties to disable them.  Alternatively, is there a way to 
control

how a group looks when it is disabled?

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html
___
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


large arrays

2014-09-19 Thread larry
Hello,

I made a program some years ago with Rev studio 2.9 that had some very large 
arrays in it.  No problem.

Then I got Rev 3.5 and it choked on the large arrays - took forever to load and 
display in Variables.

Several years ago, I spoke to RunRev about it and they said they were going to 
resolve it.

I am using LC 6.1.1 (rc 4) and was just working with it on my old (large array) 
program.  I can hardly do anything because LC is SO sluggish. If I want to edit 
a script, it takes several seconds to display what I am typing - so it is 
extremely difficult to see what I'm doing.

Does anyone know of this issue and if it ever was fixed in some later version 
of LC?

Thanks,
Larry
___
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: large arrays

2014-09-19 Thread larry

Thanks Fraser,
I will try that.
Larry

- Original Message - 
From: Fraser Gordon fraser.gor...@livecode.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, September 19, 2014 5:51 AM
Subject: Re: large arrays




On 19 Sep 2014, at 12:46, la...@significantplanet.org wrote:


Hello,

I made a program some years ago with Rev studio 2.9 that had some very 
large arrays in it.  No problem.


Then I got Rev 3.5 and it choked on the large arrays - took forever to 
load and display in Variables.


Several years ago, I spoke to RunRev about it and they said they were 
going to resolve it.


I am using LC 6.1.1 (rc 4) and was just working with it on my old (large 
array) program.  I can hardly do anything because LC is SO sluggish. If I 
want to edit a script, it takes several seconds to display what I am 
typing - so it is extremely difficult to see what I'm doing.


Does anyone know of this issue and if it ever was fixed in some later 
version of LC?


We have completely re-written how arrays are handled internally in 
LiveCode 7 so you could give it a go in that and let us know how you get 
on.


Regards,
Fraser


___
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: large arrays

2014-09-19 Thread larry

Hello Richard,
Here are the numbers:

I wrote a program that is an anagram finder several years ago using Rev 2.9 
and had NO problems with the arrays.
As I mentioned, it choked starting with Rev 3.5 and every iteration of Rev 
or LC that I've tried since, up to the current 6.1.1 (rc 4)

I haven't tried it in LC 7.0 yet.

I have a hidden stack with my word fields in it - for words in length from 2 
to 12.  The word lists are optimized with a key for faster searching.
When the program loads, it puts each of the 11 word list fields into one 
array - which takes about 1 second on my XP with 4gb of ram.
The word lists vary in length (3-ltr words is 1292 lines  the largest, 
9-ltr words, is 40,727 lines.)  Each line in all the lists averages less 
than 100 characters.
The size of the field for 9-ltr words is 796kb if copied into a txt 
document.


My old computer that I wrote the original program on with Rev 2.9 had less 
than 1gb of ram, so I don't think that is the issue.


If I put in a 9 letter word such as ELEPHANTS, the program will find all 
anagrams (words found within the letters of ELEPHANTS) in about 4/10 of a 
second. The time varies slightly depending on whatever else is going on with 
my computer.  That's a total of 596 words with my word lists and the program 
lists words and the number of words for each word length from 9 to 2.


So the compiled version of my program works very satisfactorily.  I'm now 
adding some other features to the program and, as I said, it is like trying 
to program on a typewriter that is full of mud.


I spoke to someone at RunRev years ago and they acknowledged that there was 
an issue with arrays.  Maybe it has been fixed in 7.0, but I haven't tried 
that yet.


If you have any additional insights, I sure would appreciate it.

Thanks,
Larry


- Original Message - 
From: Richard Gaskin ambassa...@fourthworld.com

To: use-livecode@lists.runrev.com
Sent: Friday, September 19, 2014 10:18 AM
Subject: Re: large arrays



Just curious:  How large is large?

It would be interesting to know the number of elements. depth, and 
aggregate size.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: large arrays

2014-09-19 Thread larry

Hello Richard,
I had to leave for awhile but now here is the updated info:
Using put len(arrayEncode(myArray)) I got the following:
there are actually 11 different arrays - one for each of the word lengths 
from 2 to 12 letters.

The 3-ltr word array is 17672
The 9-ltr word array is 1159610 (there are a lot more 9-ltr words than 3-ltr 
words.)
I didn't do all the others, but that will give you an idea.  7 and 8-ltr 
words will be close to 9-ltr words in size


I haven't yet had time to test with later versions, but once I do, I will 
let you know.
The problem is not the time it takes to load the arrays.  As I mentioned, it 
loads all 11 in just over 1 second.
Once they are loaded, I access the data directly from the arrays and not 
from the fields.
The number elements (lines) in the arrays varies.  The 3-ltr array has 1292 
lines - I guess that means elements.

The 9-ltr array has 40,727 lines or elements.
Each line is in a format like this:
apt,APT,PAT,TAP  where apt is the key, which only needs to be found once 
and it shows all the 3-ltr words that can be made with those letters.  Of 
course, that speeds up the search process tremendously.


The time (about .4 seconds) I mentioned for finding the 596 words found in 
ELEPHANTS is what I tested today.  But I know that even on a slower computer 
using the stack built with Rev 2.9, the time was very close to that - about 
1/2 of a second.


About 5 or 6 years ago when I was using 2.9 and then upgraded to 3.5, I not 
only spoke to someone at RunRev (forgot who) but I also spoke to Jerry 
Daniels, of Daniel and Mara, on the phone about several RunRev things and we 
discussed the array issue.  He acknowledged that with the release of 3.5 
there were some serious array issues, that RunRev knew about them and Jerry 
hoped that they would soon be fixed.  They were not fixed with the release 
of RunRev 4.0 and the only version of LC that I've used extensively is 6.1.1 
and the array issues are still not fixed in that release - although I would 
say it is a big improvement over RunRev 3.5.


The crazy thing is this:  I haven't made any significant changes to my stack 
over the years - mostly cosmetic stuff and the array sizes are what they've 
always been.  RunRev 2.9 never flinched, brought up the data in the arrays 
almost instantly.  But since then it has been worse than trying to get my 
little grandson to wear a shirt.


I'm working on other projects now, but wanted to incorporate some of the 
anagram features in my latest project.  I am very reluctant to do so because 
the complete sluggishness of it makes it way too frustrating to try and 
program.


Someday soon I will get around to trying LC 7.0 or 7.1 or whatever is there 
and HOPEFULLY the issue will be solved.


In the meantime, thank you and Jacqueline SO MUCH for your kind attention 
and offers of help.


All the best,
Larry

- Original Message - 
From: Richard Gaskin ambassa...@fourthworld.com

To: use-livecode@lists.runrev.com
Sent: Friday, September 19, 2014 1:19 PM
Subject: Re: large arrays



larry wrote:

 As I mentioned, it choked starting with Rev 3.5 and every iteration
 of Rev or LC that I've tried since, up to the current 6.1.1 (rc 4)

The current shipping version is 6.6.3, and the latest test version lower 
than 7 is 6.7RC2.


Please let us know if you see any significant change with either version.


 I have a hidden stack with my word fields in it - for words in length
 from 2 to 12.  The word lists are optimized with a key for faster
 searching.
 When the program loads, it puts each of the 11 word list fields into
 one array - which takes about 1 second on my XP with 4gb of ram.

If the problem is the time it takes to load the array, and the loading is 
happening from fields, the problem may not be in the arrays and perhaps in 
the field accesses.



 The word lists vary in length (3-ltr words is 1292 lines  the
 largest, 9-ltr words, is 40,727 lines.)  Each line in all the lists
 averages less than 100 characters.
 The size of the field for 9-ltr words is 796kb if copied into a txt
 document.

So there are 11 elements in the array?

If you run the array through arrayEncode and obtain its length, what is 
the size reported?


   put len(arrayEncode(tSomeArray))


 If I put in a 9 letter word such as ELEPHANTS, the program will find
 all anagrams (words found within the letters of ELEPHANTS) in about
 4/10 of a second.

Is that the old time or the new time?  If new, what is the old time (or 
vice versa)?



 I spoke to someone at RunRev years ago and they acknowledged that
 there was an issue with arrays.

It would be interesting to know exactly what they'd said.  While arrays 
have undergone revision a few times over the years, they tend to be very 
fast in every version I've used.


Hopefully once we understand more of the details of your code we'll pin 
down the bottleneck and get your performance back on par.


--
 Richard Gaskin
 Fourth World Systems
 Software Design

trouble with 6.1.1 (rc4)

2014-09-18 Thread larry
I'm using 6.1.1 (rc 4) on Windows XP

I made a mistake in one of my card scripts and BLOOEY!!!, LiveCode went beserk 
and changed most of my buttons and fields to about 48 pt text size.

Now, whenever I drag a NEW button onto my card, it still has that huge text 
size by default.

I went to Preferences and clicked on Reset to Defaults and then closed LC 
entirely.

If I open a New Stack, the button has the default text size of 10 or 12 or 
whatever it is.

But if I open my existing stack where the trouble began, then a new button 
still has the 48 text size.

This is driving me crazy!!

So please help me not have to start taking lots of drugs...

How can this be fixed?

Thanks,
Larry
___
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


browser app?

2014-09-15 Thread larry
Hello,

I came across this article:
http://newsletters.livecode.com/february/issue149/newsletter4.php

It describes a browser app for mobile phones.
Does anyone know if the app could be adapted for a Windows desktop environment?

Thanks for the help!
Larry
___
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: browser app?

2014-09-15 Thread larry

Thanks Richard!!

- Original Message - 
From: Richard Gaskin ambassa...@fourthworld.com

To: use-livecode@lists.runrev.com
Sent: Monday, September 15, 2014 11:30 AM
Subject: Re: browser app?



Larry wrote:

 I came across this article:
 http://newsletters.livecode.com/february/issue149/newsletter4.php

 It describes a browser app for mobile phones.
 Does anyone know if the app could be adapted for a Windows desktop
 environment?

That article describes the revBrowser control for mobile.  The desktop 
version has been available longer (for Mac and Win), and the LiveCode IDE 
install includes a demo showing how to use it:  Click Resources in the 
toolbar, then in the Resource Center window click Tutorials - Internet - 
Browser Sampler


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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


closing a browser tab?

2014-09-13 Thread larry
Hello,

I use the following:

launch url myUrl

and LC opens a browser tab in my default browser - cool.

My question is this:

Is there any way to close that tab when I want to?

TIA
Larry
___
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


player question

2014-09-12 Thread larry
I have the following lines of code below:
I put a number such as 10 into field myStart and then execute the code.
The player still starts playing at the very beginning of the song.
?
TIA
Larry

put field myStart * the timeScale of player myPlayer into tStart

set the startTime of player myPlayer to tStart

start player myPlayer
___
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: player question

2014-09-12 Thread larry

Thanks Paul!
That was all that was needed.
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, September 12, 2014 6:53 PM
Subject: Re: player question



Try adding the line:

set the playSelection of player myPlayer to true

Paul


On 2014-09-12, at 4:56 PM, la...@significantplanet.org wrote:


I have the following lines of code below:
I put a number such as 10 into field myStart and then execute the code.
The player still starts playing at the very beginning of the song.
?
TIA
Larry

put field myStart * the timeScale of player myPlayer into tStart

set the startTime of player myPlayer to tStart

start player myPlayer
___
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: No WAV playback on Win in v6.6.2?

2014-09-12 Thread larry

Hello Richard,
I had a problem once with playing .wav
Turns out that I had the wrong flavor of .wav
I had to convert my wav files from 32 bit to 16 bit.  Apparently LC doesn't 
handle wav files above 16 bit.

Anyway, that was my experience.  Good luck!
Larry

- Original Message - 
From: Richard Gaskin ambassa...@fourthworld.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, September 12, 2014 7:37 PM
Subject: No WAV playback on Win in v6.6.2?


I could have sworn I'd been able to play WAV files in Windows (no QuickTime 
installed) within a LiveCode player object, but today I'm having no luck.


Am I imagining things?

LC seems to do well with MP3, but it would be very convenient for this 
project if I could use WAV.


Am I missing something?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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


url question

2014-09-12 Thread larry
Hello,

I use the following:

launch url myUrl

and LC opens a browser tab in my default browser - cool.

My question is this:

Is there any way to close that tab when I want to?

TIA
Larry
___
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


copying files in Windows 8

2014-09-11 Thread larry
I have a little program where I copy some files from one folder to another with 
revCopyFile myFile,myFolder and also delete myFile
The compiled program works fine on XP and Windows 7, but I get strange behavior 
on Windows 8.

Is that perhaps because Windows 8 uses some different type of folder and file 
management?

I am completely mystified.

Thanks for any insights...

Larry
___
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: Congrats LC 7.0! You finally broke my DB!

2014-09-09 Thread larry

Sorry that happened Mark.
LC seems to be following the same rule of business as Microsoft - Let's not 
worry too much about making our new stuff backward compatible with the old 
stuff.  What do we care if people cannot run their old stuff anymore?

an emphathetic coder
Larry

- Original Message - 
From: Mark Mitchell cowh...@mac.com

To: use-livecode@lists.runrev.com
Sent: Tuesday, September 09, 2014 2:44 PM
Subject: Congrats LC 7.0! You finally broke my DB!


First of all, LC is an absolutely amazing product.  It's actually so 
amazing that I don't want to tell anyone about it, as I can make my 
computer dance and sing, and everyone thinks I am a programming wiz...


However, my basic data base app has been running my small company for 
about 14 years?  I think it started with the free meta-card, which was 
limited to just 10 lines of code, so you had to keep passing your code 
from hidden object to object, in order to keep it free... anyone remember 
those days?  It was like NASA controlling Voyager!  Then, this app went 
through paid metacard, Revolution Beta, paid Revolution, all versions of 
Livecode and FINALLY LC 7.0 managed to break it...


I don't want to seem like a whiner; I HAVE paid hundreds of dollars for 
various incarnations and complicated licenses of this, ever since I was a 
beta tester.  (And I never received a stuffed animal!)


But this DB app has run on, quite literally, more than 20 different 
computers and various operating systems.  It has managed my company and 
allowed me to raise more than 7 cats.


The DB used 'color coding' of the lines, so the color of the lines is 
vital information.  LC 7.0 erases all the previous 13 year of coloring on 
the entire fields and reverts them to plain text.. thus dumping 13 years 
of essential information.


All is OK, for the time being, I have trashed LC 7.0 and restored all 
stacks (which worked fine with LC 6.6 but will not open with LC 7.0).


I have tested on multiple machines, and it has failed, yet it still works 
fine on LC 6.6.  Is this not a bug?  I have a feeling it is tied to the 
revamped unicode which LC 7.0 has promised, but which I have not yet had a 
chance to test.


I have narrowed down the offending code to this:

global planDate,linNum
put absolutely anything into line linNum of card field plan
--
It gets 'put' alright, but card field plan loses all previous 
formatting.

Big, big bug if it changes folks' stacks forever!

I've tried putting a global or a non-variable, and I get the same result.
I would say I am doing something stupid, but I didn't DO anything, except 
upgrade to 7.0


(edit: in a previous post, I included an extraneous 'the' as I was testing 
to see if the type of variable mattered.  Anyway, the 'the' doesn't 
matter.  You still lose formatting without 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 



___
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


icon sizes

2014-09-08 Thread larry
does anyone know the sizes needed to include an icon in a Windows build?

thanks

p.s.  why does LC make this information so difficult to find?
___
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: icon sizes

2014-09-08 Thread larry

Yes,
Thanks Charles
Larry

- Original Message - 
From: Charles E Buchwald char...@buchwald.ca

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Monday, September 08, 2014 12:20 PM
Subject: Re: icon sizes



Hi Larry,
Is this helpful?
http://buchwald.ca/lc/Windows-Icons.png
- Charles

On 08 Sep 2014, at 12:43 PM, la...@significantplanet.org wrote:


does anyone know the sizes needed to include an icon in a Windows build?

thanks

p.s.  why does LC make this information so difficult to find?
___
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


--
Charles E. Buchwald
CEO/Director General
Museografica Digital
http://digital.museografica.com

Mac OSX 10.9.4, LC 6.6.2 Commercial

LC Developer Tools: http://buchwald.ca

Email Notice: http://wp.me/P3aT4d-33


___
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


2 lines on a button?

2014-09-08 Thread larry
Hi All,

I have a large button and I want the label to read either Show Instructions 
or Hide Instructions but I cannot figure out how to put the two words on two 
different lines in the label of the button.  Is that possible to do?
TIA
Larry
___
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: 2 lines on a button

2014-09-08 Thread larry
Never Mind!

I was trying to do it in the property inspector and then I realized I can just 
say in the script:
set the label of button myInstructions to  Show  return  Instructions

so simple, but in my defense, I'm still learning!
Thanks, Larry
___
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: 2 lines on a button

2014-09-08 Thread larry

ha ha
(I only wish I could be fast all the time!)

- Original Message - 
From: Mark Wieder mwie...@ahsoftware.net

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Monday, September 08, 2014 5:47 PM
Subject: Re: 2 lines on a button



larry-

Dang! You're getting way too fast at this! I was thinking that would
probably work, but I didn't even get a chance to test it before you
answered your own question.

--
-Mark Wieder
ahsoftw...@gmail.com

This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not
consent to the retrieving or storing of this communication and any
related metadata, as well as printing, copying, re-transmitting,
disseminating, or otherwise using it. If you believe you have received
this communication in error, please delete it immediately.


___
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: 2 lines on a button

2014-09-08 Thread larry

Thanks Phil,
In many cases that will be easier! ( and I checked; you can put as many \n 
as the space on the button will allow:  First\nSecond\nThird, etc.)

Larry

- Original Message - 
From: Phil Davis rev...@pdslabs.net

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Monday, September 08, 2014 8:46 PM
Subject: Re: 2 lines on a button



Larry,

Another way to do it in the Property Inspector is type \n between the 
first and second lines of the label, like this:


first line\nsecond line

Regards -
Phil


On 9/8/14, 4:43 PM, la...@significantplanet.org wrote:

Never Mind!

I was trying to do it in the property inspector and then I realized I can 
just say in the script:
set the label of button myInstructions to  Show  return  
Instructions


so simple, but in my defense, I'm still learning!
Thanks, Larry
___
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



--
Phil Davis


___
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: copying files

2014-09-06 Thread larry

Thank you Kay

- Original Message - 
From: Kay C Lan lan.kc.macm...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, September 05, 2014 6:57 PM
Subject: Re: copying files



On Sat, Sep 6, 2014 at 6:00 AM,  la...@significantplanet.org wrote:


I need to copy some files from one folder to another in Windows.

I have searched the dictionary and cannot figure it out.


I opened the Dictonary, typed 'move' into the search field and found
'revMoveFolder'. Reading that entry, at the bottom is a User Note by
Rodney that says: to move a file see 'rename'. So I typed 'rename' in
the search field and under that entry it says:

Gives a file or folder a new name or moves it to a new location or both.

___
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


copying files

2014-09-05 Thread larry
Hello All,

I need to copy some files from one folder to another in Windows.

I have searched the dictionary and cannot figure it out.

Is there a way to have thisFile.txt in one folder and copy the file to 
another folder?

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


Re: how to stop mouse clicks from executing?

2014-09-02 Thread larry

Hi Peter,
Thanks very much for the explanation.
Larry

- Original Message - 
From: Peter M. Brigham pmb...@gmail.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tuesday, September 02, 2014 6:12 AM
Subject: Re: how to stop mouse clicks from executing?


On Sep 1, 2014, at 3:50 PM, la...@significantplanet.org 
la...@significantplanet.org wrote:



Hi Paul,
As Richmond says, That's a clever idea.
However, I have no understanding of what a frontScript is and no 
understanding of how to trap those events.

Perhaps you'd be willing to elaborate for me?


Create a button with the following script:

on mousedown
  if put your conditions here then
 -- block mousedown
  else
 pass mousedown
  end if
end mousedown

on mouseup
  if put your conditions here then
 -- block mouseup
  else
 pass mouseup
  end if
end mouseup

Then in an openstack handler put the following line:
  insert script of btn myFrontScript into front

A front script resides at the very front of the message path, and all 
messages will pass to it before going to any controls, cards, or stacks. 
Anything not handled by the frontscript will then pass to the normal 
message path. Any message blocked by the frontscript will stop there 
without getting passed. Frontscripts are very useful for handling special 
actions that must prevail everywhere in your stack.


In most cases you will want to be sure to put the following in your 
closestack handler:

  remove script of btn myFrontScript from front
to be sure that your blocking action does not persist when it is not 
needed.


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



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


how to stop mouse clicks from executing?

2014-09-01 Thread larry
I have a situation in my program where I'm showing the user some stuff.  I do 
not want the user to be able to click with the mouse during this time.
What is the best way to do that?
Actually it would be great if the user couldn't even move the mouse (within my 
program) during this time.

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


Re: how to stop mouse clicks from executing?

2014-09-01 Thread larry

Hi Paul,
As Richmond says, That's a clever idea.
However, I have no understanding of what a frontScript is and no 
understanding of how to trap those events.

Perhaps you'd be willing to elaborate for me?
Thanks,
Larry

- Original Message - 
From: Paul Dupuis p...@researchware.com

To: use-livecode@lists.runrev.com
Sent: Monday, September 01, 2014 12:22 PM
Subject: Re: how to stop mouse clicks from executing?



insert a frontScript containing mouseDown and mouseUp handlers to trap
those events when you want to block them and remove the frontScript when
done

That will still allow mouseStillDown and mouseRelease messages to be
passed for drag operations

On 9/1/2014 2:14 PM, Richmond wrote:


On 1.09.2014 21:03, miked...@gmail.com wrote:

‎ How about setting the cursor to none and locking the cursor‎?


Because the chap may still need the cursor for something else (such as
grab).



Mike

Original Message

From: Richmond
Sent: Monday, September 1, 2014 1:59 PM
To: How to use LiveCode
Reply To: How to use LiveCode
Subject: Re: how to stop mouse clicks from executing?


On 1.09.2014 20:23, la...@significantplanet.org wrote:

I have a situation in my program where I'm showing the user some
stuff. I do not want the user to be able to click with the mouse
during this time.
What is the best way to do that?
Actually it would be great if the user couldn't even move the mouse
(within my program) during this time.

TIA
Larry
___


How about this sort of code in your cardScript:

on mouseUp
if fld NIX contains 1 then
---do nix
end if
end mouseUp

then have an offscreen fld NIX that you put 1 onto when your
slide-show
starts, and you put 'empty' into when it finishes?

of course you could move that script out of the cardScript into all your
buttons on the card
like this:

on mouseUp
if fld NIX contains 1 then
---do nix
else
--do whatever you want this button to do
end if
end mouseUp

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



___
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

screen resolution

2014-08-28 Thread larry
Hi All,
Is there a way to detect screen resolution in Windows?  I'm creating a stack 
that is 1280 x 980, but I know some people still have a 1024 x 768 monitor 
(like my dad.)

I'd like to know if there is a way to automatically or programatically resize 
my stack and the elements in the stack so it will display on the smaller 
monitor.

TIA
Larry
___
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: Helping newcomers anticipate that standalones can't save tothemselves

2014-08-15 Thread larry

Great concept from Paul.
To that I would add this:  I agree 100% that the LC documentation is slowly 
improving, but has a LONG way to go.
Speaking of tutorials, what would be really helpful is a series of videos 
that are screen capture tutorials - someone who knows what they're doing 
literally walking a newbie through a specific lesson.
As you all know, there is a ton of free or for purchase screen capture 
software out there.  I am not sure the best way to organize this idea, but 
if this list could somehow come up with an organized list of topics, then 
one or more programmers on the list could create the video(s) for a 
particular topic and post it somewhere.
Personally, I would recommend a series of videos that range from something 
as simple as how to drag a button onto the IDE and set its properties (even 
I could make that video) to something as complex as creating a plugin for 
the IDE. (for someone else to make!)
If we had a video series such as this, I would absolutely encourage some of 
my (young) grandchildren to learn programming basics with LC and the videos.
I really do believe that one of the great strengths of LC is that a newbie 
can actually make a simple program that actually works - and not just Hello 
World.
I've never taken a programming class, but because of LC (and this list 
helping me) I've written dozens of little programs that I personally use a 
lot and a couple of bigger more sophisticated programs.

That's my opinion of what this list might want to think about.
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Friday, August 15, 2014 9:28 AM
Subject: Re: Helping newcomers anticipate that standalones can't save 
tothemselves



From my own point of view, I struggled trying to understand some of the 
basic principles of using LC (Revolution as it was then), until I finally 
picked apart some sample stacks such as the calculator etc., then a few 
things started to fall in to place.


After that I looked for stacks that had a similar use or techniques to the 
project I wanted to build (I still do to an extent), to find ideas and 
learn about how LC works in ways that I maybe don't know or understand.


My biggest frustration at the time was the disjointed documentation and 
lack of structured tutorials, many people have also made the same comments 
over the years. I feel the tutorials especially have improved and the 
documentation is improving slowly.


Thinking back to when I discovered that I needed an anchor window (or 
splash screen), again I had to do more research to find out what was 
needed until I eventually understood the reasons and principles behind 
this process. Maybe this could be addressed with a good, well structured 
My First Application tutorial that ships with each new user download, or 
a package that's easily visible and readily available for new users to 
download. Currently there is just a free mobile template that tries to 
entice users to download the community version.


I'm sure there are enough teachers and ex-teachers on this list that could 
maybe help with this. A well structured tutorial can help to guide the new 
user with the right techniques from the start.


Moving forward from the anchor window (or splash screen), I also feel a 
series of basic project templates (or starting points) could be useful, 
not as complex as the GLX framework, but something that already has an 
anchor window, preferences, menu bar and a few basic (commented) scripts 
for printing, saving etc.


Obviously these templates would be different for desktop, mobile or 
tablet, but starting from a template rather than a single empty stack 
would eventually help to guide the new user towards a better understanding 
of the techniques needed for each platform.


Paul


On 2014-08-15, at 7:13 AM, Richard Gaskin ambassa...@fourthworld.com 
wrote:


One of the most frequent frustrations new users have with LiveCode is the 
moment they realize the standalone they've built can't save changes to 
its stacks.


Often this happens very late in the process, just after building the 
standalone to test out the work they've been doing, and suddenly 
everything that worked so well in the IDE stops working, with no readily 
discernible cause.


So they come into the forums or this list, and folks mention everything 
from refactoring their work to use an anchor window (or splash screen) 
pattern, or completely rewrite everything to use an external text file or 
database or what have you.


The LiveCode User Guide's section on building standalones includes a bold 
purple callout box explaining this (p 299), but it's a testament to the 
usability of LiveCode that apparently a great many people can use it 
productively for many weeks without ever cracking the User Guide.


Clearly something more is needed.  What should that be?

Putting a note in the Standalone Builder might help, but if they've

sorting

2014-08-09 Thread larry
I have a field I want to sort.
Each line has 4 words.
I want to sort by the first word (ascending) and then do a 2nd sort by the 3rd 
word without changing the order of the first word.

Example:

apple  box
apple  pie
apple  zoo
baby  blue
baby  rattle
baby  zoo
etc.

TIA
Larry
___
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: sorting

2014-08-09 Thread larry

Hello Alex,
OK, in my previous email I gave some hypothetical data.
In my app I actually have a field where the first word is either Advanced or 
Beginner

The 2nd word is a number ranging from 2 to 25, showing how many items.
There are some other words after those, but I'm not concerned about them.

As lines are added to the field, they are in jumbled order.
What I want is this on the sort: (All the Beginners in numeric order, 
followed by all the Advanced in numeric order)

Beginner 1
Beginner 2
Beginner 3 (etc.)
Advanced 1
Advanced 2
Advanced 3 (etc.)

Thanks,
Larry


- Original Message - 
From: Alex Tweedly a...@tweedly.net

To: use-livecode@lists.runrev.com
Sent: Saturday, August 09, 2014 3:51 AM
Subject: Re: sorting


Larry,
can you be more explicit about how it doesn't work ?

Actually, can you explain better what you want to do ? You said you want
to sort by the 2nd and then the 3rd word - but gave an example that
appeared to show sorting by 2nd and 1st - and not even have a 3rd word
in any line.

So how about a slightly less terse description, and an example showing
both before and after and hopefully we can get you to where you want


-- Alex.


On 09/08/2014 09:14, la...@significantplanet.org wrote:

Sorry, that doesn't work

- Original Message - From: Björnke von Gierke b...@mac.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Saturday, August 09, 2014 12:58 AM
Subject: Re: sorting



sort theList by word 2 of each
sort theList by word 1 of each

sort order is retained in-between commands, that's why it works.

On 09 Aug 2014, at 08:24, la...@significantplanet.org wrote:


I have a field I want to sort.
Each line has 4 words.
I want to sort by the first word (ascending) and then do a 2nd sort by 
the 3rd word without changing the order of the first word.


Example:

apple  box
apple  pie
apple  zoo
baby  blue
baby  rattle
baby  zoo
etc.

TIA
Larry
___
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: sorting

2014-08-09 Thread larry
Hello Craig,
That doesn't work either.
 
When I use the following line, it works:
sort lines of field myList numeric by word 2 of each

But then when I try to do two sorts with the following line, I get the error 
message below:
sort lines of field myList descending by word 1 of each  numeric by word 2 of 
each

(Error) button Button: execution error at line 2 (Handler: can't find 
handler) near by, char 74

If I leave out the second by I get a compile error saying I need to put it in.

At this point I am believing that there are lots of theories about how to make 
it work, but nobody actually knows how to make it work.
Thank you anyway,
Larry


- Original Message - 
From: dunb...@aol.com
To: use-livecode@lists.runrev.com
Sent: Saturday, August 09, 2014 7:59 AM
Subject: Re: sorting


 Way back from 1987, and undocumented everywhere except in the user notes in 
 the dictionary here, is this;
 
 
 
 Multiple stable sorts may be implemented directly by concatenating sortKeys:
 
 
 sort container by sortKey1  sortKey2  sortKey3...
 
 
 Sortkey order determines the sorting sequence
 
 
 So you can:
 
 
 sort lines of yourList by word 1 of each  word 3 of each
 
 
 Craig Newman
 
 
 
 -Original Message-
 From: Alex Tweedly a...@tweedly.net
 To: use-livecode use-livecode@lists.runrev.com
 Sent: Sat, Aug 9, 2014 5:52 am
 Subject: Re: sorting
 
 
 Larry,
 can you be more explicit about how it doesn't work ?
 
 Actually, can you explain better what you want to do ? You said you want 
 to sort by the 2nd and then the 3rd word - but gave an example that 
 appeared to show sorting by 2nd and 1st - and not even have a 3rd word 
 in any line.
 
 So how about a slightly less terse description, and an example showing 
 both before and after and hopefully we can get you to where you want 
 
 
 -- Alex.
 
 
 On 09/08/2014 09:14, la...@significantplanet.org wrote:
 Sorry, that doesn't work

 - Original Message - From: Björnke von Gierke b...@mac.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Saturday, August 09, 2014 12:58 AM
 Subject: Re: sorting


 sort theList by word 2 of each
 sort theList by word 1 of each

 sort order is retained in-between commands, that's why it works.

 On 09 Aug 2014, at 08:24, la...@significantplanet.org wrote:

 I have a field I want to sort.
 Each line has 4 words.
 I want to sort by the first word (ascending) and then do a 2nd sort 
 by the 3rd word without changing the order of the first word.

 Example:

 apple  box
 apple  pie
 apple  zoo
 baby  blue
 baby  rattle
 baby  zoo
 etc.

 TIA
 Larry
 ___
 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
___
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: sorting - THANK YOU PAUL!!

2014-08-09 Thread larry

Hi Paul,
After trying MANY suggestions and my own trial and ERRORS, you finally 
provided me with a solution that actually works.

I very much appreciate that you actually tested it.
I have the feeling that many times in this list well-meaning people post 
solutions that they have not tested and therefore often do not work.

Thanks again,
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Saturday, August 09, 2014 9:57 AM
Subject: Re: sorting


Larry,

If I understand right, just change the direction of the second sort to put 
the beginners first, this worked for my test:


on mouseUp
  sort lines of fld sortField by word 2 of each
  sort lines of fld sortField descending by word 1 of each
end mouseUp

Paul

On 2014-08-09, at 4:56 AM, la...@significantplanet.org wrote:


Hello Alex,
OK, in my previous email I gave some hypothetical data.
In my app I actually have a field where the first word is either Advanced 
or Beginner

The 2nd word is a number ranging from 2 to 25, showing how many items.
There are some other words after those, but I'm not concerned about them.

As lines are added to the field, they are in jumbled order.
What I want is this on the sort: (All the Beginners in numeric order, 
followed by all the Advanced in numeric order)

Beginner 1
Beginner 2
Beginner 3 (etc.)
Advanced 1
Advanced 2
Advanced 3 (etc.)

Thanks,
Larry


- Original Message - From: Alex Tweedly a...@tweedly.net
To: use-livecode@lists.runrev.com
Sent: Saturday, August 09, 2014 3:51 AM
Subject: Re: sorting


Larry,
can you be more explicit about how it doesn't work ?

Actually, can you explain better what you want to do ? You said you want
to sort by the 2nd and then the 3rd word - but gave an example that
appeared to show sorting by 2nd and 1st - and not even have a 3rd word
in any line.

So how about a slightly less terse description, and an example showing
both before and after and hopefully we can get you to where you want


-- Alex.


On 09/08/2014 09:14, la...@significantplanet.org wrote:

Sorry, that doesn't work

- Original Message - From: Björnke von Gierke b...@mac.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Saturday, August 09, 2014 12:58 AM
Subject: Re: sorting



sort theList by word 2 of each
sort theList by word 1 of each

sort order is retained in-between commands, that's why it works.

On 09 Aug 2014, at 08:24, la...@significantplanet.org wrote:


I have a field I want to sort.
Each line has 4 words.
I want to sort by the first word (ascending) and then do a 2nd sort by 
the 3rd word without changing the order of the first word.


Example:

apple  box
apple  pie
apple  zoo
baby  blue
baby  rattle
baby  zoo
etc.

TIA
Larry
___
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



___
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


  1   2   3   >