Re: How to store some data in my stack

2012-01-26 Thread Takashi Yoshino
Hi, Ken > Are you *really* using curly quotes around "documents" and "testFile.txt"? > The only reason I ask is that you have straight quotes around "Data" and "no > file yet!", so I figured I'd check. If so, that might be the problem > (although I'd think you'd get an error dialog first, but)…

Re: Cloning stack reset object IDs?

2012-01-26 Thread Pete
Hi Marty, I just cloned a datagrid to see what would happen. I'm afraid all the control ids just carried on from the last one used in the original datagrid so using clone doesn't help. I also tried copying a datagrid from its original card to a card in a different substack. The control ids in th

Re: too many images on one card?

2012-01-26 Thread Nicolas Cueto
> Is there some reason why you can't reference the hundreds or thousands of > images in a folder rather than imbedded in the stack? No reason. In fact, referencing is what I've done for years with my stacks. Only this time, the stack in question was originally designed a year ago for a very limite

Card Buttons in Windows

2012-01-26 Thread Peter Bogdanoff
Hi, I have a bizarre issue that I can't figure out. I have a stack created in OS X that I brought over to Windows. In Windows, card buttons are 12% wider and moved to the right 7 pixels. For example, 4 card buttons, touching side by side. After opening the stack in Windows I see the first butt

Re: too many images on one card?

2012-01-26 Thread stephen barncard
Is there some reason why you can't reference the hundreds or thousands of images in a folder rather than imbedded in the stack? You'd have only the display template stack to load and ony the images needed to be seen on that 'page'. If security is an issue, you could use encrypted files On a ma

Cloning stack reset object IDs?

2012-01-26 Thread Marty Knapp
There has been talk about datagrids possibly running out of object IDs after a while. I'm wondering what happens when you clone a stack with a datagrid - does that buy you back anything? If not, I assume that using the "Cloning Chamber" in the Data Grid Helper plugin would give you a fresh star

Re: too many images on one card?

2012-01-26 Thread Nicolas Cueto
Hi Mark, > Whether the stack performs well really depends on the computer it runs on. > How old and slow are the computers you want to run the stack on? I'm away from those machines right now but, CPU is in the 800MHz area, and memory is 500MB or so. And, to clarify. I'm concerned not about the

Re: too many images on one card?

2012-01-26 Thread Mark Schonewille
Hi Nicolas, 72 Objects aren't that much and I think this isn't much of a problem for LiveCode. If you try to build a standalone, it might take a little longer because of the many objects, but I don't expect any problems besides that. Whether the stack performs well really depends on the comput

Re: too many images on one card?

2012-01-26 Thread Nicolas Cueto
> What exactly are you trying to do? A group gets cloned, and the icons of its two buttons get set to the id of one of those 100's of jpgs. There's a grid of these cloned groups, up to 6x6. So that's up to 36x2 referenced images, with 36 always visible. What I'm also trying to do is to avoid reco

Re: too many images on one card?

2012-01-26 Thread Mark Schonewille
Hi, I remember two cases. First case was someone creating a stack with tens of thousands of 4x4 px images. On a 350Ghz machine, showing and hiding one image took several seconds. On a current 2+ ghz machine it will be faster, but I expect it to still be noticeably slow. I didn't try to create a

too many images on one card?

2012-01-26 Thread Nicolas Cueto
Hello, My 1-card stack has hundreds of small jpgs (about 4kb each), with hundreds more jpgs to be added in the near future. All these jpgs are on one card, and they are in hidden groups. The thing I'm wondering now is, will having so many images all on one card cause runtime problems, despite the

Re: Alternate Form of printKeys()

2012-01-26 Thread Bob Sneidar
Here are the functions. I have tested them and they seem to be fine, but any bug reports would be appreciated. Note that there is another distinct advantage of these functions over the original printKeys(): These functions allow for returns and tabs in the values. I convert them to ascii(30) and

Re: Alternate Form of printKeys()

2012-01-26 Thread Bob Sneidar
Try this in a fresh datagrid with no data: on populateDatagrid put "text1" into theDataA[1]["column1"] put "text2" into theDataA[1]["column2"] put "text3" into theDataA[2]["column1"] put "text4" into theDataA[2]["column2"] put "column1" into theColumns put "Column 1" into t

Re: dgText vs. dgData

