Re: properties vs local variable

2014-03-10 Thread J. Landman Gay
On 3/10/14, 5:43 PM, Peter Haworth wrote: If I remember the genesis of all this correctly, Terence wants to use a table made up of individual fields for each column because, amongst other things, you can't right justify data within a tabstop. I'd like to see an image of what it's supposed to be

Re: Crowd Funding Enhancements

2014-03-10 Thread J. Landman Gay
On 3/10/14, 9:04 PM, Peter Haworth wrote: Here's one I'd like to see: the use of "each" in conjunction with chunk expressions. For example: delete item 4 of each line of tVar put item 1 to 3 of each line of tVar into tSave replace word 1 of each item of each line with "xyz" in tVar Maybe eve

Re: Crowd Funding Enhancements

2014-03-10 Thread Peter Haworth
Here's one I'd like to see: the use of "each" in conjunction with chunk expressions. For example: delete item 4 of each line of tVar put item 1 to 3 of each line of tVar into tSave replace word 1 of each item of each line with "xyz" in tVar Maybe even: put tArray[each key]["LastName"] & retur

Re: properties vs local variable

2014-03-10 Thread Peter Haworth
And pretty soon, he'll back to what the datagrid does :-) Not that there's anything wrong with that but there's a crying need for something that fits between LC's basic table object and the datagrid when the requirements warrant it. Pete lcSQL Software Home of lcStackBrowse

Re: properties vs local variable

2014-03-10 Thread Alex Tweedly
On 10/03/2014 22:43, Peter Haworth wrote: If I remember the genesis of all this correctly, Terence wants to use a table made up of individual fields for each column because, amongst other things, you can't right justify data within a tabstop. So he does need fields. He can take advantage of in

Re: properties vs local variable

2014-03-10 Thread J. Landman Gay
On 3/10/14, 5:43 PM, Peter Haworth wrote: If I remember the genesis of all this correctly, Terence wants to use a table made up of individual fields for each column because, amongst other things, you can't right justify data within a tabstop. Oh, okay. Then yes, he needs fields. -- Jacqueline

Re: properties vs local variable

2014-03-10 Thread Peter Haworth
If I remember the genesis of all this correctly, Terence wants to use a table made up of individual fields for each column because, amongst other things, you can't right justify data within a tabstop. Pete lcSQL Software Home of lcStackBrowser

Re: properties vs local variable

2014-03-10 Thread J. Landman Gay
On 3/10/14, 4:41 PM, Peter Haworth wrote: Some folks on this list have shown me in the past how to create an image with its fillgradient set in such a way that it has alternating lines in the required colors at the same height as the line height you are dealing with, then setting it as a backgrou

Re: properties vs local variable

2014-03-10 Thread Peter Haworth
I'm guessing the opaque property of the fields is true - try setting it false and see what happens. Also just made another post with a way to do this without setting any line colors. Pete lcSQL Software Home of lcStackBrowser and S

Re: properties vs local variable

2014-03-10 Thread Peter Haworth
There's another approach to this that does away with the need to set colors at all. Some folks on this list have shown me in the past how to create an image with its fillgradient set in such a way that it has alternating lines in the required colors at the same height as the line height you are de

Re: properties vs local variable

2014-03-10 Thread Terence Heaford
Thanks for your help. It did not work initially but a bit of google identified the # is not required with RGB colours. However, when using this it only colours the bgcolor behind the text and not the whole field. Here is my test script. put "255,255,255" into tFontColor put "62,117,215" int

Re: properties vs local variable

2014-03-10 Thread Mark Schonewille
Hi Terry, Keep us posted. I'm really curious which solution appears to be significantly faster. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Conve

Re: properties vs local variable

2014-03-10 Thread Terence Heaford
Hi Mark, Thanks once again. All your comments are valid and there is certainly no need to change the field colour unless tSelectedData is not true. So, I think your method is marginally quicker but is probably held back from being even quicker by the extra if then constructs. I will now explor

Re: properties vs local variable

2014-03-10 Thread Peter Haworth
A sample line would be: colorspec and bgcolor spec are a hash mark followed by three hex numbers representing the rgb color. I think you can use a color name too but not sure. So using one of your examples you would set the htmltext of field x to " this is my text Pete lcSQL Software

Re: properties vs local variable

