nother newbie question this time re foundChunk

2011-03-22 Thread Timothy Miller
Hi again. I'm working on an indexing script. The relevant portion of my script so far: (it works thanks to you guys) repeat until the shiftKey is down set cursor to busy put the number of this card into firstNum find tTempSearch in field "narrative" put the foundChunk in

Re: [OT] Post Conference Fun Stuff

2011-03-22 Thread Judy Perry
Can you get there via mass transit? Judy ___ 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: PlonkerPoint

2011-03-22 Thread Judy Perry
NeoOffice too. I really don't need twirly nauseating text. I once had a student group do their report on the eBay phenomenon. Yup, you guessed it. EVERY SINGLE LETTER in the presentation was in a different color. Every line twirled into focus. It was downright nauseating. Oh, and here's a

Re: PlonkerPoint

2011-03-22 Thread Judy Perry
Richmond, I'm catching up on emails and I was reading this email while allowing my students to work in small groups on their final project, and when I read your definition of IT I literally laughed out loud. The week before I did a lecture on computerized voting machines, known as DREs, and a

Re: newbie script question re Find command

2011-03-22 Thread Timothy Miller
On Mar 22, 2011, at 3:30 PM, J. Landman Gay wrote: > Off the top of my head: > > put "thing to find" into tVar > repeat > find tVar [in field "thisField"] > if the result = "not found" then exit repeat > put the foundchunk & cr after tFoundList > end repeat > > This will go through all the cards

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-22 Thread J. Landman Gay
On 3/22/11 8:38 PM, Gerry Orkin wrote: Jacqueline, As I mentioned, it goes crazy. Setting a breakpoint in the referring button script jumps me to the top line of the card script, but not to the handler being called. The trace shows that LiveCode is attempting to evaluate every line of code in th

Re: SQL and other databases

2011-03-22 Thread Peter Haworth
That's an excellent point. I'm so used to SQLite's type tolerance that I will have to be sure to validate data more carefully for MySQL usage. Pete Haworth On Mar 22, 2011, at 8:33 PM, Björnke von Gierke wrote: > A main difference (especially coming from LiveCode) is that you do not need > t

Re: On-Rev file path

2011-03-22 Thread -=>JB<=-
Thanks for the reply and info. Yes I was referring to 'http'. Actually I was thinking you could not access the file if it was above the public_html and wanted to make sure. I am not actually trying to access a file above public_html even though it looks that way by the question. What I am trying

Re: On-Rev file path

2011-03-22 Thread -=>JB<=-
Thanks for the info. So if my account name is jayb and I wanted to access the file by pointing my browser to it while it is located in the publc_html folder but not in my domain folder I would use the path /home/jayb/public_html/Hello_World.php and then the file should run? I do not need to use

Re: On-Rev file path

2011-03-22 Thread Jim Ault
On Mar 22, 2011, at 7:57 PM, -=>JB wrote: I would like to know how to get the path of a file that is located above the public_html which I think is called above webroot. Let's say I have a file named Hello_World.php and it is above the public_html. What is it's path and can I run the file by

Re: SQL and other databases

2011-03-22 Thread Björnke von Gierke
A main difference (especially coming from LiveCode) is that you do not need to type the columns in SQLite. this means you can just dump anything anywhere, similar to how you can put any kind of data into any container in LiveCode. For mySQL, one would always need to do a lot more of sanitising,

Re: On-Rev file path

2011-03-22 Thread Mike Bonner
You shouldn't be able to call it directly if its outside of your public_html folder. I think you can 'include' a php file that is outside the boundaries from another php page, and if I recall correctly there are ways to force php pages to load from within an irev, but I can't remember whats require

On-Rev file path

2011-03-22 Thread -= JB
I would like to know how to get the path of a file that is located above the public_html which I think is called above webroot. Let's say I have a file named Hello_World.php and it is above the public_html. What is it's path and can I run the file by pointing my browser to it's path like I can wh

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-22 Thread Peter Brigham MD
You don't have a "do" statement in there somewhere, do you? The only way I could imagine that kind of behavior happening would be with something like "do script of this card." -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mar 22, 2011, at 9:38 PM, Gerry Orki

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-22 Thread Gerry Orkin
Jacqueline, As I mentioned, it goes crazy. Setting a breakpoint in the referring button script jumps me to the top line of the card script, but not to the handler being called. The trace shows that LiveCode is attempting to evaluate every line of code in the card script, starting from the top,

