Re: Using Arrays

2011-06-03 Thread Van Brollini
Mike helped me out with that. Results so far are quite impressive. He has ideas on how to speed things up. The spreadsheet runs in "seconds" so a fraction of second or 2 is so much faster, can't complain at all :-) - Start Original Message - Sent: Fri, 3 Jun 2011 23:35:15 -0700 From: M

Re: My first Livecode iOS App with Externals (SQLite)

2011-06-03 Thread Darren Jones
I'm pretty sure that when you issue an update to an App, all reviews are cleared?! Sent from my iPhone ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Naive question 666

2011-06-03 Thread David C.
> I am gently assembling a fairly large collection of image libraries by > "stealing" icons > and so on from Open Source Apps and Icon collections. > > But don't know how to export those image libraries so they are portable. > > The Documentation says "see the section on Object & Image Libraries";

Re: Using Arrays

2011-06-03 Thread Mark Wieder
Van- Friday, June 3, 2011, 9:38:47 PM, you wrote: > Many thanks to Mike and Mark for helping me get my array and > datagrid issues resolved to date. > The latest issue is in calculations. I need to have calculations > done in floating numbers and then the array finishes calculating it > truncat

RE: LC Interaction with Web Browser Instance

2011-06-03 Thread Slava Paperno
Hi Bob! I've been playing with revBrowser and making discoveries for the past week. There are people on this list who know these things a lot better than I. But here is what I would suggest you try--based on what I've learned from these good folks and tried out myself. At the end of the JS functi

revMedia

2011-06-03 Thread Richmond Mathewson
I love the way the RunRev website has 'revMedia (Free)' listed as a possible download in the drop-down menus; slightly disappointing to find that that is a porky though. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Naive question 666

2011-06-03 Thread Richmond Mathewson
I am gently assembling a fairly large collection of image libraries by "stealing" icons and so on from Open Source Apps and Icon collections. But don't know how to export those image libraries so they are portable. The Documentation says "see the section on Object & Image Libraries"; but there

LC Interaction with Web Browser Instance

2011-06-03 Thread Bob Cole
I have a web browser instance in a card displaying a html page; looks good. To keep it simple, lets say the page has a button that adds two numbers; works correctly. The button does not cause a page reload. I would like to capture the fact that the HTML button was clicked in the browser and I'd

Re: Using Arrays

2011-06-03 Thread Van Brollini
Many thanks to Mike and Mark for helping me get my array and datagrid issues resolved to date. The latest issue is in calculations. I need to have calculations done in floating numbers and then the array finishes calculating it truncates at the 6th decimal. I need to go out to at least E-23.

RE: resumeStack and revBrowser

2011-06-03 Thread Slava Paperno
Work like a charm! Thanks, Jacqueline, Slava > > What do you folks use for this purpose, i.e. when you > click the Run button and want certain values to be reset to defaults? > > I've never needed to do that, but check out the "newTool" message. It > is sent whenever you switch tools, and it sh

Re: Share revlets

2011-06-03 Thread J. Landman Gay
On 6/3/11 2:13 PM, Melitón Cardona Torres wrote: How can I share revlets with other people? Could you indicate me where I can find concrete instructions? My security settings are right and I can see my revlets in my computer (they work perfectly) but when I share them with other people via Mobil

Omegabundle for LiveCode - Just 3 Days Left

2011-06-03 Thread Lynn Fredricks
There are only three days left for Omegabundle for LiveCode! Get $4000 of product including Livecode Pro Mobile, for the same price of LiveCode Pro Mobile; or, save $100 and get the bundle without LiveCode. Purchasers can also take part in a survey to get an additional $99 icon expansion set for

Re: Using Arrays

2011-06-03 Thread Van Brollini
on mouseUp get the dgdata of group "DGTester" put it into tArray put the keys of tArray Repeat with x = 1 to 1249 put "3.76" into tArray[x]["usl_lcb"] end Repeat set the dgData of group "DGTester" to tArray end mouseUp putting a breakpoint at the end mouseUp shows that 3.76 was suc