2014-03-10 Thread Mark Schonewille
Hi Terry, Since the arrays don't add any efficiency in this case (as expected), perhaps it is a good idea to use a different approach. I understand that even fields should always have backColor 62,117,215 and white as the foreColor, unless line tLineNum of tSelectedData is not true. If line t

Re: Cursor image

2014-03-10 Thread Paul Hibbert
No need for GIMP in this case… export snapshot from img "myCursorImg" to tImg as PNG set the blendLevel of img "myCursorImg" to 0 put tImg into img "myCursorImg" Also you could store the text of the original image in a custom prop to reset it if necessary. Paul On 2014-03-10, at 11:3

Re: properties vs local variable

2014-03-10 Thread J. Landman Gay
On 3/10/14, 2:29 PM, Terence Heaford wrote: Are you suggesting I can change the colour of the field using the htmlText and the merge command? Yes. A sample line would be useful because I am not familiar with using the htmlText. I am familiar with merge. Okay. Usually I set up styling, color

Re: properties vs local variable

2014-03-10 Thread Terence Heaford
I’m trying to understand your solution but having looked at htmlText of field I am not getting it. I follow that changing the colour of the field is time consuming. Are you suggesting I can change the colour of the field using the htmlText and the merge command? A sample line would be useful b

Re: location of a chunk in a field

2014-03-10 Thread Chris Sheffield
Yes, formattedRect looks right. Thanks, Scott. On Mar 10, 2014, at 11:50 AM, Scott Rossi wrote: > Hi Chris: > > Maybe formattedRect? > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > >> On Mar 10, 2014, at 10:43 AM, Chris Sheffield wrote: >> >> I seem to remembe

Re: Cursor image

2014-03-10 Thread Richmond
On 10/03/14 18:34, Peter Haworth wrote: I'm setting the cursor to the ID of an image that has its blendlevel set to 60 but the image appears as if its blendlevel were 0. I'm guessing there are some limitations on how an image is displayed when used as a cursor? Pete Of course one of the ways

Re: location of a chunk in a field

2014-03-10 Thread J. Landman Gay
On 3/10/14, 12:50 PM, Scott Rossi wrote: Maybe formattedRect? That's better than my suggestion. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode maili

Re: location of a chunk in a field

2014-03-10 Thread J. Landman Gay
Chris Sheffield wrote: I seem to remember a function or property that would give me the location of a chunk in a field. I have a field where I want to find the location for any given word in that field. SelectedLoc? It does require a selection though. -- Jacqueline Landman Gay | j

Re: location of a chunk in a field

2014-03-10 Thread dunbarx
Hi. Would the "selectedLoc" help" But when you say "loc" do you in fact mean something like "the nineteenth word in line 3"? In other words, a chunk gadget as opposed to a cartesian gizmo? Craig Newman -Original Message- From: Scott Rossi To: How to use LiveCode Sent: Mon, Ma

Re: OT: limitations in paid iOS apps

2014-03-10 Thread Dale Hurtt
Have you considered using In-App Purchases to sell additional "user licenses"? That way there is no hard limit on users, but you can still meet your requirement of licensing each user and can accommodate the teacher that uses a single device for more than six students. Personally I do not know if

Re: location of a chunk in a field

2014-03-10 Thread Scott Rossi
Hi Chris: Maybe formattedRect? Regards, Scott Rossi Creative Director Tactile Media, UX Design > On Mar 10, 2014, at 10:43 AM, Chris Sheffield wrote: > > I seem to remember a function or property that would give me the location of > a chunk in a field. I have a field where I want to find the

location of a chunk in a field

2014-03-10 Thread Chris Sheffield
I seem to remember a function or property that would give me the location of a chunk in a field. I have a field where I want to find the location for any given word in that field. Is this possible? Did I dream it? :-) I suppose it’s possible I had a custom function for this at one point and tha

Re: OT: limitations in paid iOS apps

2014-03-10 Thread Colin Holgate
In this app: https://itunes.apple.com/us/app/the-big-moving-adventure/id740679545?mt=8 the users can set up a custom avatar (see the second screenshot). On starting the app the user can either start a new game or they can find their avatar by swiping a car (that appears where you see the truck)

Re: properties vs local variable

2014-03-10 Thread dunbarx
Alex. I had tried lines 3, 3000 and 7500. I did indeed only report the first value, likely because I wanted to slant my point about different types of processes overwhelming others in my favor. It is a character flaw. But I got very similar results with the other two: For line 3: 0 and 2

OT: limitations in paid iOS apps