2012-01-26 Thread Bob Sneidar
I think it is the way I go about it. I set the dgProps["column names"] to a subset of the actual columns. I don't actually hide a column (is that a property you can set for a datagrid column?) This has the distinct advantage of allowing me to keep much more data in the datagrid than I want or ne

Re: Alternate Form of printKeys()

2012-01-26 Thread Pete
Not disputing the usefullness of your routine or what you are seeing re dgtext/dgdata but that's NOT what I see in any of my datagrids - I see all columns in dgText not just hidden ones. If I didn't, my apps would fail disastrously. So let's try to figure out what's different between your situati

Re: dgText vs. dgData

2012-01-26 Thread Pete
Yes, very odd. I get the same number of columns and the same data listed for dgtext and dgdata including all the hidden columns. Are the columns that don't turn up for you in dgtext hidden or have some different characteristic from those that do? I'm on LC 5.0.2 on a Mac. Pete On Thu, Jan 26,

Alternate Form of printKeys()

2012-01-26 Thread Bob Sneidar
Hi all. I just wrote an alternate form of printKeys which some may find useful. Normally printKeys returns data in this form: 1 conferencename: amount: 0 enddate: 2012-01-15 conferenceid: 0 siteid: 2 baseunit: day uniqueid: 8 clientid: 0 starttime: 4:

Re: Trouble with 'there is a'

2012-01-26 Thread Mark Schonewille
Hi Graham, 161 means "error in source expression". Probably, it is saying that "if there is a folder (the defaultFolder)" can't be parsed into something that makes sense, which is correct because it is only the first part of an if-then-else control structure. If you remove the "if" then LiveCod

Re: Trouble with 'there is a'

2012-01-26 Thread Devin Asay
Graham, The problem is you're embedding a partial 'if' structure in your statement. Leave out the 'if': put (there is a folder (the defaultFolder)) HTH Devin On Jan 26, 2012, at 3:13 PM, Graham Samuel wrote: > I'm using LS 5.0.2. on Windows XP (OK, running under Parallels on a Mac). > I

Trouble with 'there is a'

2012-01-26 Thread Graham Samuel
I'm using LS 5.0.2. on Windows XP (OK, running under Parallels on a Mac). I'm getting unexpected results from the 'there is..' series of functions/commands - the dictionary says they're implemented as functions, which I can understand. As a very simple test, in the message box I put: put (i

Re: Persistent Variables during recursion

2012-01-26 Thread Bob Sneidar
Thanks John I just had figured out that the way to do it was to pass the values as arguments in the recursion. Bob On Jan 26, 2012, at 12:34 PM, John Craig wrote: > Hi, Bob. Here's one way of doing it. In the first call, pIndex is empty, so > some initialization is performed. The paramete

Re: dgText vs. dgData

2012-01-26 Thread Bob Sneidar
Odd then that this command: on datavstext put the dgText["true"] of group "dgTableData" into theResult put cr & "-" & cr after theResult put the dgData of group "dgTableData" into theDataA put printKeys(theDataA) after theResult put theResult end datavstext should return t

Re: Persistent Variables during recursion

2012-01-26 Thread Alex Tweedly
Easiest way I know is to have - your variables be either global or script-local - add an additional parameter, used only for recursive calls. so for the public interface, used from anywhere else, you do something like put myFunction(a,b,c) into myVar but within the function itself, you do

Re: Persistent Variables during recursion

2012-01-26 Thread Pete
You need to pass the persistent variables as parameters to the recursive function. When you call the function for the first time, just make sure the variables are empty, then when you call it from within itself, they'll get passed with whatever the values are at the time of the call. Pete On Thu,

Re: A few strange behaviors accessing DBs

2012-01-26 Thread Pete
Normally yes, but the that function requires you to enclose the whole variable name in quotes. On Thu, Jan 26, 2012 at 11:12 AM, Bob Sneidar wrote: > Shouldn't you quote the non-numeric keys? myArray[1]["id"] > > Bob > > > On Jan 26, 2012, at 10:01 AM, Pete wrote: > > > Assuming myArray exists a

Re: dgText vs. dgData

2012-01-26 Thread Pete
Not sure what you mean by "displayed", but f you mean columns that are not hidden, that's not my experience - I see hidden columns and all rows in dgText. Pete On Thu, Jan 26, 2012 at 11:08 AM, Bob Sneidar wrote: > Hi all. Here is an interesting twist on the issue of whether or not to use > dgTe