Re: Using Arrays

2011-06-03 Thread Mike Bonner
Yep, what mark said. :) Sorry I wasn't as clear as I should have been. > > -- it's a two-dimensional array > -- in C++ it's called a hash > -- dgData[column][row] will access a single element > > put the dgData of group "YourGrid" into tArray > > put the keys of tArray -- this will give you the r

Re: Using Arrays

2011-06-03 Thread Mark Wieder
Van- Friday, June 3, 2011, 6:57:01 PM, you wrote: > If you then *put the keys of tArray[1]* you will see the > column keys, col1 and col2, so to get a specific cell is as you've been > trying to do with the dgtext tarray[1]["col1"] will get the data from row 1 > col 1. > I do not get this beh

Re: Using Arrays

2011-06-03 Thread Van Brollini
If you then *put the keys of tArray[1]* you will see the column keys, col1 and col2, so to get a specific cell is as you've been trying to do with the dgtext tarray[1]["col1"] will get the data from row 1 col 1. I do not get this behaviour. This only gives me the column keys, not column keys

Re: Using Arrays

2011-06-03 Thread Van Brollini
I have spent 2 weeks trying to figure this out by reading these manuals. That is why I gave up and went to arrays, figuring I could use my knowledge of C to help. What you suggested so far works, but can't understand in what you send how to access individual elements in the array - Start Or

Re: Using Arrays

2011-06-03 Thread Van Brollini
- Start Original Message - Sent: Fri, 3 Jun 2011 19:36:36 -0600 From: Mike Bonner To: How to use LiveCode Subject: Re: Using Arrays > dgtext isn't an array value, to do what you want you need to get the dgdata > > For example, if you have a simple table grid with 2 columns, col1 and col

Re: Using Arrays

2011-06-03 Thread Mike Bonner
Forgot to mention, once you adjust the array you can then set the datagrid to the new values by setting the dgdata of group "yourgrid" to tArray. Depending on what you're doing, it may be more efficient to just update values directly in the datagrid. Here are some base links to datagrid lessons t

Re: Using Arrays

2011-06-03 Thread Mike Bonner
dgtext isn't an array value, to do what you want you need to get the dgdata For example, if you have a simple table grid with 2 columns, col1 and col2 with 3 records, to get the array back out do *get the dgdata of group "yourdatagridgroupname" * *put it into tArray* At this point, knowing whats

Using Arrays

2011-06-03 Thread Van Brollini
I have a datagrid of 1250 by 28 that has been successfully uploaded during the creation of the datagrid. I can use this line put the dgText of group "DGTester" into tArray to move the datagrid into an array. During debug process with breakpoint, this is successful. Now when I try to read, modi

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread Andy Henshaw
Thanks everyone. I understand what you mean about the free / paid issue, its really a guessing game with quite a lot of luck involved imo. Ive read normally for a standalone it seems best to push an app out free for the first 24 hours, if you get sufficient downloads it pushes you into the

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread John Craig
Looks superb, Andy - I've downloaded it and first impressions are excellent :) On 03/06/2011 18:39, Andy Henshaw wrote: I have just had my first Livecode iPhone app using externals (sqllite) approved for the App Store. The App is 'Tracker2Go' ( http://itunes.apple.com/us/app/tracker2go/id4

Tracker2Go Review

2011-06-03 Thread Bob Sneidar
I posted a glowing review of the app in the App store, not because the author is a fellow developer on this list, but because I was very impressed with the app he produced. Let's see more of this from our iApp developers. Bob ___ use-livecode mailing

Re: Pretty Print arrays