2014-03-10 Thread Chris Sheffield
This isn’t directly LiveCode-related, but I’m looking to get some opinions on this from anyone who’s willing to share. I’m in the middle of working on a new app for my company. This is an educational app that could be used in either a classroom or home setting. It’s the type of app that require

Re: how to convert .csv to .xlsx with LC without Excel installed? (SpreadLib)

2014-03-10 Thread Curry Kenworthy
I talked to Matthias offlist but posting it here in case anyone else needs it: SpreadLib 0.2001 already had a rudimentary implementation of the export feature. See the "Export" section of the documentation file for details. http://curryk.com/Spreadlib02001.zip Export will be much improved

Re: properties vs local variable

2014-03-10 Thread J. Landman Gay
On 3/10/14, 7:15 AM, Terence Heaford wrote: repeat for each item tCellData in tFldData put tCellData into fld tFldNum of me set the backgroundColor of fld tFldNum of me to tBackColor set the foregroundColor of fld tFldNum of me to tForeColor add 1 to tFld

Re: properties vs local variable

2014-03-10 Thread Alex Tweedly
On 10/03/2014 15:33, dunb...@aol.com wrote: I tried a simple test. I placed 100,000 lines of text into a custom property and into a variable. I timed how long it took to directly access a single line, 10,000 times. It took 2 ticks for the custom property, and almost no time at all for the vari

Cursor image

2014-03-10 Thread Peter Haworth
I'm setting the cursor to the ID of an image that has its blendlevel set to 60 but the image appears as if its blendlevel were 0. I'm guessing there are some limitations on how an image is displayed when used as a cursor? Pete lcSQL Software Home of lcStackBrowser

Re: set the location of an iPad menuPick

2014-03-10 Thread Jim sims
Thanks for sending this Chris! Might be a few things there i can use. sims On Monday, March 10, 2014, Chris Sheffield wrote: > Sims, > > Not sure if you ever got a response to this or not, but as far as I know > there's no way to set the position using the built-in commands. However, > check o

Re: how to convert .csv to .xlsx with LC without Excel installed?

2014-03-10 Thread Matthias Rebbe | M-R-D
Ah, now i understand what you meant. The new .xlsx files are not just .xml files. Prior to Excel 2007 they used to be just xml. But with Excel 2007 and higher they are zip-archives (with .xlsx extension) now which contain a little bit more than just an xml file. They are now in the OpenOffice

Re: properties vs local variable

2014-03-10 Thread dunbarx
I tried a simple test. I placed 100,000 lines of text into a custom property and into a variable. I timed how long it took to directly access a single line, 10,000 times. It took 2 ticks for the custom property, and almost no time at all for the variable. So the custom property is slower, but

Re: properties vs local variable

2014-03-10 Thread Terence Heaford
Mark, Set thText is just a setProp routine in the group to receive the return/tab delimited data. thText then sets a custom property of the group plus the scrollbar settings depending on the number of lines in the data displayData is the only routine that places data into the fields. All the

Re: properties vs local variable

2014-03-10 Thread Mark Schonewille
Hi Terry, The split command itself doesn't slow it down, because that happens outside the repeat loop. However, arrays appear not to be the fastest way to access data and apparently in this case the removal of the counter was not enough to compensate for the addition of the arrays. I see no

Re: how to convert .csv to .xlsx with LC without Excel installed?

2014-03-10 Thread Roger Eller
Yes, that is why I said it gets you half way there. :) Your subject implies that you are starting from a CSV file, so I would expect that you could read the data into LC with Richards function, then export as XML. Rename the file with a .xlsx extension, and see what Excel thinks of it. ~Roger

Re: properties vs local variable

2014-03-10 Thread Terence Heaford
Hi Mark, Have tried your adjustments to my script and it was a little slower than the original. Could that be because of the split command? I read the data in from an SQLite file in the return/tab delimited format. put revDataFromQuery(tab, return, the uDB of this stack, tSQL) into tData then

Re: set the location of an iPad menuPick

2014-03-10 Thread Chris Sheffield
Sims, Not sure if you ever got a response to this or not, but as far as I know there’s no way to set the position using the built-in commands. However, check out Monte’s mergPop external at http://mergext.com/home/mergpop/. You might be able to use the mergPopMenu command to accomplish what you

Re: how to convert .csv to .xlsx with LC without Excel installed?

