Sorting issue in a datagrid
Bonjour, I have a data grid (table) with 3 columns, forty lines (currently). When clicking on the header of column 1 or column 3 all is working well (the lines are sorted as expected) But, when clicking on the header of column 2, only the 8 first lines remain (correctly sorted). All the other lines disappear! Now, if I sort column 1 and then I sort again column 2, only 3 lines are remaining in the datagrid! For a couple of hours I tried to find what was wrong in my setting ; changed the header of column 2, built a brand new data grid, … but with no avail! I am lost First time I get such an issue in a data grid. any idea on what could be happening would be very much appreciated Best regards André ___ 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: POST command question
See if it works with the non SSL endpoint. Might be a certificate thing. Sorry for the short response. Regards, Andrew Kluthe On Mar 30, 2014 1:11 PM, Michael Doub miked...@gmail.com wrote: Is there anything different about using the post command on live code server as compared to a mac desktop? I am trying to send mail via postmark. On my server I have the following script: ?lc set the ErrorMode to inline put /home/ua875508/public_html/doub.com/lc/ into mainpath put mainpath libJson.livecode into jsonLib put mainpath cbEngine.livecode into cbEngine start using jsonLib start using cbengine put ProcessMail ($_POST_RAW) ? I drop the stack cbEngine.livecode on my server after testing on the desktop. in this stack, I have a mouseup hander that calls the ProcessMail function with dummy data for easy debugging. Everything works as expected the desktop. The post command does it thing I get the expected response from postmark. When I move the stack to the server environment, the post command seems to do nothing and I get nothing returned at all. Can anyone provider me with any guidance? Thanks, Mike --http://developer.postmarkapp.com/developer-build.html For addtional API Information function libPostmark_SendEmail pMessageJSON get the keys of pMessageJSON if it empty then put arrayToJson(pMessageJSON) into outgoing else put pMessageJSON into outgoing end if set the httpHeaders to Accept: application/json return \ Content-Type: application/json return \ X-Postmark-Server-Token: my token goes here post outgoing to URL https://api.postmarkapp.com/email; put jsonToArray(it) into theResults if theResults[ErrorCode] 0 then return it else return true end if end libPostmark_SendEmail ___ 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 ___ 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: multi-line constants? (for RSA keys)
Really? Has this changed? I remember a thread some time ago where it was stated that a substack can be extracted as is from a compiled project and run in the IDE. Granted, if the stacks are password protected, it would be very difficult to get to the code, but they are not “compiled” the way the mainstack is. It was my impression that the mainstack gets *glued* together with the runtime engine and is not accessible in the same way the substacks are, which are merely included in a subfolder or in the case of OS X, in the package. Is this no longer the case? Or have I simply misunderstood all this time? Bob Sneidar IT Technician Integrated Office Technology bobsnei...@iotecdigital.commailto:bobsnei...@iotecdigital.com 424-233-7201 On Mar 28, 2014, at 19:51 , J. Landman Gay jac...@hyperactivesw.commailto:jac...@hyperactivesw.com wrote: On 3/28/14, 6:47 PM, Bob Sneidar wrote: It is my understanding (somewhat limited I admit) that any code you do not want others to have access to should be put in the mainstack of a compiled application. If you have any substacks they will of course be accessible by anyone with a little know how. Actually, if they really are substacks, they are part of the same file on disk and have the same security/obscurity as the mainstack. Separate document stacks, of course, can be opened by anyone with a copy of LiveCode. -- Jacqueline Landman Gay ___ 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: new at size clause in export snapshot
Odd. Yes, this does work just fine. Not sure what I did earlier. All is well again. Thanks. On Mar 28, 2014, at 3:49 PM, Jan Schenkel janschen...@yahoo.com wrote: That's odd, I tested it earlier on a Windows machine, and again just now on a Mac, with LC 6.6 Here's my recipe: - create a new stack - drag an image and a button on it - set the button script to: ## on mouseUp local tObj, tData, tHeight, tWidth put the long id of me into tObj put 4 * the height of tObj into tHeight put 4 * the width of tObj into tWidth export snapshot from tObj at size tWidth, tHeight to tData as PNG put tData into image 1 end mouseUp ## Click on the button and the image gets set without any issues. Jan Schenkel. = Quartam Reports PDF Library for LiveCode www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) On Fri, 3/28/14, Chris Sheffield cmsheffi...@icloud.com wrote: Subject: Re: new at size clause in export snapshot To: How to use LiveCode use-livecode@lists.runrev.com Date: Friday, March 28, 2014, 2:21 PM Thanks, Jan. Making that change at least allowed my script to compile. Unfortunately, I got a run-time error. So something is still up. However, import snapshot works. I just had to take an extra step to deal with the created image. I’ll get a bug report submitted asap. Thanks, Chris ___ 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 ___ 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: What does compile error rotate: error in angle description mean?
Hi James, I haven't seen that error but I have successfully loaded and used an SQLite extension. The extension is available at http://www.monkeybreadsoftware.de/SQLiteExtension/ and has a bunch of new string and math functions in it. It's not free but has a demo version. The only difference between your code and mine is that I use revDataFromQuery rather than revExecuteSQL. I know that you get a revdberror back from that if there's something wrong with the load_extension call - I had a typo in the filename initially which resulted in an error. Also, the error message is curious since it says it's a compile error, but you got it at runtime. Could it be an issue with whatever extension you are trying to load? Pete Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sun, Mar 30, 2014 at 8:02 PM, James Hale ja...@thehales.id.au wrote: Hi, I am starting to get this error when running my scripts: compile error rotate: error in angle description Which if I was doing anything remotely graphical I could perhaps understand. But I am not doing anything to do with angles or rotation. The most recent example of getting this error was with the following handler: On loadextension Put getDatabaseID() into tDatabaseID put specialfolderpath(documents)/sqlite test/okapi_bm25.sqlext into the_extension put SELECT load_extension('the_extension') into tSQL revExecuteSQL tDatabaseID, tSQL End loadextension Stepping through the handler the error only comes up on executing the revExecuteSQL command. I connected with the database using the new syntax enabling the loading of extensions yet it does seem as if the database call is having some difficulty. Two questions I guess. 1. Anyone had this error message when not doing anything with rotations? If so, did you discover what it meant? 2. anyone had luck on loading extensions to SQLite? Perplexed, James ___ 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 ___ 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: multi-line constants? (for RSA keys)
On 3/31/14, 10:10 AM, Bob Sneidar wrote: It was my impression that the mainstack gets*glued* together with the runtime engine and is not accessible in the same way the substacks are, which are merely included in a subfolder or in the case of OS X, in the package. Is this no longer the case? Or have I simply misunderstood all this time? If the substacks are true substacks, they are glued to the engine the same way the mainstack is. This is the standard way substacks work. All stacks in a standalone are part of the same file on disk and received the same protection. However, there is a checkbox in standalone settings that allows you to save out substacks as separate files during the build. If you choose to do that, then they are no longer substacks, they are removed from the file and turned into individual document stacks. Those are the same as any other stack you'd use during development and as such, they are no longer part of your app. They're just loose in the folder (or in the bundle on Macs) and can be opened by anyone with a copy of LiveCode, no tricks required. The scripts will be obscured if the stack is password protected but everything else, including properties, will be accessible because it's just a plain old stack now. So if you want the same protection you'd get in the mainstack, just make sure you don't have that checkbox selected. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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: What does compile error rotate: error in angle description mean?
On 3/30/14, 10:02 PM, James Hale wrote: I am starting to get this error when running my scripts: compile error rotate: error in angle description Since you're getting that error while using a new feature, it sounds to me like the engine has linked it to the wrong error code. I'd bug report it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
LiveCode 6.6.1 RC1
Dear List Members. We are pleased to announce the release of LiveCode 6.6.1 RC1. This is a maintenance release for the 6.6 series and contain 4 bug fixes. The most notable bug fix is 12010 which resulted in quite a number of bug reports on Windows. It caused applications to stop redrawing correctly, lock ups and even crashes when applications were run for a long period of time. *Release Contents* - 4 bug fixes - 12010 - Windows engine hangs after multiple stack redraws. - 11975 - import snapshot from rect ... only imports part of the screen on Windows - 11946 - iOS 7.1 Simulator doesn't remember device type when launching using 'Test' - 11708 - Android apps only partially drawn after rotating device during lock screen *Getting this release* To upgrade to this release please select check for updates from the help menu in LiveCode or download the installers directly at: http://downloads.livecode.com/livecode/ *Reporting Bugs* If you encounter an issue with this release please submit a bug report to our quality centre: http://quality.runrev.com/enter_bug.cgi Warm regards, The LiveCode Team _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple ___ 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: LiveCode 6.6.1 RC1
When can Mac Users have a Tab Panel that does not display the selected tab with black text on a dark grey background? I am a new user of LC and find this rather off-putting. I believe, not 100% sure, that this has been requested 2 years ago? Thanks Terry On 31 Mar 2014, at 18:47, Benjamin Beaumont b...@runrev.com wrote: Dear List Members. We are pleased to announce the release of LiveCode 6.6.1 RC1. This is a maintenance release for the 6.6 series and contain 4 bug fixes. The most notable bug fix is 12010 which resulted in quite a number of bug reports on Windows. It caused applications to stop redrawing correctly, lock ups and even crashes when applications were run for a long period of time. *Release Contents* - 4 bug fixes - 12010 - Windows engine hangs after multiple stack redraws. - 11975 - import snapshot from rect ... only imports part of the screen on Windows - 11946 - iOS 7.1 Simulator doesn't remember device type when launching using 'Test' - 11708 - Android apps only partially drawn after rotating device during lock screen *Getting this release* To upgrade to this release please select check for updates from the help menu in LiveCode or download the installers directly at: http://downloads.livecode.com/livecode/ *Reporting Bugs* If you encounter an issue with this release please submit a bug report to our quality centre: http://quality.runrev.com/enter_bug.cgi Warm regards, The LiveCode Team _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple ___ 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 ___ 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: LiveCode 6.6.1 RC1
Hear, hear. Peter On Mar 31, 2014, at 11:06 AM, Terence Heaford t.heaf...@btinternet.com wrote: When can Mac Users have a Tab Panel that does not display the selected tab with black text on a dark grey background? I am a new user of LC and find this rather off-putting. I believe, not 100% sure, that this has been requested 2 years ago? Thanks Terry On 31 Mar 2014, at 18:47, Benjamin Beaumont b...@runrev.com wrote: Dear List Members. We are pleased to announce the release of LiveCode 6.6.1 RC1. This is a maintenance release for the 6.6 series and contain 4 bug fixes. The most notable bug fix is 12010 which resulted in quite a number of bug reports on Windows. It caused applications to stop redrawing correctly, lock ups and even crashes when applications were run for a long period of time. *Release Contents* - 4 bug fixes - 12010 - Windows engine hangs after multiple stack redraws. - 11975 - import snapshot from rect ... only imports part of the screen on Windows - 11946 - iOS 7.1 Simulator doesn't remember device type when launching using 'Test' - 11708 - Android apps only partially drawn after rotating device during lock screen *Getting this release* To upgrade to this release please select check for updates from the help menu in LiveCode or download the installers directly at: http://downloads.livecode.com/livecode/ *Reporting Bugs* If you encounter an issue with this release please submit a bug report to our quality centre: http://quality.runrev.com/enter_bug.cgi Warm regards, The LiveCode Team _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple ___ 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 ___ 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 ___ 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: Sorting issue in a datagrid
What is the kind of data and kind of sort for this column? Marek ___ 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: LiveCode 6.6.1 RC1
On Mar 31, 2014, at 12:15 PM, Peter Bogdanoff bogdan...@me.com wrote: Hear, hear. Peter On Mar 31, 2014, at 11:06 AM, Terence Heaford t.heaf...@btinternet.com wrote: When can Mac Users have a Tab Panel that does not display the selected tab with black text on a dark grey background? I am a new user of LC and find this rather off-putting. I believe, not 100% sure, that this has been requested 2 years ago? This will probably be doable once theming is added. It was one of the Kickstarter stretch goals. https://www.kickstarter.com/projects/1755283828/open-source-edition-of-livecode/posts/414431 Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com ___ 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: Sorting issue in a datagrid
Yes I'm with Marek in wondering about the data you have in column 2 - also - could there be anything in name of column 2 which might confuse the engine? And one last thing, do you have any other data grids in your app? If so what are they (and their columns) called and do they also exhibit any strange behaviour? - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sorting-issue-in-a-datagrid-tp4677730p4677742.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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: LiveCode 6.6.1 RC1
Forgive my scepticism. I have just followed your link and noted the following under the Cocoa stretch goal. Despite this we are NOT getting native Cocoa controls. Upgrade our Mac OS X platform support to fully use Cocoa. This will ensure seamless support of all the latest Mac OS X features. Create beautiful OS X apps that get all little user interface details spot on. All the best Terry On 31 Mar 2014, at 20:45, Devin Asay devin_a...@byu.edu wrote: On Mar 31, 2014, at 12:15 PM, Peter Bogdanoff bogdan...@me.com wrote: Hear, hear. Peter On Mar 31, 2014, at 11:06 AM, Terence Heaford t.heaf...@btinternet.com wrote: When can Mac Users have a Tab Panel that does not display the selected tab with black text on a dark grey background? I am a new user of LC and find this rather off-putting. I believe, not 100% sure, that this has been requested 2 years ago? This will probably be doable once theming is added. It was one of the Kickstarter stretch goals. https://www.kickstarter.com/projects/1755283828/open-source-edition-of-livecode/posts/414431 Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com ___ 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 ___ 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: What does compile error rotate: error in angle description mean?
James Hale james@... writes: Two questions I guess. 1. Anyone had this error message when not doing anything with rotations? If so, did you discover what it meant? 2. anyone had luck on loading extensions to SQLite? 1. That's definitely the wrong error code for what you're trying to do. 2. I haven't experimented with this yet, but I notice you've got a space in the middle of your file path. I'd get rid of the space to eliminate that as a cause of problems - you *are* putting single quotes around the whole path, so in theory it should be OK... what happens if you answer tSQL before calling revExecuteSQL? -- Mark Wieder ahsoftw...@gmail.com ___ 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: Advice of cheap/free online server
Nakia Brewer Nakia.Brewer@... writes: Yes, eventually I will need to make it accessible over the internet. With this method am I true in assuming I will be able to connect to the MySQL Database on my server over the internet? Sorry if this is a dumb question. I just haven't done anything with non-local databases. Just catching up on this thread. You have to go out of your way to connect to a database over a network. Normally the database is limited to connections from the same computer the database is running on. This is by design. It's a security risk over a local network, and even more so over the internet. In order to change this you need to change the database configuration, and doing that depends on the type of database you'll be using. A better solution, especially since you're going to be installing LC server, is to let the server connect to the database, and then you talk to the server from a remote connection. -- Mark Wieder ahsoftw...@gmail.com ___ 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: LiveCode 6.6.1 RC1
On Mar 31, 2014, at 2:00 PM, Terence Heaford t.heaf...@btinternet.com wrote: Forgive my scepticism. I have just followed your link and noted the following under the Cocoa stretch goal. Despite this we are NOT getting native Cocoa controls. Upgrade our Mac OS X platform support to fully use Cocoa. This will ensure seamless support of all the latest Mac OS X features. Create beautiful OS X apps that get all little user interface details spot on. Point taken. But there are lots of reasons to upgrade to Cocoa, native controls is only one of them. The LiveCode team seem to be focusing on the under-the-hood stuff for now. From the release notes: • Allow embedding of native 'NSViews' into LiveCode windows (in particular, browser controls). • Enable submission of LiveCode apps to the Mac AppStore. • Enable eventual building of 64-bit versions of LiveCode for Mac. The point of theme support, on the other hand, is pretty narrow--allow developers to create exactly the look and feel they want. RunRev are still in the early stages of implementing some of these stretch goals. I wouldn't give up pushing for native Cocoa controls. Regards, Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com ___ 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: setProp fuvction and field text in livecode 7
On Mar 30, 2014, at 10:04 AM, Muaadh Salih m...@soas.ac.uk wrote: Now we can use unicode for various text language entries and manipulation there is one ,apparent, remaining issue of setting textfont of a field : Having changed Txtalign and textfont to agree with Arabic-Hebrew language in the field, text will not be stitched until (shift-alt) is used,manually !!, to change the pc language first. Is there a way ( i am sure there might be one) of using setProp function to set the stack script to to change language to Hebrew, Arabic. Hindi...? Many thanks for every body's immense help Muaadh, You should definitely post a bug report on this issue against LC 7 at http://quality.runrev.com/qacenter/. They seem particularly keen to get the details of unicode right. Devin Devin Asay Office of Digital Humanities Brigham Young University ___ 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
very, very slow on Mac Mini
My application performs snappily on my iMac and powerbook, both with 16gb. On the mini, though, it turns to molasses. As in taking several seconds to turn a from one fairly simple card to the next, which is instantaneous in either the IDE or a standalone on the other two. It's a slower machine, but not *that* much slower. And this was the only loaded application. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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: very, very slow on Mac Mini
On all three have Activity Monitor available and see what the numbers are for CPU and Memory; not just the raw numbers but also the relative ranking. Is the Mac Mini only occasionally used, is there a possibility that Spotlight was in the middle of a massive index - process mdworker - which was notorious on Lion and Mountain Lion for slowing Time Machine into a multi-day exercise. Was Time Machine doing it's thing, or any other back-up software. Again, if this is an occasionally turn on machine is it possible that all the Auto-Update features are On (they typically are by default) and it was downloading a bunch of updates and installing them? I have a mid 2011 Mac Mini with 8 GB Ram and Lion 10.7.5 and my stacks run the same as my mid 2012 MBP 15 Retina with 16 GB and Mavericks 10.9.2. Actually, apparently a bit faster on the Mac Mini until I employed the Retina display workaround using QuickRes as posted here by Neil Roger. On Tue, Apr 1, 2014 at 8:12 AM, Dr. Hawkins doch...@gmail.com wrote: My application performs snappily on my iMac and powerbook, both with 16gb. On the mini, though, it turns to molasses. As in taking several seconds to turn a from one fairly simple card to the next, which is instantaneous in either the IDE or a standalone on the other two. It's a slower machine, but not *that* much slower. And this was the only loaded application. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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 ___ 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
how to sort lines with a $ amount
I have a field with a date, name, number and finally a dollar amount such as $10 - in each line of the field. I can sort the lines of the field just fine on word 1 (date), word 2 (name) and word 3 (number) But when I try to sort on word 4, I don't know how to get it to come out right because the $ in front makes it a string and not a number. So I get something like this: $11.00 $120.00 $47.00 When what I want is: $11.00 $47.00 $120.00 Thanks in advance for any enlightenment! Larry ___ 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: how to sort lines with a $ amount
I would employ a dual-system where the displayed values are just a display and the 'real' values to be sorted would be in a custom property of the field. The display field could be refreshed as needed after calculation. LC is so fast one shouldn't worry about speed issues with this. another way would be a narrow field that could just show the dollar signs with the same font, but alignment would be a bigger issue.. On Mon, Mar 31, 2014 at 7:03 PM, la...@significantplanet.org wrote: So I get something like this: $11.00 $120.00 $47.00 When what I want is: $11.00 $47.00 $120.00 Thanks in advance for any enlightenment! Larry *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* ___ 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: how to sort lines with a $ amount
If you can really really count on the $ always being present, you could do: sort the lines of field myStuff numeric by char 2 to -1 of word 4 of each On Mar 31, 2014, at 7:03 PM, la...@significantplanet.org wrote: I have a field with a date, name, number and finally a dollar amount such as $10 - in each line of the field. I can sort the lines of the field just fine on word 1 (date), word 2 (name) and word 3 (number) But when I try to sort on word 4, I don't know how to get it to come out right because the $ in front makes it a string and not a number. So I get something like this: $11.00 $120.00 $47.00 When what I want is: $11.00 $47.00 $120.00 Thanks in advance for any enlightenment! Larry ___ 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 ___ 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: how to sort lines with a $ amount
If the $amount is always the last column in the field… set the itemDel to $ sort lines of fld myField ascending numeric by item 2 of each Paul On 2014-03-31, at 7:03 PM, la...@significantplanet.org wrote: I have a field with a date, name, number and finally a dollar amount such as $10 - in each line of the field. I can sort the lines of the field just fine on word 1 (date), word 2 (name) and word 3 (number) But when I try to sort on word 4, I don't know how to get it to come out right because the $ in front makes it a string and not a number. So I get something like this: $11.00 $120.00 $47.00 When what I want is: $11.00 $47.00 $120.00 Thanks in advance for any enlightenment! Larry ___ 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 ___ 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: how to sort lines with a $ amount
On 3/31/14, 9:03 PM, la...@significantplanet.org wrote: I can sort the lines of the field just fine on word 1 (date), word 2 (name) and word 3 (number) But when I try to sort on word 4, I don't know how to get it to come out right because the $ in front makes it a string and not a number. You can sort using a custom function and that's what I'd do here. If the values are in field 1, then: on mouseUp sort lines of fld 1 numeric by moneySort(each) end mouseUp function moneySort pItem if char 1 of pItem = $ then delete char 1 of pItem return pItem end moneySort Custom function sorting can do all kinds of clever things. The each is passed to the function and the sort uses the return value to determine the final order. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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: how to sort lines with a $ amount
No fair, Jacque, I *just* finished testing: function dollarsAsNumber D if char 1 of D is $ then return char 2 to -1 of D else return D end dollarsAsNumber gc On Mon, Mar 31, 2014 at 10:02 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 3/31/14, 9:03 PM, la...@significantplanet.org wrote: I can sort the lines of the field just fine on word 1 (date), word 2 (name) and word 3 (number) But when I try to sort on word 4, I don't know how to get it to come out right because the $ in front makes it a string and not a number. You can sort using a custom function and that's what I'd do here. If the values are in field 1, then: on mouseUp sort lines of fld 1 numeric by moneySort(each) end mouseUp function moneySort pItem if char 1 of pItem = $ then delete char 1 of pItem return pItem end moneySort Custom function sorting can do all kinds of clever things. The each is passed to the function and the sort uses the return value to determine the final order. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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 ___ 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: how to sort lines with a $ amount
Thank you everyone for your quick response to my question! - Original Message - From: Geoff Canyon gcan...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, March 31, 2014 9:06 PM Subject: Re: how to sort lines with a $ amount No fair, Jacque, I *just* finished testing: function dollarsAsNumber D if char 1 of D is $ then return char 2 to -1 of D else return D end dollarsAsNumber gc On Mon, Mar 31, 2014 at 10:02 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 3/31/14, 9:03 PM, la...@significantplanet.org wrote: I can sort the lines of the field just fine on word 1 (date), word 2 (name) and word 3 (number) But when I try to sort on word 4, I don't know how to get it to come out right because the $ in front makes it a string and not a number. You can sort using a custom function and that's what I'd do here. If the values are in field 1, then: on mouseUp sort lines of fld 1 numeric by moneySort(each) end mouseUp function moneySort pItem if char 1 of pItem = $ then delete char 1 of pItem return pItem end moneySort Custom function sorting can do all kinds of clever things. The each is passed to the function and the sort uses the return value to determine the final order. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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 ___ 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 ___ 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: how to sort lines with a $ amount
Jerry, Yours was the simplest solution. Thanks very much! FYI, I had to leave out the to make it work. So my script is: sort lines of field myStuff numeric by char 2 to -1 of word 4 of each Larry - Original Message - From: Jerry Jensen j...@jhj.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, March 31, 2014 8:48 PM Subject: Re: how to sort lines with a $ amount If you can really really count on the $ always being present, you could do: sort the lines of field myStuff numeric by char 2 to -1 of word 4 of each ___ 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: how to sort lines with a $ amount
Oops. So much for not testing. I like Jacqui's the best. Passing each to a function opens a lot of doors. .Jerry On Mar 31, 2014, at 8:28 PM, la...@significantplanet.org wrote: Jerry, Yours was the simplest solution. Thanks very much! FYI, I had to leave out the to make it work. So my script is: sort lines of field myStuff numeric by char 2 to -1 of word 4 of each Larry - Original Message - From: Jerry Jensen j...@jhj.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, March 31, 2014 8:48 PM Subject: Re: how to sort lines with a $ amount If you can really really count on the $ always being present, you could do: sort the lines of field myStuff numeric by char 2 to -1 of word 4 of each ___ 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: how to sort lines with a $ amount
Yes, but you pointed me in the right direction. Jacqui's is good and I'm sure I'll use something like that one day. Yours was 1 line of code and very adequate for my current needs! Thanks again! (plus with yours I learned about being able to sort by char and word within the same line of code.) - Original Message - From: Jerry Jensen j...@jhj.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, March 31, 2014 9:37 PM Subject: Re: how to sort lines with a $ amount Oops. So much for not testing. I like Jacqui's the best. Passing each to a function opens a lot of doors. .Jerry On Mar 31, 2014, at 8:28 PM, la...@significantplanet.org wrote: Jerry, Yours was the simplest solution. Thanks very much! FYI, I had to leave out the to make it work. So my script is: sort lines of field myStuff numeric by char 2 to -1 of word 4 of each Larry - Original Message - From: Jerry Jensen j...@jhj.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, March 31, 2014 8:48 PM Subject: Re: how to sort lines with a $ amount If you can really really count on the $ always being present, you could do: sort the lines of field myStuff numeric by char 2 to -1 of word 4 of each ___ 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 ___ 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: how to sort lines with a $ amount
I also learned from Jacqui that to scramble the lines of a field: sort lines of field stuffToScramble by random(9) Neat trick, that. On Mar 31, 2014, at 8:41 PM, la...@significantplanet.org wrote: Yes, but you pointed me in the right direction. Jacqui's is good and I'm sure I'll use something like that one day. Yours was 1 line of code and very adequate for my current needs! Thanks again! (plus with yours I learned about being able to sort by char and word within the same line of code.) - Original Message - From: Jerry Jensen j...@jhj.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, March 31, 2014 9:37 PM Subject: Re: how to sort lines with a $ amount Oops. So much for not testing. I like Jacqui's the best. Passing each to a function opens a lot of doors. .Jerry On Mar 31, 2014, at 8:28 PM, la...@significantplanet.org wrote: Jerry, Yours was the simplest solution. Thanks very much! FYI, I had to leave out the to make it work. So my script is: sort lines of field myStuff numeric by char 2 to -1 of word 4 of each Larry - Original Message - From: Jerry Jensen j...@jhj.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, March 31, 2014 8:48 PM Subject: Re: how to sort lines with a $ amount If you can really really count on the $ always being present, you could do: sort the lines of field myStuff numeric by char 2 to -1 of word 4 of each ___ 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 ___ 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 ___ 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
points vs rect of a graphic
I have a graphic that doesn't want to be visible. Its visible is true. Its backColor is black. It is the topmost object. Its lineSize is 1. I've tried everything I can think of, and it still doesn't show up. Here's the weird part: put the rect of grc id 1557 of stack revnavigator 1 cr the points of grc id 1557 of stack revnavigator 1 That's putting this: 8,192,235,199 0,73 3,75 222,75 225,73 225,78 222,76 3,76 0,78 0,73 Is it possible for the rect and the points to be in disagreement like that? The lockLoc is false. And now for the solution: set the points of grc id 1557 of stack revnavigator 1 to the points of grc id 1557 of stack revnavigator 1 That made it pop into view. Any ideas? LC 6.5.2 on a Mac. ___ 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: points vs rect of a graphic
Geoff: If your point list really has spaces in it like below, you've essentially got a bunch of disconnected points. If you set the linesize to a higher number, you'd see the points come into view. I seem to recall back in the day you were the one who discovered the spaces-in-a-list-of-points aspect about (at the time) Revolution. In one sense, the behavior is weird, but there are some useful ways to take advantage of the feature. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 3/31/14 9:10 PM, Geoff Canyon gcan...@gmail.com wrote: I have a graphic that doesn't want to be visible. Its visible is true. Its backColor is black. It is the topmost object. Its lineSize is 1. I've tried everything I can think of, and it still doesn't show up. Here's the weird part: put the rect of grc id 1557 of stack revnavigator 1 cr the points of grc id 1557 of stack revnavigator 1 That's putting this: 8,192,235,199 0,73 3,75 222,75 225,73 225,78 222,76 3,76 0,78 0,73 Is it possible for the rect and the points to be in disagreement like that? The lockLoc is false. And now for the solution: set the points of grc id 1557 of stack revnavigator 1 to the points of grc id 1557 of stack revnavigator 1 That made it pop into view. Any ideas? LC 6.5.2 on a Mac. ___ 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 ___ 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: HTTPS Proxy and PAC files
For what it's worth, I have also noticed today that LiveCode is unable to complete an Activation automatically through my work network...Have to do a manual activation. Nakia Brewer | Technology Solutions Manager | Equipment Management Solutions t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au ACN 009 342 572 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Nakia Brewer Sent: Friday, 28 March 2014 8:47 AM To: How to use LiveCode Subject: RE: HTTPS Proxy and PAC files No I haven't listed a bug yet as I am kind of in the same situation as Jacque. They will ask for details relating to the network and PAC file which I can't provide as I am operating from a work network. Disclosing any of the details Will likely land me in trouble. This really needs to someone better than me to lodge a descriptive bug... Nakia Brewer | Technology Solutions Manager | Equipment Management Solutions t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au ACN 009 342 572 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Trevor DeVore Sent: Thursday, 27 March 2014 11:34 PM To: How to use LiveCode Subject: Re: HTTPS Proxy and PAC files On Wed, Mar 26, 2014 at 9:06 PM, J. Landman Gay jac...@hyperactivesw.comwrote: Nakia, did you report this yet? I don't see it in the bug database. I started to do it myself but realized I just don't have enough information. Or Trevor, maybe you could? You seem to know what's wrong. I need this fixed but I'm not sure what to say. I don't have things set up to properly to file a bug report on this. I just know what might be going on under the hood as I previously added support for PAC and WPAD detection to the GLX Ap Framework version of libURL. Based on what Nakia describes it sounds like LiveCode is not picking up the system assigned PAC file. Based on the 6.6 release notes it should so I would report a bug: LibURL has been updated to add support for proxy auto configuration files (PAC). If no global proxy server has been set using the HTTPProxy property, when fetching a URL, LibURL will attempt to parse the systems .pac file in order to extract the proxy server (if any) to use for the given URL. -- Trevor DeVore Blue Mango Learning Systems www.screensteps.com-www.clarify-it.com ___ 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 COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. ___ 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 COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. ___ 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: points vs rect of a graphic
On Mar 31, 2014, at 11:27 PM, Scott Rossi sc...@tactilemedia.com wrote: If your point list really has spaces in it like below, you've essentially got a bunch of disconnected points. No extra returns, that's just gmail borking the formatting. :-/ I should also mention this is in a palette. In a regular stack it works fine. Btw, it's your drag and drop code for lists, and the graphic in question is the drag pointer. I'm finally replacing the old, broken DaD code in Navigator. ___ 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