Re: [ANN] iOS Barcode Reader External Demo In App Store

2011-12-20 Thread Gerry Orkin
QR codes scan almost instantly - Code 128 take a fair bit longer. QR suits my immediate purpose so I'm fine with that, but is there any reason Code 128 takes so much longer? Gerry On 20/12/2011, at 1:11 PM, Gerry Orkin wrote: Monte Works perfectly for me! Great work, and smart move to

Re: [ANN] iOS Barcode Reader External Demo In App Store

2011-12-20 Thread paolo mazza
Hi Monte I was able to download your App from the App Store and to scan some Barcodes. IT WORKS!! Great job. I look forward to the stack being available in revSelect. Cheers, Paolo Mazza ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: [ANN] iOS Barcode Reader External Demo In App Store

2011-12-20 Thread Monte Goulding
Hi Gerry At the moment the external just looks for a wide range of barcode types and needs to sort out which is which. I'm changing it so when calling the function you specify which type of barcode you want it to look for which should improve performance. Cheers -- Monte Goulding On

Re: arrowKey

2011-12-20 Thread paolo mazza
Thank you Mike, I was able to use your script. I realize that getting the arrows key is not as trivial as get the mouse or get the optionKey. However your script works fine. Thanks a lot Paolo On Mon, Dec 19, 2011 at 5:28 PM, Mike Bonner bonnm...@gmail.com wrote: I'm sure this doesn't cover

Re: Wanted: Neophytes ftp Client

2011-12-20 Thread Andre Garzia
Bob, Thanks for the kind words! I plan to upgrade FTP Commander to support SFTP using Glenn externals soon, then I will have a cross platform SFTP client. I built that stack as a toy but it is actually useful and sometimes, I still use it. I am glad it works for you. Cheers andre PS: I built

Re: Cannot focus on a datagrid??

2011-12-20 Thread Trevor DeVore
On Mon, Dec 19, 2011 at 4:39 PM, Bob Sneidar b...@twft.com wrote: I just hope it doesn't break something later! It shouldn't. -- Trevor DeVore Blue Mango Learning Systems www.clarify-it.com-www.screensteps.com ___ use-livecode mailing list

Re: arrowKey

2011-12-20 Thread Mike Bonner
I saw the other input for this problem, I'm thinking that checking keysdown() for the arrow keycodes would be a more reliable solution depending on your needs. I swear I keep learning new things on this list and in the forums. Luckily I have a horrible memory so I get the bonus of relearning the

Re: arrowKey

2011-12-20 Thread Peter M. Brigham, MD
On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: I saw the other input for this problem, I'm thinking that checking keysdown() for the arrow keycodes would be a more reliable solution depending on your needs. I swear I keep learning new things on this list and in the forums. Luckily I have

Re: arrowKey

2011-12-20 Thread Mike Bonner
I gave up on socks years ago. They're not worth the temporal disturbance. On Tue, Dec 20, 2011 at 7:31 AM, Peter M. Brigham, MD pmb...@gmail.comwrote: On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: I saw the other input for this problem, I'm thinking that checking keysdown() for the arrow

Re: arrowKey

2011-12-20 Thread paolo mazza
Thank you Bob. Thank you Mike.. Here it is my code to move a button using the arrow keys. local tSTARTCONTROL on StartControl put true into tSTARTCONTROL ControlKeys end StartControl on StopControl put false into tSTARTCONTROL end StopControl on ControlKeys if keysDown() is 65361

Re: arrowKey

2011-12-20 Thread Bob Sneidar
Jacque was wearing it yesterday, along with a white kneehigh with blue and red stripes. Bob On Dec 20, 2011, at 6:31 AM, Peter M. Brigham, MD wrote: Yeah, me too -- as one of my patients once said to me, I have a mind like a steel sieve. I save lots of tips from this list in a stack I've

Re: arrowKey

2011-12-20 Thread Peter M. Brigham, MD
Is there some reason not to do it this way?: on arrowkey which put the loc of button square into tRect switch which case left subtract 1 from item 1 of tRect break case right add 1 to item 1 of tRect break case up subtract 1

[iOS] Multi Line Field issues

2011-12-20 Thread Bruce Baker
I have run into a few issues with the Multi Line Field for iOS. Has anyone managed to get the 'new' scrollToVisibleRange working? I have tried dozens of ways to get it to work with no success. It seems that the best place to put the scrollToVisibleRange would be in the inputReturnKey since

Re: arrowKey

2011-12-20 Thread J. Landman Gay
On 12/20/11 10:07 AM, Bob Sneidar wrote: Jacque was wearing it yesterday, along with a white kneehigh with blue and red stripes. I found it in my sock drawer. I thought it was yours. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: [ANN] iOS Barcode Reader External Demo In App Store

2011-12-20 Thread Andrew Henshaw
Great job, look forward to seeing it on revselect! Any chance you can extend it a little so it can work on a mac desktop as well??? Im getting requests for such a feature, as most have cameras and it would be neat to be able to hold a barcode up there and have that read as well as on iOS.

Re: arrowKey