2011-06-03 Thread Pete
Trevor Devore has one named printKeys - I think he posted the code not too long ago so you can probably find it by searching the archives. Pete Molly's Revenge On Fri, Jun 3, 2011 at 1:53 PM, Todd Geist wrote: > Hello > > Before I set out to re-invent the wheel.

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread Bob Sneidar
I downloaded and am using the app as we speak. Very nicely done. If you have a Paypal account I will send you money for it. (sssh!!! Don't tell Apple!!) Bob On Jun 3, 2011, at 1:00 PM, Pierre Sahores wrote: > Hi Andy, > > Tracker2Go looks very nice on my iPhone 3 GS. Congratulations for a

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread Andre Garzia
On Fri, Jun 3, 2011 at 3:09 PM, Richard Gaskin wrote: > David C. wrote: > >> Congrats Andy that really looks good! >> Unfortunately I am unable to try it for you since I'm still using my >> original iPhone which cannot be updated to iOS 4 specs. Drat, drat, >> drat! >> > > Is that the F-word I

Pretty Print arrays

2011-06-03 Thread Todd Geist
Hello Before I set out to re-invent the wheel. Does anyone have function to pretty print LiveCode arrays? Thanks Todd Todd Geist -- geist interactive 805-419-9382 ___ use-livecode mailing

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread Pierre Sahores
Hi Andy, Tracker2Go looks very nice on my iPhone 3 GS. Congratulations for all the so fine GUI and local/networked app logic you sticked inside ! Kind regards, Le 3 juin 2011 à 19:39, Andy Henshaw a écrit : > I have just had my first Livecode iPhone app using externals (sqllite) > approved f

RE: Unicode textFields in Linux & vanishing text

2011-06-03 Thread Slava Paperno
Something to do with byte order the processor expects? If you use a Hex editor/mode to open a text file containing the same characters, do you see anything useful there? > The chars are invisible regardless of which Unicode chars they are, AND > this phenomenon happens, > as I mentioned, specif

Re: Unicode textFields in Linux & vanishing text

2011-06-03 Thread Richmond Mathewson
On 06/03/2011 10:24 PM, Slava Paperno wrote: I got an error message when I used your script verbatim, but when I removed the outer parentheses, I could see the two letters in the field, no problem. LC 4.6.1, Windows 7 64-bit. I don't know if they are the correct two letters, but you can check my

RE: Unicode textFields in Linux & vanishing text

2011-06-03 Thread Slava Paperno
I got an error message when I used your script verbatim, but when I removed the outer parentheses, I could see the two letters in the field, no problem. LC 4.6.1, Windows 7 64-bit. I don't know if they are the correct two letters, but you can check my screen shot at http://russian.cornell.edu/TwoC

Share revlets

2011-06-03 Thread Melitón Cardona Torres
How can I share revlets with other people? Could you indicate me where I can find concrete instructions? My security settings are right and I can see my revlets in my computer (they work perfectly) but when I share them with other people via MobileMe they can't access to them. Sorry to disturb

Re: Blend & Snapshot

2011-06-03 Thread Richmond Mathewson
On 06/03/2011 09:54 PM, Nonsanity wrote: On Fri, Jun 3, 2011 at 2:46 PM, Richmond Mathewson< richmondmathew...@gmail.com> wrote: Just to help you get the picture; remember Rikki Lake in "Hairspray", but at 17, not 12, multiplied by 25, chain-smoking outside and grinding the butts into the pavi

[ANN] Live LiveCode code event #26

2011-06-03 Thread Björnke von Gierke
Hi guys We're back for another Saturday event: Mark Schonewille will introduce you to way to extend LiveCode when LiveCode can't do it alone. He will explore the possibilities of "shell", "open process", "do as" and "launch program". http://livecode.tv/mark/ John Craig will also be back, and s

Re: Blend & Snapshot

2011-06-03 Thread Nonsanity
On Fri, Jun 3, 2011 at 2:46 PM, Richmond Mathewson < richmondmathew...@gmail.com> wrote: > Just to help you get the picture; remember Rikki Lake in "Hairspray", but > at 17, not 12, multiplied > by 25, chain-smoking outside and grinding the butts into the paving stones > with their sequinned > hig

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread Bob Sneidar
As do I, only jailbroken. I wanted the tethering, as I am grandfathered into their "unlimited" plan. It works like a charm! I can still sync all my music, photos, etc. I just cannot update the iPhone as it may make it unbootable, and may even brick it. Bob On Jun 3, 2011, at 11:37 AM, David

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread Nonsanity
If I recall correctly, Apple doesn't allow time-to-disable app limitations like so much shareware uses. If someone pays nothing for an app, they never will pay for it. You can make a new one with more features and a price - a "pro" version - but then you have to get users to switch to it. I'm prob

Re: Blend & Snapshot

2011-06-03 Thread Richmond Mathewson
On 06/03/2011 09:39 PM, John Dixon wrote: Well I guess it beats smoking behind the cycle sheds... from the release notes export snapshot from [ rectangle rectangle of ] object [ ( with | without ) effects ] … As the teacher, smoking behind the bike sheds would be a bit infra dig . . . :)