Re: Persistent Variables during recursion

2012-01-26 Thread John Craig
Hi, Bob. Here's one way of doing it. In the first call, pIndex is empty, so some initialization is performed. The parameters are all passed with each recursive call, but pSame is always the same value. HTH :) on mouseUp test "12345", 1, 99 end mouseUp command test pData, pChange, p

Re: HTML5 REPORT

2012-01-26 Thread stephen barncard
one might check the report anyway, valuable no matter what you use. cop their links and test your favorite. (if they've done their crossdomain.xml) On 26 January 2012 11:56, Andre Garzia wrote: > Stephen, > > I am partial of mediaelementjs... check it out at: > > I used JW Player for a long tim

Persistent Variables during recursion

2012-01-26 Thread Bob Sneidar
Hi all. This is my first foray into recursive functions. There are two variables I would like to be persistent for as long as the script is running, but I want them to be empty the first time I call the recursive function. I have tried declaring the variables as local, but each time the function

Re: HTML5 REPORT

2012-01-26 Thread Andre Garzia
Stephen, I am partial of mediaelementjs... check it out at: I used JW Player for a long time, I switched to MediaElementJS and never looked back. http://mediaelementjs.com/ =) On Thu, Jan 26, 2012 at 5:42 PM, stephen barncard wrote: > (please forget the double post if it appears, but I didn't

HTML5 REPORT

2012-01-26 Thread stephen barncard
(please forget the double post if it appears, but I didn't see this delivered to the list) This new report from Longtail , the developers of the HTML5 video and audio player, summarized the state of HTML5 media today. THE STATE OF HTML5 VIDEO It's quite comp

Re: Android Programming API level and device compliance

2012-01-26 Thread Alejandro Tejada
Hi Jacke, J. Landman Gay wrote > > It doesn't exactly say what Android levels are supported, but there is a > good comparison chart on Wikipedia that tells the OS version and other > info about lots of devices: > > ; > > You could

Re: A few strange behaviors accessing DBs

2012-01-26 Thread Mark Schonewille
Hi Pete, I believe all those separate database-related functions are just confusing and shouldn't exist in the first place. One simple command to execute all MySQL commands should me sufficient. There is no reason why there would be any distinction between revExecuteSQL and revDatabaseQuery for

Re: A few strange behaviors accessing DBs

2012-01-26 Thread Bob Sneidar
Shouldn't you quote the non-numeric keys? myArray[1]["id"] Bob On Jan 26, 2012, at 10:01 AM, Pete wrote: > Assuming myArray exists and I specify > "myArray[1][id]" as the destination for the returned data, what ends up in > myArray is a key of "1][id" with the returned value. Arrays with a sin

dgText vs. dgData

2012-01-26 Thread Bob Sneidar
Hi all. Here is an interesting twist on the issue of whether or not to use dgText or dgData when working with datagrids. dgText will only give you the DISPLAYED data in the datagrid as text. The dgData will give you ALL the data in the datagrid as an array, INCLUDING the columns that are NOT bei

Re: Scrollbars of option menu buttons

2012-01-26 Thread Pete
OK, might still be able to try it, just got a Windows box for testing. Pete On Thu, Jan 26, 2012 at 10:08 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > He Pete, we're talking Windows here. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software E

Re: Scrollbars of option menu buttons

2012-01-26 Thread Mark Schonewille
He Pete, we're talking Windows here. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On

Re: Scrollbars of option menu buttons

2012-01-26 Thread Pete
Hi Mark, Option menus don't have scrollbars do they? At least not on OS X) Do you mean comboboxes? If so, all works fine for me (on OS X). Pete On Thu, Jan 26, 2012 at 9:37 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi, > > I just got a complaint about non-functional scro

Re: Android Programming API level and device compliance

2012-01-26 Thread J. Landman Gay
On 1/26/12 11:42 AM, Alejandro Tejada wrote: Hi All, Recently, looking at Android API Levels: http://developer.android.com/guide/appendix/api-levels.html I noticed that the minimal level needed for my application is Level 4, corresponding to Android 1.6 How I could learn about device compliance

A few strange behaviors accessing DBs

2012-01-26 Thread Pete
Thought I would pass on a few weirdnesses I've come across recently while accessing databases from LC. Some of these are outside the day-to-day db access sphere but may be of interest to anyone developing db tools with LC. I came across all these while accessing SQLite databases. The revDatabase

HTML5 VIDEO/AUDIO REPORT FROM LONGTAIL (JWPLAYER)

2012-01-26 Thread stephen barncard
This new report from Longtail , the developers of the HTML5 video and audio player, summarized the state of HTML5 media today. THE STATE OF HTML5 VIDEO It's quite complete, with many example test cases. Really well done. I've experimented with almost every v

Re: Scrollbars of option menu buttons

2012-01-26 Thread Mark Schonewille
Hi Guglielmo, I tested it with a new stack on XP and got the same results. Therefore, I'm now asking for confirmation on the list. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogramme

Re: Forbidden data in a Data Grid?

2012-01-26 Thread Bob Sneidar
So might I suggest now is a great time to get away from using dgText? dgData (an array) is a much better way of accessing the data in a datagrid. If you can retrieve the data from your database as an array, then you only need to set the dgData of the datagrid to that array. The form will be a nu

Re: Scrollbars of option menu buttons

2012-01-26 Thread Guglielmo Braguglia
Because is my complaint ... ... I want just to add that this happen with the 'Installer Maker Plugin', on the language selection menu, on Win 7 64 bit and *NOT *on OS X, both running LiveCode 5.0.2 Regards, Guglielmo On 26.01.2012 18:37, Mark Schonewille wrote: Hi, I just got a complaint a

Android Programming API level and device compliance

2012-01-26 Thread Alejandro Tejada
Hi All, Recently, looking at Android API Levels: http://developer.android.com/guide/appendix/api-levels.html I noticed that the minimal level needed for my application is Level 4, corresponding to Android 1.6 How I could learn about device compliance to these characteristics without buying the de

Scrollbars of option menu buttons

2012-01-26 Thread Mark Schonewille
Hi, I just got a complaint about non-functional scrollbars of option menus. If the menuLines < number of lines of the text then a scrollbar appears but it is impossible to scroll. Does anyone else see this? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering H

Re: Does 'export image to file' give any warnings?

2012-01-26 Thread gpb01
Graham Samuel-4 wrote > > I'm using 'export image' to put an image into a file without invoking a > 'save' dialog - this is what my user wants. However, I can't see any > obvious way of knowing that the new image has the same name has an > existing one and would therefore overwrite it. I set up a

Re: How to store some data in my stack

2012-01-26 Thread Ken Ray
On Jan 25, 2012, at 10:55 PM, J. Landman Gay wrote: >>> put specialFolderPath(“documents”)& "/"& “testFile.txt” into tFile >>> if there is a file tFile then >>>put URL("file:"& tFile) into fld "Data" >>>put the result into fld "msg" >>> else >>> answer "No file yet!" >>> end if >>>

Re: Does 'export image to file' give any warnings?

2012-01-26 Thread Ken Ray
On Jan 26, 2012, at 11:18 AM, Graham Samuel wrote: > I'm using 'export image' to put an image into a file without invoking a > 'save' dialog - this is what my user wants. However, I can't see any obvious > way of knowing that the new image has the same name has an existing one and > would ther

Does 'export image to file' give any warnings?

2012-01-26 Thread Graham Samuel
I'm using 'export image' to put an image into a file without invoking a 'save' dialog - this is what my user wants. However, I can't see any obvious way of knowing that the new image has the same name has an existing one and would therefore overwrite it. I set up a button that does on mouseUp

SoCal LUG meeting: Feb 2

2012-01-26 Thread Richard Gaskin
The next SoCal LUG meeting will be one week from today: Where: Burger Continental, back room 535 S. Lake Avenue Pasadena CA 91101 http://www.burgercontinentalpasadena.com/home.html When: Thursday, February 2 7:00PM Since the meeting falls on Groundhog Day I've proposed we use that as a theme f

Android setup issues

2012-01-26 Thread Michael Doub
Well, my HTC inspire arrived yesterday so I decided to start the android learning process. I created an AVD with the following attributes: Target: Android 2.3.3 SD card: 120 MiB Skin: Built In WVGA800 Hardware: Abstracted LCD Density 240. (This was a default, no idea what it is) Number of