Ipod IOS problem

2011-03-22 Thread edward cawley
Still a problem: I load the mobile plugin, put the folder of files into the directory but when the app comes up in the simulator none of the files are accessed. The buttons all work and the text not accessed by files show, but none of the images,audio or text files are found. It acts like they a

Re: newbie script question re Find command

2011-03-22 Thread Timothy Miller
Very kind of you all. Thanks to Joe, Craig, Jacque, Peter and Terry. I can do this now. Best regards, Tim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription prefere

Re: newbie script question re Find command

2011-03-22 Thread Terry Judd
Actually 2 is slightly more complicated in that you have to sum your offset values as you go in order to determine the correct number of characters to skip. I'd also forgotten about the find function mentioned by Jacque - probably a much simpler way to go. Terry... On 23/03/11 9:38 AM, "Terry Ju

Re: newbie script question re Find command

2011-03-22 Thread Terry Judd
Here are some things to start working with... 1. the cardNames function - gives you a list of cards for the specified stack. You can then loop through each card in turn using a repeat loop of the form... repeat for each line tCd in (the cardNames of this stack) ...alternatively you can just rep

Re: newbie script question re Find command

2011-03-22 Thread Peter Brigham MD
On Mar 22, 2011, at 5:31 PM, Timothy Miller wrote: Hiya, I guess I never tried to write a script like this before. Thought it would be simple... Well, it is simple, probably, just not simple in a way that I actually understand. How do I find multiple instances of a string in a given field

Re: newbie script question re Find command

2011-03-22 Thread J. Landman Gay
On 3/22/11 4:31 PM, Timothy Miller wrote: How do I find multiple instances of a string in a given field of a given card and record each foundchunk in a variable, and then stop repeating the find command when the last instance is found? It's simpler than you'd think. Unlike HyperCard, LiveCode

Re: newbie script question re Find command

2011-03-22 Thread dunbarx
Joe is giving you tough love. Check out the "offset" command as well as the "find" command. Note the "chars to skip" parameter. Read about the "foundChunk". If you are really into it, and you should be, try to find several different ways to accomplish your task. Craig Newman -Origina

Re: SQL and other databases

2011-03-22 Thread Bob Sneidar
I mean that sqLite is just a file on the local hard drive. If they were benchmarking mySQL running locally, I guess it's sort of the same thing, but mySQL still uses the networking protocols right? I mean you have to connect via localhost or the IP of the local machine, so it's still using netwo

Re: newbie script question re Find command

2011-03-22 Thread Joe Lewis Wilkins
Hi Tim, I would start with a repeat that would go through all of your cards; When you are on a card put the field in question into a cdVar; parse the cdVar, finding the first instance of the string; put that instance into a var; delete the part of the cdVar through that point; find another, etc.,

newbie script question re Find command

2011-03-22 Thread Timothy Miller
Hiya, I guess I never tried to write a script like this before. Thought it would be simple... Well, it is simple, probably, just not simple in a way that I actually understand. How do I find multiple instances of a string in a given field of a given card and record each foundchunk in a variabl

Re: Stand-alone issues: lost images and go to (sub) stack scripts fail

2011-03-22 Thread J. Landman Gay
On 3/21/11 6:10 PM, Keith Clarke wrote: Hi folks, I need some help struggling with deploying my first multi-stack stand-alone. Images in the main stack and sub-stack (within the same folder as the .rev file) are greyed-out on both Mac and web deployments. On the web deployment none of the button

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-22 Thread J. Landman Gay
On 3/22/11 1:10 AM, Gerry wrote: So more messing about reveals that my problem wasn't with libUrlDownloadToFile at all - but it's still weird. I have a button that calls a command - upDateSongs - from its script. If upDateSongs is in the stack script everything works fine. However if it's in th

Re: SQL and other databases

2011-03-22 Thread Peter Haworth
Not sure what you mean by "file based". Seems perfectly fair to me if I'm comparing using SQLite and MySQL on my local computer. I'm not recommending one above the other, just pointing out what I've read. As with any software, you should use what works best for your application. Pete Haworth