Unicode textFields in Linux & vanishing text

2011-06-03 Thread Richmond Mathewson
I have found that if I set up a textFld called, say "txtfld" and do this: set the useUnicode to true set the unicodetext of fld "txtfld" to (numToChar(2340) & numToChar(2341)) the required chars are entered but cannot be seen; if I then do a RETURN key press at the start of the string followed

RE: Blend & Snapshot

2011-06-03 Thread John Dixon
Well I guess it beats smoking behind the cycle sheds... from the release notes export snapshot from [ rectangle rectangle of ] object [ ( with | without ) effects ] … > Date: Fri, 3 Jun 2011 21:34:31 +0300 > From: richmondmathew...@gmail.com > To: use-livecode@lists.runrev.com > Subject: Blend

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread David C.
> Golly, the way the lay press tells it that only happens on Linux and > Android.  :) Haven't you heard the rules, Richard? No shadow or doubt shall fall on any company named Apple or any product with an "i" prepended to the name. In my case, I probably wouldn't do the upgrade even if I could sin

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread Bob Sneidar
I would put it up as a free trial that expires after a while, because once people have the free app, you cannot make them pay for it, and I think you will find that after the first surge of users, the subscribers will drop off pretty dramatically. If you ever expect to sell it, I would start t

Blend & Snapshot

2011-06-03 Thread Richmond Mathewson
I was messing around today with an imported image and Blends (15 minutes between classes), and found, to my chagrin (what a great word) that export snapshot from img "myImageWithBlend" to file "Crud.png" as PNG exported an image of the image (wow!) sans blend, and, if I grouped the image and di

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread Richard Gaskin
David C. wrote: Congrats Andy that really looks good! Unfortunately I am unable to try it for you since I'm still using my original iPhone which cannot be updated to iOS 4 specs. Drat, drat, drat! Is that the F-word I hear, "fragmentation"? Golly, the way the lay press tells it that only h

Re: My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread David C.
Congrats Andy that really looks good! Unfortunately I am unable to try it for you since I'm still using my original iPhone which cannot be updated to iOS 4 specs. Drat, drat, drat! Best regards, David C On Fri, Jun 3, 2011 at 12:39 PM, Andy Henshaw wrote: > I have just had my first Livecode

My first Livecode iOS App with Externals (SQLite) approved!

