Re: Identifying IDE stacks
This has been informative. IDEUserMainStacks() is exactly what I want, I don't care about substacks at the moment. With four or five different ways to get the info, I think all bases are covered. Many thanks to those who have the courage to dig through the IDE scripts. On 4/27/18 7:42 PM, Brian Milby via use-livecode wrote: If you just want a list then: ideUserMainStacks will provide part of what you are looking for (no sub stacks in my brief test). If you want substacks too, then use: revLoadedStacks (Common library) On Fri, Apr 27, 2018 at 7:24 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: On 04/27/2018 03:40 PM, Bob Sneidar via use-livecode wrote: Redundantly redundant. Heh. There's a hierarchy here: revIDEStackIsIDEStack(id) calls revIDEStackNameIsIDEStack(short name) which calls revStackNameIsIDEStack(short name) ... which may call revInternal__ListLoadedLibraries(), but that's another story. -- 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 ___ 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 -- 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: Identifying IDE stacks
If you just want a list then: ideUserMainStacks will provide part of what you are looking for (no sub stacks in my brief test). If you want substacks too, then use: revLoadedStacks (Common library) On Fri, Apr 27, 2018 at 7:24 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 04/27/2018 03:40 PM, Bob Sneidar via use-livecode wrote: > > Redundantly redundant. > > Heh. There's a hierarchy here: > > revIDEStackIsIDEStack(id) calls > revIDEStackNameIsIDEStack(short name) which calls > revStackNameIsIDEStack(short name) > > ... which may call revInternal__ListLoadedLibraries(), but that's > another story. > > -- > 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 > ___ 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: Identifying IDE stacks
On 04/27/2018 03:40 PM, Bob Sneidar via use-livecode wrote: Redundantly redundant. Heh. There's a hierarchy here: revIDEStackIsIDEStack(id) calls revIDEStackNameIsIDEStack(short name) which calls revStackNameIsIDEStack(short name) ... which may call revInternal__ListLoadedLibraries(), but that's another story. -- 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
Project Browser - Sort Stack Preferences
I was trying the Project Browser's prefs. Sort stacks by layer ascending. It reverts to "Name" … can't keep it stick to "layer" 8.1.10 rc 1 Any else see this? BR ___ 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: Identifying IDE stacks
Interesting...so there are two ways. It looks like revIDEStackIsIDEStack needs a long id, and revStackNameIsIDEStack needs only the short name but will also accept a long ID. Thanks for finding the list of qualifications. On 4/27/18 5:09 PM, Mark Wieder via use-livecode wrote: On 04/27/2018 02:45 PM, J. Landman Gay via use-livecode wrote: It used to be we could identify IDE stacks because their names started with "rev" but that's not true anymore. I want to scan for and list any open non-IDE stacks. Does anyone know offhand if there's an existing function in the IDE that identifies IDE stacks? Or maybe there's a property to check for? If you're just looking at the open stacks, you can iterate through them using revStackNameIsIDEStack(tStackName) which will return true if it's a system stack. According to the comments for revIDEStackNameIsIDEStack which call it, A stack is considered part of the IDE if any of the following are satisfied: * Its name begins with "rev" * It was loaded by the initialisation library * Its name begins with "com.livecode." * Its name is "message box, answer dialog, ask dialog, or home" * Its _ideoverride property is true -- 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: Identifying IDE stacks
Redundantly redundant. Bob S > On Apr 27, 2018, at 14:59 , Ali Lloyd via use-livecode >wrote: > > That would be revIDEStackIsIDEStack ___ 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: Detailed File Information for One File
> On Apr 27, 2018, at 13:39 , Richard Gaskin via use-livecode >wrote: > > Bob Sneidar wrote: > >> Not to beat a severely wounded horse, but one reason for implementing >> a detailed file function (and probably why it hasn't been tackled) is >> that getting the detailed file information from a command shell is >> decidedly NOT straightforward. > > Shell is great for things we can't do in LiveCode Script yet may not warrant > writing special C-based API interfaces for in LC Builder. > > But in addition to the complexity of attempting to rely on such interprocess > communication across platforms, it also carries a certain impact on memory > and performance. > > "Why run one process when you can run two at twice the price!" :) Thanks Richard. I went ahead earlier and implemented the detailed files method and then filtered by filename & *. Works great. I have functions that takes the last modified seconds and converts it to an SQL datetime format. Now I can look at the filename (no matter what the path to the file appears to be to the end user's app) along with the last mod datetime. If those two are identical it is the same file, albeit possibly another copy, which doesn't matter to me. I'm attempting to build into my app a files system with versioning and custom user/group permissions in anticipation of a workflow based interface. That will take the Forms Generator to a whole new level! Wheee! Bob S ___ 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: Q on Accessing multi-dimension arrays.
I must confess, ‘fettle’ is very much a Waddingham-ism that I have found myself using increasingly often! On Fri, 27 Apr 2018 at 20:17, Ralph DiMola via use-livecode < use-livecode@lists.runrev.com> wrote: > What's the difference between a violin and a fiddle? > A violin has strings and a fiddle has strgs. > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > > -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On > Behalf Of Bob Sneidar via use-livecode > Sent: Friday, April 27, 2018 10:51 AM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Re: Q on Accessing multi-dimension arrays. > > Fettling! I'm going to start using that! > > fet·tle > ˈfedl/ > verb > gerund or present participle: fettling > • trim or clean the rough edges of (a metal casting or a piece of > pottery) before firing. > > Apparently appropriate as well. Pronounced like feddle, likely where we > get our fiddle with. And I always thought it was a reference to playing a > violin-like musical instrument! > > Bob S > > > > On Apr 27, 2018, at 24:21 , Ali Lloyd via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Which reminds me - the tree view widget should probably use the list > > form of a path directly instead of fettling with a path delimiter > > property > > ___ > 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: Identifying IDE stacks
On 04/27/2018 02:45 PM, J. Landman Gay via use-livecode wrote: It used to be we could identify IDE stacks because their names started with "rev" but that's not true anymore. I want to scan for and list any open non-IDE stacks. Does anyone know offhand if there's an existing function in the IDE that identifies IDE stacks? Or maybe there's a property to check for? If you're just looking at the open stacks, you can iterate through them using revStackNameIsIDEStack(tStackName) which will return true if it's a system stack. According to the comments for revIDEStackNameIsIDEStack which call it, A stack is considered part of the IDE if any of the following are satisfied: * Its name begins with "rev" * It was loaded by the initialisation library * Its name begins with "com.livecode." * Its name is "message box, answer dialog, ask dialog, or home" * Its _ideoverride property is true -- 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: Identifying IDE stacks
Thanks Ali. :) On 4/27/18 4:59 PM, Ali Lloyd via use-livecode wrote: That would be revIDEStackIsIDEStack On Fri, Apr 27, 2018 at 10:45 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: It used to be we could identify IDE stacks because their names started with "rev" but that's not true anymore. I want to scan for and list any open non-IDE stacks. Does anyone know offhand if there's an existing function in the IDE that identifies IDE stacks? Or maybe there's a property to check for? -- 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 -- 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: Identifying IDE stacks
That would be revIDEStackIsIDEStack On Fri, Apr 27, 2018 at 10:45 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > It used to be we could identify IDE stacks because their names started > with "rev" but that's not true anymore. I want to scan for and list any > open non-IDE stacks. Does anyone know offhand if there's an existing > function in the IDE that identifies IDE stacks? Or maybe there's a > property to check for? > > -- > 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
Identifying IDE stacks
It used to be we could identify IDE stacks because their names started with "rev" but that's not true anymore. I want to scan for and list any open non-IDE stacks. Does anyone know offhand if there's an existing function in the IDE that identifies IDE stacks? Or maybe there's a property to check for? -- 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: Splitting long elements into two lines in an Option Menu
Well that chopping up doesn't have to take place between fields: it could, say, start with the string in a string-variable, and the chopped-up bits end up in a 2-dimensional array. Richmond. On 27/4/2018 5:47 pm, Bob Sneidar via use-livecode wrote: On a mobile device?? Bob S On Apr 27, 2018, at 02:09 , Richmond via use-livecodewrote: I've just set up a stack containing 2 fields; one called "fff" containing your original string, another called "fCHOPPED" that is a scrolling list field. I have a button containing this script: on mouseUp put fld "fff" into FFF set the itemDelimiter to "," put 1 into KOUNT repeat until item KOUNT of FFF is empty put item KOUNT of FFF into line KOUNT of fld "fCHOPPED" add 1 to KOUNT end repeat end mouseUp which puts the string into the scrolling list field like this: /Dialyse rénale insuffisance rénale maladie rénaleDID diabète de type 1// //diabète insulino dépendant/ Richmond. On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote: /Dialyse rénale, insuffisance rénale, maladie rénaleDID, diabète de type 1//,//diabète insulino dépendant/ ___ 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
Question: script only stacks in iOS?
Folks: I can’t seem to get an external script only stack to get assigned to the “Stacks” list for an iOS app in LC 9.0.0. Thus, it appears to me that all stacks must be substacks in iOS. Is this true? Best, Bill William A. Prothero http://earthlearningsolutions.org ___ 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: Detailed File Information for One File
Bob Sneidar wrote: Not to beat a severely wounded horse, but one reason for implementing a detailed file function (and probably why it hasn't been tackled) is that getting the detailed file information from a command shell is decidedly NOT straightforward. Shell is great for things we can't do in LiveCode Script yet may not warrant writing special C-based API interfaces for in LC Builder. But in addition to the complexity of attempting to rely on such interprocess communication across platforms, it also carries a certain impact on memory and performance. "Why run one process when you can run two at twice the price!" :) In the enhancement request I cited earlier: https://quality.livecode.com/show_bug.cgi?id=20384 ...Trevor raised a good point about instances where apparently macOS sometimes disallows access to a folder even while allowing access to specific files within it. It's hard for me to see how that would not be a configuration error on any other system, but I trust Apple has a good reason for that. And in such cases, we're hosed with any current LC Script solution that needs access to the whole folder's content. But for the other 99.9% of cases, using a scripted handler reduces the task to a one-liner, here made even more convenient by allowing either the detailed info returned in its LC-native comma-delimited format or as an array if preferred: on mouseUp put specialFolderPath("desktop")&"/test/Thisisafilename1000" into tPath put fwFileInfo( tPath, "Array") into tA if the result is not empty then answer the result else put the keys of tA end if end mouseUp function fwFileInfo pFile, pArrayFlag -- Returns info for the file specified in pFile. -- By default, returns the data in comma-delimited -- form in the order specified by "detailed files". -- With any value in the optional pArrayFlag arg -- it will return an array with descriptive keys. -- if there is not a file pFile then return "No such file: "& pFile for error end if set the itemdel to "/" put urlEncode(last item of pFile) into tFileName put item 1 to -2 of pFile into tPath put files(tPath, "detailed") into tFiles if the result is not empty then return "Error getting file info: "& the result & \ " ("()&")" for error end if put lineoffset(cr& tFileName&",", cr) into tLineNum put line tLineNum of tFiles into tInfo if pArrayFlag is empty then return tInfo for value else set the itemdel to "," put 0 into i put "name,size,resourceSize,dateCreated,dataModified,dateAccessed,"& \ "dateBackedUp,owner,group,permissions,MacType" into tFields repeat for each item tItem in tInfo add 1 to i if i = 1 then put urlDecode(tItem) into tItem put tItem into tA[item i of tFields] end repeat return tA for value end if end fwFileInfo Performance isn't bad (times shown in ms on Ubuntu 14.04 with Ext4 file system) - each test was done with the slower form of the function call that uses the array option: Folder with 20 files: 0.72 Folder with 5,000 files: 0.024766 Folder with 10,000 files: 0.042299 I'll leave it as an exercise for the reader to compare with benchmarks for obtaining the same info via shell. But at a fraction of a millisecond with LC Script even in an insanely large directory, I'll wager the time to write the test would exceed any time saved over one's lifetime. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.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: create widget
Or, if you are among those who have access to a working dictionary, click the "Widget" type in the left sidebar to see the list. On 4/27/18 2:25 PM, Mark Wieder via use-livecode wrote: On 04/27/2018 11:40 AM, Richmond Mathewson via use-livecode wrote: BUT . . . where does one find a catalog of all the kinds of widget available? A catalog of all widgets available would be extremely useful. put revideextensions() into tArray; put the keys of tArray if you just want widgets, not libraries then filter that with "*widget*" -- 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: create widget
On 04/27/2018 11:40 AM, Richmond Mathewson via use-livecode wrote: BUT . . . where does one find a catalog of all the kinds of widget available? A catalog of all widgets available would be extremely useful. put revideextensions() into tArray; put the keys of tArray if you just want widgets, not libraries then filter that with "*widget*" -- 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: Q on Accessing multi-dimension arrays.
What's the difference between a violin and a fiddle? A violin has strings and a fiddle has strgs. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Friday, April 27, 2018 10:51 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Q on Accessing multi-dimension arrays. Fettling! I'm going to start using that! fet·tle ˈfedl/ verb gerund or present participle: fettling • trim or clean the rough edges of (a metal casting or a piece of pottery) before firing. Apparently appropriate as well. Pronounced like feddle, likely where we get our fiddle with. And I always thought it was a reference to playing a violin-like musical instrument! Bob S > On Apr 27, 2018, at 24:21 , Ali Lloyd via use-livecode >wrote: > > Which reminds me - the tree view widget should probably use the list > form of a path directly instead of fettling with a path delimiter > property ___ 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
create widget
"Create a widget control of the specified kind" sounds groovy . . . "create widget "My Navbar" as "com.livecode.widget.navbar" even groovier . . . BUT . . . where does one find a catalog of all the kinds of widget available? A catalog of all widgets available would be extremely useful. Richmond. ___ 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: Enable/disable Group enables/disables all children
> On Apr 27, 2018, at 10:04 , Mark Waddingham via use-livecode >wrote: > > You can't tell what the state of disabled was of a child before the owning > group's disabled property is set - that's the problem. > > Imagine we change this without any regard for backwards compatibility to the > preferred (correct!) model. Then when you open your stack, setting the > 'disabled' of a group to 'false' will then *only* affect the disabled > property of the group - not the children. All the children will remain with > disabled 'true' (as it won't be setting the property any more on children). > > This means that everyone would have to go through every card of every single > stack which has groups which are disabled, which contain children which > should be enabled/disabled with the group's enablement and change those child > controls disabled property to false (as they will be true at present). Unless disabling a group prevented you from interacting with any of the children without actually disabling the children. One scenario you have to disable all the children, the other you have to re-enable them based upon a prior state saved in some fashion. As I said, darned if you do, darned if you don't. One leg is both the same. :-) But it's okay, I can script around it. I'm more interested in a detailed single file function, but again I can work around that too. I will just filter the detailed files of the enclosing folder and hope that in the distant future someone doesn't try to use this function on a folder with 10,000+ files. Of course by then we will probably be storing data in microbes. Bob S ___ 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: Detailed File Information for One File
Not to beat a severely wounded horse, but one reason for implementing a detailed file function (and probably why it hasn't been tackled) is that getting the detailed file information from a command shell is decidedly NOT straightforward. *NIX has an ls function, and also has a date function. The date function cannot it seems accept spaces in the name, but will accept relative paths like ~/Desktop/test.xlsx. ls -r will only give you the year if the date is beyond 6 months from present. Date accepts a path in quotes or not, but if there is a space in the path you must enclose in quotes. ls decidedly CANNOT have a quoted path. Windows gets dicier. Typically you would use WMIC and build a query, but I think it only works with local files, and not network shares (Parallels uses network paths for Mac FolderSharing). It uses back slashes, and these have to be escaped as in \\. There are a number of other gotchas for each platform, but the upshot is that it's a beatch trying to piece together shell commands that work reliably in all use cases for every platform. I am sure that after a half a day and struggling through all the exceptions for each platform I could piece together a way to do it, but it's a real pig I can tell you. Bob S > On Apr 26, 2018, at 16:13 , Bob Sneidarwrote: > > I can't find anything on the forums, which is par for the course, evwn though > I know it's been discussed. Is there an LC way to get details about a file > without shelling out to do it? I need to get the last modified date of a file > so I can check to see if I need to update the version in a database when > importing it. I would very much NOT like having to get the detailed files of > a folder and filter for the file I am looking for as I already have a path to > the actual file, and a folder may contain a lot of files. > > Bob S > ___ 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: Enable/disable Group enables/disables all children
On 2018-04-27 16:57, Bob Sneidar via use-livecode wrote: Darned if you do, darned if you don't. I get it. Still, looking at your example, it begs the question, what was the state of the enabled property for the individual objects before the parent group was disabled? The current situation is exactly what your objection describes. :-) You can't tell what the state of disabled was of a child before the owning group's disabled property is set - that's the problem. Imagine we change this without any regard for backwards compatibility to the preferred (correct!) model. Then when you open your stack, setting the 'disabled' of a group to 'false' will then *only* affect the disabled property of the group - not the children. All the children will remain with disabled 'true' (as it won't be setting the property any more on children). This means that everyone would have to go through every card of every single stack which has groups which are disabled, which contain children which should be enabled/disabled with the group's enablement and change those child controls disabled property to false (as they will be true at present). I get the feeling that a lot of people have a lot of stacks where the group enablement behavior is fine (as they do want their child controls to enable/disable with the group), and so they won't have scripted anything, so they will find a lot of disabled controls! Warmest Regards, Mark. P.S. The engine change (from memory) is relatively straight-forward I think - we already have visible as a pattern - so the main issue is migration forward - which could be a lot of work for large stacks which might have a mixture of scripted and 'by-engine' enablement/disablement. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ 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: Enable/disable Group enables/disables all children
I ran into this on a card basis. I have a handler that loops thru all controls and disables(and dims) them so a user can't do anything until some function is complete and a complementary handler that enables them all. This became a problem if one of the controls on the card was disabled. To solve this I put a custom property on the card with all the long IDs of all the controls and their initial "enabled" state before disabling everything. When re-enabling all the controls I look at the array and decide which controls need to be enabled. The same thing could be done for groups. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net ___ 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: Hex to Decimal 2s Complement
On 04/27/2018 02:41 AM, Alex Tweedly via use-livecode wrote: I should know this - but don't any more :-) So there may be a corner case to fix up - but in general, something like *put*thetextoffld"F"intotemp* put*baseconvert(temp,16,10) intot1* if* t1 > 32767*then* *put*t1-65536intot1* end* *if* should do it. Bingo. Thanks. I was sitting here trying to remember this stuff. Hermann, of course, would have known this just off the top of his head. -- 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: Detailed File Information for One File
Are you sure about that? Some apps delete/recreate vice actually modifying an existing file. On Fri, Apr 27, 2018 at 9:44 AM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Funny you should mention that. I thought about doing this, but then I have > to think about checking to see if the file is open somewhere else. In some > cases it would work though. As an aside, I noticed yesterday that modifying > a file on MacOS updates not only the modify date but the CREATION DATE as > well!! Who thought that was a good idea?? > > Bob S > > > > On Apr 27, 2018, at 04:46 , Eller, Roger via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > If you have the path and filename, you could create a subfolder "temp" > just for the purpose of reading the details of a single file. > > > > > > ## THIS IS NOT A SCRIPT -- LOL > > > > move the file into "temp". > > > > get the detailed fiiles. > > > > move the file from "temp" back to where you got it from. > > > > > > ~Roger > > > ___ > 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: Enable/disable Group enables/disables all children
Darned if you do, darned if you don't. I get it. Still, looking at your example, it begs the question, what was the state of the enabled property for the individual objects before the parent group was disabled? The current situation is exactly what your objection describes. :-) I worked around it by resending selectionChanged to the datagrid that these controls reflect, which sets the controls enabled property according to certain conditions. Bob S > On Apr 26, 2018, at 23:15 , Mark Waddingham via use-livecode >wrote: > >> Hi all. >> I have a group that contains a number of objects, buttons, menus, >> fuelds and groups. I just noticed that if I disable a group (so that >> none of the objects in the group can be interacted with) I get the >> desired effect. However when re-enabling the group, it *ALSO* >> re-enables ALL the objects in that group, no matter what their status >> was prior to disabling the group. >> Is that the expected behavior? If not I will file a bug report. If so, >> I will have to find another way to disable all the objects in a group, >> or else trap for the action, and save the enabled property for every >> containing object so I can reset them. > > It has been like that forever - there is an anomaly for it: > https://quality.livecode.com/show_bug.cgi?id=14881 > > The 'disabled' property should be effectively computed as the logical and of > all the parent's property values (kind of like inherited properties, but with > a different operation merging parent and child values), a bit like visible is > - why it was never done that way originally is a question to which I do not > have an answer! > > The problem with 'just' fixing it is that it is not possible to determine > with the current behavior what the 'disabled' setting of any control is meant > to be. If it is changed, then all controls in disabled groups which exist now > will remain disabled - everyone would have to go through all their stacks and > set the enablement of children appropriately. > > Warmest Regards, > > Mark. ___ 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: Q on Accessing multi-dimension arrays.
Fettling! I'm going to start using that! fet·tle ˈfedl/ verb gerund or present participle: fettling • trim or clean the rough edges of (a metal casting or a piece of pottery) before firing. Apparently appropriate as well. Pronounced like feddle, likely where we get our fiddle with. And I always thought it was a reference to playing a violin-like musical instrument! Bob S > On Apr 27, 2018, at 24:21 , Ali Lloyd via use-livecode >wrote: > > Which reminds me - the tree view widget should probably use the list form > of a path directly instead of fettling with a path delimiter property ___ 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: Splitting long elements into two lines in an Option Menu
On a mobile device?? Bob S > On Apr 27, 2018, at 02:09 , Richmond via use-livecode >wrote: > > I've just set up a stack containing 2 fields; one called "fff" containing your > > original string, another called "fCHOPPED" that is a scrolling list field. > > I have a button containing this script: > > on mouseUp >put fld "fff" into FFF >set the itemDelimiter to "," >put 1 into KOUNT >repeat until item KOUNT of FFF is empty > put item KOUNT of FFF into line KOUNT of fld "fCHOPPED" > add 1 to KOUNT >end repeat > end mouseUp > > which puts the string into the scrolling list field like this: > > /Dialyse rénale > insuffisance rénale > maladie rénaleDID > diabète de type 1// > //diabète insulino dépendant/ > > Richmond. > > > On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote: >> /Dialyse rénale, insuffisance rénale, maladie rénaleDID, diabète de type >> 1//,//diabète insulino dépendant/ > > > ___ > 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: Detailed File Information for One File
Funny you should mention that. I thought about doing this, but then I have to think about checking to see if the file is open somewhere else. In some cases it would work though. As an aside, I noticed yesterday that modifying a file on MacOS updates not only the modify date but the CREATION DATE as well!! Who thought that was a good idea?? Bob S > On Apr 27, 2018, at 04:46 , Eller, Roger via use-livecode >wrote: > > If you have the path and filename, you could create a subfolder "temp" just > for the purpose of reading the details of a single file. > > > ## THIS IS NOT A SCRIPT -- LOL > > move the file into "temp". > > get the detailed fiiles. > > move the file from "temp" back to where you got it from. > > > ~Roger ___ 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: Detailed File Information for One File
I added my 2¢ Bob S > On Apr 26, 2018, at 16:25 , Richard Gaskin via use-livecode >wrote: > > I do not believe this has been implemented yet: > https://quality.livecode.com/show_bug.cgi?id=20384 > > That said, wasteful as "the detailed files" is it's probably more efficient > in most cases than the overhead of initing a shell session. I've had good > performance even in directories with tens of thousands of files. > > -- > Richard Gaskin ___ 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: Detailed File Information for One File
If you have the path and filename, you could create a subfolder "temp" just for the purpose of reading the details of a single file. ## THIS IS NOT A SCRIPT -- LOL move the file into "temp". get the detailed fiiles. move the file from "temp" back to where you got it from. ~Roger From: use-livecodeon behalf of Richard Gaskin via use-livecode Sent: Thursday, April 26, 2018 7:25:50 PM To: use-livecode@lists.runrev.com Cc: Richard Gaskin Subject: Re: Detailed File Information for One File Bob Sneidar wrote: > I can't find anything on the forums, which is par for the course, evwn > though I know it's been discussed. Is there an LC way to get details > about a file without shelling out to do it? I need to get the last > modified date of a file so I can check to see if I need to update the > version in a database when importing it. I would very much NOT like > having to get the detailed files of a folder and filter for the file I > am looking for as I already have a path to the actual file, and a > folder may contain a lot of files. I do not believe this has been implemented yet: https://quality.livecode.com/show_bug.cgi?id=20384 That said, wasteful as "the detailed files" is it's probably more efficient in most cases than the overhead of initing a shell session. I've had good performance even in directories with tens of thousands of files. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.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: Hex to Decimal 2s Complement
Alex , You got it ! I forgot the > 32767 !! Great thanks Camm - Original Message - From: "Alex Tweedly via use-livecode"To: use-livecode@lists.runrev.com Cc: "Alex Tweedly" Sent: Friday, 27 April, 2018 10:41:27 AM Subject: Re: Hex to Decimal 2s Complement I should know this - but don't any more :-) So there may be a corner case to fix up - but in general, something like *put*thetextoffld"F"intotemp* put*baseconvert(temp,16,10) intot1* if* t1 > 32767*then* *put*t1-65536intot1* end* *if* should do it. -- Alex. On 27/04/2018 10:27, Camm via use-livecode wrote: > Richmond , > > Yes , thanks > > I have seen xor(Hex) +1 , but just asking if anyone has a solution ? > > FFCC = -52 > > 014A = 330 > > Anyone ? > > Regards > Camm > > - Original Message - > From: "Richmond via use-livecode" > To: "Camm via use-livecode" > Cc: "Richmond" > Sent: Friday, 27 April, 2018 10:22:36 AM > Subject: Re: Hex to Decimal 2s Complement > > I think you will have to perform several operations here: > > 1. convert Hex number to Binary number. > > 2. find Complement of Binary number. > > 3. convert Complement to Decimal number. > > Your "main problem" is that YOU have to work out the algorhythm to > > get the complement as LiveCode does not have that built-in to its system. > > Richmond. > > > On 27.04.2018 12:17, Camm via use-livecode wrote: >> Two's complement is a mathematical operation on binary numbers, best known >> for its role in computing as a method of signed number representation. For >> this reason, it is the most important example of a radix complement. >> >> The two's complement of an N-bit number is defined as its complement with >> respect to 2N. For instance, for the three-bit number 010, the two's >> complement is 110, because 010 + 110 = 1000. >> >> Regards >> Camm >> - Original Message - >> From: "Richmond via use-livecode" >> To: "Camm via use-livecode" >> Cc: "Richmond" >> Sent: Friday, 27 April, 2018 10:11:19 AM >> Subject: Re: Hex to Decimal 2s Complement >> >> Well, unless you can explain to me what "2s Complement" means I cannot >> help you. >> >> Richmond. >> >> >> On 27.04.2018 12:06, Camm via use-livecode wrote: >>> Richmond , >>> >>> Tried baseconvert but could not get the correct result for 2s Complement. >>> >>> Regards >>> Camm >>> >>> - Original Message - >>> From: "Richmond via use-livecode" >>> To: "Camm via use-livecode" >>> Cc: "Richmond" >>> Sent: Friday, 27 April, 2018 10:01:17 AM >>> Subject: Re: Hex to Decimal 2s Complement >>> >>> Check out *baseConvert* in the dictionary. >>> >>> Richmond. >>> >>> >>> On 27.04.2018 11:50, Camm via use-livecode wrote: Hi , Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range - Example :- FFCC = -52 014A = 330 Kind Regards Camm ___ 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 >> ___ >> 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 > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com >
Re: Open printing to PDF error
On Thu, Apr 26, 2018 at 9:36 AM Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > I have a user who ran into the error "printing: Unknown destination: > (Line 0, column 0)" when executing a line in my code that was "Open > printing to PDF " Try testing a filename that has accented characters in it and see if that triggers the error. — Trevor DeVore ScreenSteps > ___ 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: Hex to Decimal 2s Complement
I should know this - but don't any more :-) So there may be a corner case to fix up - but in general, something like *put*thetextoffld"F"intotemp* put*baseconvert(temp,16,10) intot1* if* t1 > 32767*then* *put*t1-65536intot1* end* *if* should do it. -- Alex. On 27/04/2018 10:27, Camm via use-livecode wrote: Richmond , Yes , thanks I have seen xor(Hex) +1 , but just asking if anyone has a solution ? FFCC = -52 014A = 330 Anyone ? Regards Camm - Original Message - From: "Richmond via use-livecode"To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:22:36 AM Subject: Re: Hex to Decimal 2s Complement I think you will have to perform several operations here: 1. convert Hex number to Binary number. 2. find Complement of Binary number. 3. convert Complement to Decimal number. Your "main problem" is that YOU have to work out the algorhythm to get the complement as LiveCode does not have that built-in to its system. Richmond. On 27.04.2018 12:17, Camm via use-livecode wrote: Two's complement is a mathematical operation on binary numbers, best known for its role in computing as a method of signed number representation. For this reason, it is the most important example of a radix complement. The two's complement of an N-bit number is defined as its complement with respect to 2N. For instance, for the three-bit number 010, the two's complement is 110, because 010 + 110 = 1000. Regards Camm - Original Message - From: "Richmond via use-livecode" To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:11:19 AM Subject: Re: Hex to Decimal 2s Complement Well, unless you can explain to me what "2s Complement" means I cannot help you. Richmond. On 27.04.2018 12:06, Camm via use-livecode wrote: Richmond , Tried baseconvert but could not get the correct result for 2s Complement. Regards Camm - Original Message - From: "Richmond via use-livecode" To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:01:17 AM Subject: Re: Hex to Decimal 2s Complement Check out *baseConvert* in the dictionary. Richmond. On 27.04.2018 11:50, Camm via use-livecode wrote: Hi , Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range - Example :- FFCC = -52 014A = 330 Kind Regards Camm ___ 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 ___ 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 ___ 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: Hex to Decimal 2s Complement
Richmond , Yes , thanks I have seen xor(Hex) +1 , but just asking if anyone has a solution ? FFCC = -52 014A = 330 Anyone ? Regards Camm - Original Message - From: "Richmond via use-livecode"To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:22:36 AM Subject: Re: Hex to Decimal 2s Complement I think you will have to perform several operations here: 1. convert Hex number to Binary number. 2. find Complement of Binary number. 3. convert Complement to Decimal number. Your "main problem" is that YOU have to work out the algorhythm to get the complement as LiveCode does not have that built-in to its system. Richmond. On 27.04.2018 12:17, Camm via use-livecode wrote: > Two's complement is a mathematical operation on binary numbers, best known > for its role in computing as a method of signed number representation. For > this reason, it is the most important example of a radix complement. > > The two's complement of an N-bit number is defined as its complement with > respect to 2N. For instance, for the three-bit number 010, the two's > complement is 110, because 010 + 110 = 1000. > > Regards > Camm > - Original Message - > From: "Richmond via use-livecode" > To: "Camm via use-livecode" > Cc: "Richmond" > Sent: Friday, 27 April, 2018 10:11:19 AM > Subject: Re: Hex to Decimal 2s Complement > > Well, unless you can explain to me what "2s Complement" means I cannot > help you. > > Richmond. > > > On 27.04.2018 12:06, Camm via use-livecode wrote: >> Richmond , >> >> Tried baseconvert but could not get the correct result for 2s Complement. >> >> Regards >> Camm >> >> - Original Message - >> From: "Richmond via use-livecode" >> To: "Camm via use-livecode" >> Cc: "Richmond" >> Sent: Friday, 27 April, 2018 10:01:17 AM >> Subject: Re: Hex to Decimal 2s Complement >> >> Check out *baseConvert* in the dictionary. >> >> Richmond. >> >> >> On 27.04.2018 11:50, Camm via use-livecode wrote: >>> Hi , >>> >>> >>> Help needed on the most efficient way to convert signed Hex to Decimal (2s >>> Complement) range - >>> >>> >>> >>> >>> Example :- >>> >>> >>> FFCC = -52 >>> >>> >>> 014A = 330 >>> >>> >>> Kind Regards >>> Camm >>> ___ >>> 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 > > ___ > 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 ___ 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: Hex to Decimal 2s Complement
I think you will have to perform several operations here: 1. convert Hex number to Binary number. 2. find Complement of Binary number. 3. convert Complement to Decimal number. Your "main problem" is that YOU have to work out the algorhythm to get the complement as LiveCode does not have that built-in to its system. Richmond. On 27.04.2018 12:17, Camm via use-livecode wrote: Two's complement is a mathematical operation on binary numbers, best known for its role in computing as a method of signed number representation. For this reason, it is the most important example of a radix complement. The two's complement of an N-bit number is defined as its complement with respect to 2N. For instance, for the three-bit number 010, the two's complement is 110, because 010 + 110 = 1000. Regards Camm - Original Message - From: "Richmond via use-livecode"To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:11:19 AM Subject: Re: Hex to Decimal 2s Complement Well, unless you can explain to me what "2s Complement" means I cannot help you. Richmond. On 27.04.2018 12:06, Camm via use-livecode wrote: Richmond , Tried baseconvert but could not get the correct result for 2s Complement. Regards Camm - Original Message - From: "Richmond via use-livecode" To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:01:17 AM Subject: Re: Hex to Decimal 2s Complement Check out *baseConvert* in the dictionary. Richmond. On 27.04.2018 11:50, Camm via use-livecode wrote: Hi , Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range - Example :- FFCC = -52 014A = 330 Kind Regards Camm ___ 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 ___ 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: Hex to Decimal 2s Complement
Two's complement is a mathematical operation on binary numbers, best known for its role in computing as a method of signed number representation. For this reason, it is the most important example of a radix complement. The two's complement of an N-bit number is defined as its complement with respect to 2N. For instance, for the three-bit number 010, the two's complement is 110, because 010 + 110 = 1000. Regards Camm - Original Message - From: "Richmond via use-livecode"To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:11:19 AM Subject: Re: Hex to Decimal 2s Complement Well, unless you can explain to me what "2s Complement" means I cannot help you. Richmond. On 27.04.2018 12:06, Camm via use-livecode wrote: > Richmond , > > Tried baseconvert but could not get the correct result for 2s Complement. > > Regards > Camm > > - Original Message - > From: "Richmond via use-livecode" > To: "Camm via use-livecode" > Cc: "Richmond" > Sent: Friday, 27 April, 2018 10:01:17 AM > Subject: Re: Hex to Decimal 2s Complement > > Check out *baseConvert* in the dictionary. > > Richmond. > > > On 27.04.2018 11:50, Camm via use-livecode wrote: >> Hi , >> >> >> Help needed on the most efficient way to convert signed Hex to Decimal (2s >> Complement) range - >> >> >> >> >> Example :- >> >> >> FFCC = -52 >> >> >> 014A = 330 >> >> >> Kind Regards >> Camm >> ___ >> 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 ___ 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: Hex to Decimal 2s Complement
Well, unless you can explain to me what "2s Complement" means I cannot help you. Richmond. On 27.04.2018 12:06, Camm via use-livecode wrote: Richmond , Tried baseconvert but could not get the correct result for 2s Complement. Regards Camm - Original Message - From: "Richmond via use-livecode"To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:01:17 AM Subject: Re: Hex to Decimal 2s Complement Check out *baseConvert* in the dictionary. Richmond. On 27.04.2018 11:50, Camm via use-livecode wrote: Hi , Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range - Example :- FFCC = -52 014A = 330 Kind Regards Camm ___ 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 ___ 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: Splitting long elements into two lines in an Option Menu
I've just set up a stack containing 2 fields; one called "fff" containing your original string, another called "fCHOPPED" that is a scrolling list field. I have a button containing this script: on mouseUp put fld "fff" into FFF set the itemDelimiter to "," put 1 into KOUNT repeat until item KOUNT of FFF is empty put item KOUNT of FFF into line KOUNT of fld "fCHOPPED" add 1 to KOUNT end repeat end mouseUp which puts the string into the scrolling list field like this: /Dialyse rénale insuffisance rénale maladie rénaleDID diabète de type 1// //diabète insulino dépendant/ Richmond. On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote: /Dialyse rénale, insuffisance rénale, maladie rénaleDID, diabète de type 1//,//diabète insulino dépendant/ ___ 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: Hex to Decimal 2s Complement
Richmond , Tried baseconvert but could not get the correct result for 2s Complement. Regards Camm - Original Message - From: "Richmond via use-livecode"To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:01:17 AM Subject: Re: Hex to Decimal 2s Complement Check out *baseConvert* in the dictionary. Richmond. On 27.04.2018 11:50, Camm via use-livecode wrote: > Hi , > > > Help needed on the most efficient way to convert signed Hex to Decimal (2s > Complement) range - > > > > > Example :- > > > FFCC = -52 > > > 014A = 330 > > > Kind Regards > Camm > ___ > 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: Hex to Decimal 2s Complement
Check out *baseConvert* in the dictionary. Richmond. On 27.04.2018 11:50, Camm via use-livecode wrote: Hi , Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range - Example :- FFCC = -52 014A = 330 Kind Regards Camm ___ 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
Hex to Decimal 2s Complement
Hi , Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range - Example :- FFCC = -52 014A = 330 Kind Regards Camm ___ 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: Q on Accessing multi-dimension arrays.
Which reminds me - the tree view widget should probably use the list form of a path directly instead of fettling with a path delimiter property On Fri, Apr 27, 2018 at 12:26 AM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > Thanks Brian, Bernd, and everyone else. > > When I first saw it (in the form described in Brian's email), I thought > - hmmm, not sure when anyone would use that. > > Then I saw an example using split (as described in Bernd's email), and > thought - maybe I can use that some day. :-) > > Well - the day has come. I realized that the "Tree View" widget has a > property (hilitedElement) which is the "path" through the array of the > highlighted line - and is the ideal use case for this feature. > > And now that I've started using that, I can find *SO* many other uses > for it. > > My "directory walker" produces an array indexed by folder, then filename > - and the values are some useful info about the file; e.g. > tArray[tFolder][tFilename] === the info I want to keep > > I can now put that into a tree view array just by doing > > *repeat* foreachkeyK intAflat* > replace*"/"with"/ "intemp*-- trick names to keep folders before > files > split*temp by"/"* > put*tAflat[K] intotA[temp]* > end* *repeat* > > *set the arrayData of widget "Tree" to tA* > > *Thanks again* > > *Alex. > * > > > On 26/04/2018 23:55, Richard Gaskin via use-livecode wrote: > > Dick Kriesel to the rescue again! Thanks for that background. > > Comforting to know it's not merely an anomaly, but a well-considered > > design decision. > > > > It's such a cool thing to be able to do. It will change many algos > > here... > > > > ___ > 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: Enable/disable Group enables/disables all children
On 2018-04-27 08:15, Mark Waddingham via use-livecode wrote: The 'disabled' property should be effectively computed as the logical and of all the parent's property values This should be 'logical or' - i.e. a control is disabled if any one of its parent controls is. It is 'logical and' for the enabled property (which is just the 'not' of disabled, of course). Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ 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: Enable/disable Group enables/disables all children
On 2018-04-26 19:06, Bob Sneidar via use-livecode wrote: Hi all. I have a group that contains a number of objects, buttons, menus, fuelds and groups. I just noticed that if I disable a group (so that none of the objects in the group can be interacted with) I get the desired effect. However when re-enabling the group, it *ALSO* re-enables ALL the objects in that group, no matter what their status was prior to disabling the group. Is that the expected behavior? If not I will file a bug report. If so, I will have to find another way to disable all the objects in a group, or else trap for the action, and save the enabled property for every containing object so I can reset them. It has been like that forever - there is an anomaly for it: https://quality.livecode.com/show_bug.cgi?id=14881 The 'disabled' property should be effectively computed as the logical and of all the parent's property values (kind of like inherited properties, but with a different operation merging parent and child values), a bit like visible is - why it was never done that way originally is a question to which I do not have an answer! The problem with 'just' fixing it is that it is not possible to determine with the current behavior what the 'disabled' setting of any control is meant to be. If it is changed, then all controls in disabled groups which exist now will remain disabled - everyone would have to go through all their stacks and set the enablement of children appropriately. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ 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