Re: SQL and other databases

2011-03-22 Thread Bob Sneidar
I don't think this is a fair comparison. sqLite is file based, and is likely going to be a local file at that. Of course that would be faster. Bob On Mar 22, 2011, at 12:26 PM, Peter Haworth wrote: > Definitely feature-deprived in some areas for sure but still very capable > DBMS, depending

Re: SQL and other databases

2011-03-22 Thread Bob Sneidar
Then it may be engine specific. My query produced an error when trying to create a table in my On-Rev database if I specified a default for varchar columns without using NOT NULL. After adding NOT NULL it worked fine. Bob On Mar 22, 2011, at 12:21 PM, Peter Haworth wrote: > Not seeing it on

Re: SQL and other databases

2011-03-22 Thread Peter Haworth
Definitely feature-deprived in some areas for sure but still very capable DBMS, depending on what your needs are. I haven't got round to benchmarks yet (and probably won't), but I've read several things on the web that suggest SQLite is much faster than mySQL. Of course if SQLite is missing a

Re: SQL and other databases

2011-03-22 Thread Peter Haworth
Not seeing it on those types either: `testdefault` char(10) DEFAULT 'XYZ', `testdefault2` varchar(10) DEFAULT 'ABC', Worked fine for me (through Sequel Pro). I wonder if this is a difference between versions of MySQL. I'm using the Community version which is the free one. You're right on the

Re: SQL and other databases

2011-03-22 Thread Bob Sneidar
Yes but those are numeric data types. The restriction was on the char types char() and varchar() (if I am not mistaken). TEXT types do not allow defaults at all according to the manual. Bob On Mar 22, 2011, at 10:29 AM, Peter Haworth wrote: > Hi Bob, > I'm slowly putting together a list of d

Re: Datagrid Column Highlighting

2011-03-22 Thread Bob Sneidar
I don't think you can select an entire column. What you can do is fake it. The Data Grid Helper by Zryip allows you to set a script that disables sorting, but you need to make the user think a column is selected. Data Grid Helper also has a way of manually setting alternating column colors lik

Re: the standard dirty document mark

2011-03-22 Thread stephen barncard
On HUG-aware apps the space inside the window-close "bubble" on OSX is supposed to go slightly dark to indicate to the user that something on the document has changed. The detection of what will 'dirty' is up to the programmer. It was added to the new version after it turned out to be a blocker in

Re: O'Reilly steps up to the plate