2011-06-03 Thread Andy Henshaw
I have just had my first Livecode iPhone app using externals (sqllite) approved for the App Store. The App is 'Tracker2Go' ( http://itunes.apple.com/us/app/tracker2go/id433038944?mt=8&ls=1 ) if anyone wants a look, it uses the sqlite databases, datagrid, internet search, animation engine, c

Re: resumeStack and revBrowser

2011-06-03 Thread J. Landman Gay
On 6/2/11 11:55 PM, Slava Paperno wrote: As far as I can tell, when you have a revBrowser window on the screen, and you click in the revBrowser window, then click anywhere outside revBrowser, the stack receives the resumeStack message. Can someone confirm? I was using an "on resumeStack" handler

Re: [mobile:Android] mobileSetAllowedOrientations gives error

2011-06-03 Thread J. Landman Gay
On 6/3/11 10:10 AM, Nonsanity wrote: Am I wrong in thinking this command doesn't exist unless the stack is running in a mobile environment? In other words... on preOpenStack if the environment is "mobile" then mobileSetAllowedOrientations "portrait" end if end preOpenStack ..

RE: revBrowser's htmltext property for Unicode text

2011-06-03 Thread Slava Paperno
Thanks for playing with this, Mike. revBrowserCallScript(browserID, JSFunctionName()) also brings question marks for the double-byte characters that are returned by JSFunctionName(). I don't understand what you mean by the Web site using "(binary) unicode text instead of html encoded text." I th

Re: [mobile:Android] mobileSetAllowedOrientations gives error

2011-06-03 Thread Nonsanity
Am I wrong in thinking this command doesn't exist unless the stack is running in a mobile environment? In other words... on preOpenStack if the environment is "mobile" then mobileSetAllowedOrientations "portrait" end if end preOpenStack ...Will prevent errors when running in the I

Re: [mobile:Android] mobileSetAllowedOrientations gives error

2011-06-03 Thread Roger Eller
On Fri, Jun 3, 2011 at 9:06 AM, Colin Holgate wrote: > It looks different to the syntax Jacque gave you. She wrote: > > I had the same issue until I remembered to set the allowed orientations in > preOpenStack: > mobileSetAllowedOrientations "portrait,portrait upside down,landscape > left,landsca

Re: [mobile:Android] mobileSetAllowedOrientations gives error

2011-06-03 Thread Colin Holgate
It looks different to the syntax Jacque gave you. She wrote: I had the same issue until I remembered to set the allowed orientations in preOpenStack: mobileSetAllowedOrientations "portrait,portrait upside down,landscape left,landscape right" On Jun 3, 2011, at 7:45 AM, Roger Eller wrote: > W

Re: revBrowser's htmltext property for Unicode text

2011-06-03 Thread Mike Bonner
Nevermind, just tried it, doesn't work correctly. innerText doesn't work either. On Fri, Jun 3, 2011 at 6:36 AM, Mike Bonner wrote: > Another option you could try is something like the following > > *-- uses javascript to place the body of the current page into the tText > variable.* > *put

Re: revBrowser's htmltext property for Unicode text

2011-06-03 Thread Mike Bonner
Another option you could try is something like the following *-- uses javascript to place the body of the current page into the tText variable.* *put revBrowserExecuteScript(sBrowserId,"result=document.body.innerHTML") into tText* and see if javascript sets the result correctly so you can use

[mobile:Android] mobileSetAllowedOrientations gives error

2011-06-03 Thread Roger Eller
What is wrong with my syntax? I have this in my openStack handler. put mobileSetAllowedOrientations("landscape right") or put mobileSetAllowedOrientations("portrait, portrait upside down, landscape left, landscape right") I get this: stack "MyFirstAndroidApp": execution error at line 26 (Functio

Re: resumeStack and revBrowser

2011-06-03 Thread Mark Schonewille
Hi Slava, You could pass the message if the stack is already in front: on resumeStack if the short name of me is line 1 of the openStacks then pass resumeStack else -- do what you want end if end resumeStack -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Softw

Re: revBrowser's htmltext property for Unicode text

2011-06-03 Thread Mark Schonewille
Hi Slava, This can happen when a website uses (binary) unicode text instead of html encoded text. Externals can't pass binary data to the LiveCode engine. As a result, LC gets incorrectly encoded text and text that cannot be decoded is replaced with question marks. Sockets, however, can pass