2011-12-20 Thread Peter M. Brigham, MD
Nope, it's mine. I hope at least it got to you *after* it went through my wash cycle If not, I apologize. I'm definitely putting in an enhancement request to the QC to extend the find command to socks. I bet Scott Raney anticipated the need and built it into an obscure corner of the engine

Database syntax

2011-12-20 Thread Michael Doub
Could I trouble someone for an example of how to insert a row in a SQLite database with a live code array then update that same record with an updated array? put revOpenDatabase(sqlite, thePath, , , , ) into tID put the CREATE TABLE ContactData ( \ myKey integer PRIMARY KEY

Re: Database syntax

2011-12-20 Thread Pete
HI Michael, To get the myKey column automatically incremented by 1 each time you add a row to your table, add NOT NULL to it's definition in your CREATE TABLE statement, and do not supply a value for myKey when you issue an INSERT command for the table. I recommend that you define default values

Re: Database syntax

2011-12-20 Thread Bob Sneidar
put INSERT into tblName (RecordType,DataArray) VALUES (0,ArrayText) into theSQL replace tblName with theTblName in tSQL replace ArrayText with quote theArrayText quote in tSQL revExecuteSQL tID, tSQL That is how I would do it. It's easier sometimes to create an SQL statement using

Re: Database syntax

2011-12-20 Thread Bob Sneidar
I should probably also mention that it would be better to set all your column values in the insert statement. Otherwise you will have to query for the last inserted primary key and use that in your next UPDATE statement's WHERE clause. Bob put INSERT into tblName (RecordType,DataArray)

Re: Database syntax

2011-12-20 Thread Michael Doub
Thanks Pete, I just found an example that indicated that I don't need to use the base64encoding. Is this true? *b put INSERT into ContactData ( \ myKey, \ RecordType, \ RecID, \ Name, \ GroupNbr, \ LastContact, \

Re: Database syntax

2011-12-20 Thread Pete
I'm not sure I follow that logic :-) What's the point of autoincrement if he has to supply the primary key value and how does he get the next available primary key value for the insert? On Tue, Dec 20, 2011 at 12:50 PM, Bob Sneidar b...@twft.com wrote: I should probably also mention that it

Re: Database syntax

2011-12-20 Thread Bob Sneidar
Sorry I didn't mean for *ALL* to include the autoincrement primary key column. :-) I meant all the others that did not use defaults, or have a value other than the default value. It's the difference between one query and three. If autoincrement is set for a column, any value passed will set the

Re: Database syntax

2011-12-20 Thread Pete
You can use the :1, :2, etc syntax for updates as well as inserts, irrespective of how many columns you are updating. On Tue, Dec 20, 2011 at 1:39 PM, Bob Sneidar b...@twft.com wrote: No just inserts. After that you only need to include columns that have altered in your SQL statements, if

Re: Database syntax

2011-12-20 Thread Michael Doub
Bob, this is a really interesting question. I am not sure.I was researching this but got side tracked when I found that the performance of the datagrid when driven by a 1000 entry dgData array did not perform well. I switched to the using a database at that point as I felt that I did

Re: Database syntax

2011-12-20 Thread Bob Sneidar
Oh I thought he was talking about defaults. I see what he meant by substitution trick. Bob On Dec 20, 2011, at 2:09 PM, Pete wrote: You can use the :1, :2, etc syntax for updates as well as inserts, irrespective of how many columns you are updating. On Tue, Dec 20, 2011 at 1:39 PM,

Re: Database syntax

2011-12-20 Thread Bernard Devlin
In my experience _no database_ will outperform arrays as data storage. The simple reason is that a) arrays are stored in memory b) Of course, if you run out of memory, you are in dangerous territory anyway. If you read some of the arguments of Ruslan (of Valentina fame), even he admits that

Re: Database syntax

2011-12-20 Thread Bernard Devlin
In my experience _no database_ will outperform arrays as data storage. The simple reason is that a) arrays are stored in memory b) sigh :) b) arrays have no machinery (null checking, referential integrity, etc.) that would slow them down. Bernard

Re: Cannot focus on a datagrid??

2011-12-20 Thread Charles Szasz
Bob, Can I asked you a question? I have a DataGrid with one label field. I have been trying to add an Edit Field to the DataGrid where the user can enter ratings for each of the 28 statements that are used in the label field in the DataGrid. So far, I have been unsuccessfully in implementing

Re: Database syntax

2011-12-20 Thread Pete
Yes, forgot to mention that - it's in the dictionary entry for revExecuteSQL as well. I think the decision as to whether to use a database versus LC internal storage depends on a lot of factors, including memory and access speed, but also multi-user issues, the application's access requirements,

Re: Database syntax

2011-12-20 Thread Pete
... and that's a bad thing? On Tue, Dec 20, 2011 at 3:46 PM, Bernard Devlin bdrun...@gmail.com wrote: b) arrays have no machinery (null checking, referential integrity, etc.) that would slow them down. -- Pete Molly's Revenge http://www.mollysrevenge.com

Re: Cannot focus on a datagrid??