2011-03-22 Thread Peter Haworth
Thanks Mark - just purchased three books Pete Haworth On Mar 22, 2011, at 9:52 AM, Mark Wieder wrote: > If you've been thinking of buying some O'Reilly books (or even if you > haven't), here's a deal too good to pass up: today books are 50% off > with *all revenues* less author royalties going

Re: Getting a single column of a datagrid

2011-03-22 Thread Jim Lambert
Or, function printCharXtimes pChar, pTimes put "%" & pTimes & "s" into pTimes put format(pTimes,) into tVar replace space with pChar in tVar return tVar end printCharXtimes Jim Lambert ___ use-livecode mailing list use-livecode@lists.run

Re: SQL and other databases

2011-03-22 Thread stephen barncard
Having delved into LITE for about 5 minutes and only using MY the last few years I had the impression that LITE was a feature-deprived version of MYSQL. Thanks for reporting. On 22 March 2011 10:29, Peter Haworth wrote: > Hi Bob, > Stephen Barncard San Francisco Ca. USA more about sqb

the standard dirty document mark

2011-03-22 Thread Richmond
That is a quote from the RunRev site; and the funny thibg is that I can only find references to "the standard dirty document mark" on the RunRev site, so have no idea of what it really means. ?? . . . mind you, now one can have a porn domain . . . ___

[OT] Worth a look:

2011-03-22 Thread Richmond
http://www.hypernextandroid.com/index.html more interesting than Danton's head . . . :) (probably less blood spilt too). ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscr

Re: 4.6 released

2011-03-22 Thread Bob Sneidar
Thanks and gratz! Bob On Mar 22, 2011, at 10:10 AM, Kevin Miller wrote: > Hi there, > > I’m delighted to advise that less than 4 months after entering the mobile > market with LiveCode for iOS we are already bringing out the improvements > that you have all been asking for. LiveCode 4.6, releas

Datagrid Column Highlighting

2011-03-22 Thread Ray Horsley
I can't seem to figure out how to stop a datagrid's behavior from sorting the entire grid each time a user clicks a column heading. I would much rather have the column highlighted after the user clicks it instead of sorting. Anybody know how to set this? Thanks, Ray __

Re: SQL and other databases

2011-03-22 Thread Peter Haworth
Hi Bob, I'm slowly putting together a list of differences between SQLite and MySQL. I'm concentrating on things that SQLite allows and MySQL does not. I haven't looked at extra functionality provided by MySQL over and above what SQLite provides since right now I just want to get to the point t

4.6 released

2011-03-22 Thread Kevin Miller
Hi there, I¹m delighted to advise that less than 4 months after entering the mobile market with LiveCode for iOS we are already bringing out the improvements that you have all been asking for. LiveCode 4.6, released today, has 130 new features, refinements and bug fixes, including: * 20 new iOS

Re: Table field names

2011-03-22 Thread Tim Ponn
Bob, I'm using the "Basic Table Field". I tried the selectedObject, but I get nothing. Here.. 1...create 3 fields, one a regular Text Entry Field and two Basic Table Fields. 2...give each field a name 3...put this in the card script: on rawKeyUp keyCode put the target end rawKeyUp 4...c

Re: Table field names

2011-03-22 Thread Mike Bonner
You can use focusIn and focusOut to keep track of which field is currently selected, then you can do as you were to know which specific cell of the current field is being modified. If I understand how the table field works, when you select a cell to type in, it pops up an overlay field named for l

new license model

2011-03-22 Thread Mark Wieder
+Like http://learnat.sait.ab.ca/ict/txt_information/Intro2dcRev2/pagecopyright.html -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your su

O'Reilly steps up to the plate

2011-03-22 Thread Mark Wieder
If you've been thinking of buying some O'Reilly books (or even if you haven't), here's a deal too good to pass up: today books are 50% off with *all revenues* less author royalties going to the Japanese Red Cross Soceity for disaster relief. http://oreilly.com/store/dd-jpn.html -- -Mark Wieder

Re: Getting a single column of a datagrid

2011-03-22 Thread Bob Sneidar
Oh hey that's clever! Bob On Mar 22, 2011, at 9:27 AM, Peter Brigham MD wrote: > > On Mar 21, 2011, at 11:56 PM, Trevor DeVore wrote: > > > >> *private* *function* _printCharXTimes pChar, pTimes >> >> *local* theStr >> >> >> >> *repeat* with i = 1 to pTimes >> >> *put* pChar afte

Re: Getting a single column of a datagrid

2011-03-22 Thread Peter Brigham MD
On Mar 21, 2011, at 11:56 PM, Trevor DeVore wrote: *private* *function* _printCharXTimes pChar, pTimes *local* theStr *repeat* with i = 1 to pTimes *put* pChar after theStr *end* *repeat* *return* theStr *end* _printCharXTimes A way to do this without a loop (don't know

Re: Table field names

2011-03-22 Thread Bob Sneidar
Did you try the selectedObject? Are you talking about a Datagrid? Bob On Mar 22, 2011, at 8:36 AM, Tim Ponn wrote: > Hello all! > > Though not a newbie to LiveCode, I'm rusty and trying to catch up on some > featuresso...my apologies. > > I've got a few table fields in my app. I need t

Re: Getting a single column of a datagrid

2011-03-22 Thread Bob Sneidar
Hey, thanks Trevor! Nice use of recursion. Who was it that said, "In order to understand recursion, you must first understand recursion"? Bob On Mar 21, 2011, at 8:56 PM, Trevor DeVore wrote: > On Mon, Mar 21, 2011 at 8:18 PM, Bob Sneidar wrote: > >> >> It would be nice if printkeys() was

Table field names

2011-03-22 Thread Tim Ponn
Hello all! Though not a newbie to LiveCode, I'm rusty and trying to catch up on some featuresso...my apologies. I've got a few table fields in my app. I need to know in which table the user is entering data. Even though each of my table fields has a unique name, all I get as a "target" f