2014-03-10 Thread Matthias Rebbe | M-R-D
Thanks Roger, i already knew this article. This article is a „must read“ for everyone who exports data to a .csv file. I need to create a real .xlsx file, not a .csv which can be imported into Excel. I have numeric fields with numbers with leading zeros. These numbers would loose their leading

Re: properties vs local variable

2014-03-10 Thread Terence Heaford
Hi Mark, Thanks for your comments, will give it a try. All the best Terry On 10 Mar 2014, at 14:10, Mark Schonewille wrote: > Hi Terry, > > Can you use arrays? They aren't necessarily faster, but in this case they > might be. Although you have a repeat-for loop, you're still updating a >

Re: how to convert .csv to .xlsx with LC without Excel installed?

2014-03-10 Thread Roger Eller
Hi Matthias, This will get you half way there, thanks to Richard Gaskin and Alex Tweedly. I use this function to bring in CSV files all the time. Works great! http://www.fourthworld.com/embassy/articles/csv-must-die.html ~Roger On Mon, Mar 10, 2014 at 9:44 AM, Matthias Rebbe | M-R-D < matthi

Re: properties vs local variable

2014-03-10 Thread Mark Schonewille
Hi Terry, Can you use arrays? They aren't necessarily faster, but in this case they might be. Although you have a repeat-for loop, you're still updating a counter to keep track of your second data list. Using arrays just might speed things up, because the engine won't need to count things fro

how to convert .csv to .xlsx with LC without Excel installed?

2014-03-10 Thread Matthias Rebbe | M-R-D
Hi, i know there is Zryip´s really excellent Excel Library for Livecode. But for some reason i need to convert a .csv file to .xlsx with Livecode on a machine where no Excel is installed or will be installed. Does anyone have already done this with Livecode and would like to share her/his sol

Re: [OT] or may be not..

2014-03-10 Thread Thierry Douez
> Did you notice the very prominent Flash menu along the top? > Thanks Colin, Since 2011: http://wiki.scratch.mit.edu/wiki/Scratch_2.0 Scratch has been completely rewritten in Adobe Flash for version 2.0 but still runs projects from older versions of Scratch. It's still completely free and with

Re: [OT] or may be not..

2014-03-10 Thread Colin Holgate
Did you notice the very prominent Flash menu along the top? On Mar 10, 2014, at 4:34 AM, Thierry Douez wrote: >> Interesting. Built in flash. >> Bill > > Nope, Built in Scratch (MIT) ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: properties vs local variable

2014-03-10 Thread Terence Heaford
Mark, Thanks for your comments. I am not having a particular problem, just trying to write efficient methods. I have created my own text table in a group consisting of 6 cols (fields) * 20 rows (fields) to try and speed up the scrolling when using a DG. This has worked with a scrolling speed i

Re: Cocoa

2014-03-10 Thread Terence Heaford
I can inform anyone interested that runrevmark has replied to my post in the forum. It can be found here: http://forums.runrev.com/viewtopic.php?f=66&t=18504&p=98667#p98667 As I suspected it is not intended to have a “FULL” (for want of a better word) port of LC to Cocoa. It is the backend, w

Here's an odd thing.

2014-03-10 Thread Richmond
I just tried to install Livecode Community 6.6 rc-1 on a newly installed Linux system (Xubuntu 12.04.4) and when I opened it for the first time it offered me an upgrade to version 6.5.2. Maybe because 6.5.2 is a stable version while 6.6 rc-1 is not. Richmond. ___

Re: properties vs local variable

2014-03-10 Thread Mark Schonewille
Hi Terry, It shouldn't matter much. Both propeties and variables exist in memory, if the stack containing the property is loaded into memory. If the stack it on disk but not in memory, it will be loaded the first time you access the property and may call a small delay. If you have many neste

properties vs local variable

2014-03-10 Thread Terence Heaford
I am just a beginner with LC and don’t want to spend hours reinventing the wheel so was hoping that someone can advise me which of the following is the quicker. I could go down the milliseconds route with every script I produce but…. Is there a general rule that says put the uRows of me into t

Re: [OT] or may be not..

2014-03-10 Thread Thierry Douez
> Interesting. Built in flash. > Bill Nope, Built in Scratch (MIT) Written in Squeak, an open-source implementation of Smalltalk-80, Scratch runs atop a virtual machine, ports of which exist for several flavors of Linux, Mac OS, UNIX, and Windows. Regards, Thierry >> http://www.youtube.com/wat