2011-12-20 Thread Pete
Hi Charles, Take a look at the lessons starting at http://lessons.runrev.com/s/lessons/m/datagrid/l/7335-How-Do-I-Open-a-Table-Cell-For-Editinghttp://lessons.runrev.com/s/lessons/m/datagrid/l/7335-How-Do-I-Open-a-Table-Cell-For-Editing- They should get you going. Pete On Tue, Dec 20, 2011 at 3:54

is among the words AND find words

2011-12-20 Thread Jim Hurley
If the sentence: Now is the time, for all good men. is within the field myField , then find word time in field myField is successful. The word time is found despite the fact that it is not delimited with spaces on either side. But time is among the words of Now is the time, for all

Re: is among the words AND find words

2011-12-20 Thread Bob Sneidar
Not sure if wholeMatches affects the find command, but if you set wholeMatches to true and then use wordOffset(time,field myField) then I think you will get the results you are looking for. wordOffset() returns 0 when it fails to find a match. Bob On Dec 20, 2011, at 4:42 PM, Jim Hurley

Re: Cannot focus on a datagrid??

2011-12-20 Thread Charles Szasz
Pete, I clicked on the link and got the message that page is no longer available. Charles Szasz csz...@mac.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Go cd 500

2011-12-20 Thread Ray Horsley
Here's a relatively basic one but still perplexing. If card 2 in a stack of 2 cards is named a number, 500 for example, how can you go to it in a script if you only have the card's name? ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Go cd 500

2011-12-20 Thread Mark Schonewille
Hi Ray, You should not use numbers for card names. If you have to use a number, add character, e.g. x500. To temporarily work around this problem, you can use a repeat loop that gets the id and name of each card: repeat with x = 1 to number of cards if the name of cd x is 500 then put

Re: Cannot focus on a datagrid??

2011-12-20 Thread Pete
Sorry, I think I missed a character of the end of the URL, here it is again (note the final -) http://lessons.runrev.com/s/lessons/m/datagrid/l/7335-How-Do-I-Open-a-Table-Cell-For-Editing- On Tue, Dec 20, 2011 at 5:27 PM, Charles Szasz csz...@mac.com wrote: Pete, I clicked on the link and

Re: Database syntax

2011-12-20 Thread Mark Wieder
Pete- Tuesday, December 20, 2011, 4:10:22 PM, you wrote: ... and that's a bad thing? Possibly. Bernard was making the point that, no it's not, it's part of why arrays are faster than databases. But the other side of that coin is that arrays don't have machinery (null checking, referential

Re: Cannot focus on a datagrid??

2011-12-20 Thread Pete
Hi Charles, I guess I should also mention that you should be able to edit a cell in a datagrid without writing any extra code (as mentioned in the link) unless either the datagrid has been set to be not editable or the column within the datagrid has been set to be non-editable. If you double

Re: Go cd 500

2011-12-20 Thread Ray Horsley
Mark - Unfortunately our users sometimes insist on naming things numbers, but hey, that repeat loop idea is a good one. Thanks! On Dec 20, 2011, at 7:46 PM, Mark Schonewille wrote: Hi Ray, You should not use numbers for card names. If you have to use a number, add character, e.g. x500.

Re: Database syntax

2011-12-20 Thread Pete
That's the way I took it, I probably should have been more specific in the comment! I guess my comment was made in the mode of my other response that the decision as to whether to use a database or not goes way deeper than memory and performance issues and depends on the application's

Re: is among the words AND find words

2011-12-20 Thread Jim Hurley
Thanks Bob, Good thought, but it still doesn't work. The script: on mouseUp put now is the time, for all good men. into tText set wholematches to true --set wholematches to false put wordOffset(time, tText) into temp1 put wordOffset(time, , tText) into temp2 end mouseUp shows 0

Re: is among the words AND find words

2011-12-20 Thread Jim Hurley
Think I will try something like this. Test to see if the word, as a string, is in the text. If so, then strip out all characters not between a and z or A and Z and then check to see if the stripped-down word is the same as the test word. That way I will find time even if it appears as (time)

Re: is among the words AND find words

2011-12-20 Thread Phil Davis
Hi Jim, Try token instead of word as the chunk you're looking for. It will work. On 12/20/11 4:42 PM, Jim Hurley wrote: If the sentence: Now is the time, for all good men. is within the field myField , then find word time in field myField is successful. The word time is found

Re: is among the words AND find words

2011-12-20 Thread Pete
Hi Jim, Try using the token keyword. There is no tokenOffset command so you will have to use a repeat for each token t... construct and check t for time but it will return time as a token. The comma will be returned as a token as well. On Tue, Dec 20, 2011 at 9:10 PM, Jim Hurley

File time off by an hour...

2011-12-20 Thread Keith (Gulf Breeze Ortho Lab)
Hi All, I am using detailed files to obtain a file's date and time modified (converting it to short date and short time)... All works well, but I noticed the following... Several of my files have a date of 9/24/11 with a time of 2:26 PM (as shown in Windows explorer). However, when I obtain