Vaughn.
I keep hearing a certain tone in all your correspondence, that LC is flawed in much of its implementation, its documentation and its execution. It ain't so. It is, rather, a modern miracle of software, and transcends the programming paradigm common to virtually all other similar packages. Much of your frustration derives from simple newness. All of your issues are well within the capabilities of LiveCode, and, forgive me, at a novice/intermediate level. For example, as Stephen mentioned, strip out formatting characters before you do the math. No program ca directly perform calculations on a string such as "$45". Internally, the dollar sign (or comma) is stripped and then reapplied. In LC, this must be managed by you. The good news is that this process is easy and fun. Your query about card level functionality addresses what Jacque alluded to, that the message hierarchy is a fundamental, foundational cornerstone of the structure of the program. It just means to me that you are still feeling your way forward. This is all to the good.. So. I am gratified that you are doggedly and stubbornly moving forward, in spite of your frustration. You will quite soon get it. My wager stands. Craig Newman -----Original Message----- From: Vaughn Clement <vclem...@gmail.com> To: How to use LiveCode <use-livecode@lists.runrev.com> Sent: Thu, Sep 12, 2013 10:18 pm Subject: Trying a custom handler for several math fields Hi All Since my scripts were lost on the update app killer I wanted to try out a custom handler: I wanted to try this out to see how it works for the first time. The original scripts (lost now) were using a field control to do the math between 3 to 4 fields. I used the suggested on closeField handler. It took some time but I had all of the fields doing the correct math. 1 Issue: on the card the different sets of field controls would only update within the set of fields in the script. If a user edited one of the fields that set would update. What I needed was to have all the fields update regardless of what set they below too. I assume that this can be done by passing the handler call up to the card level? My questions are as follow: 1. Can a custom handler work like "on doMath" and pass script to make it work from the card level? 2. The on doMath handler at the card level; can it include all of the different math scripts in that one handler so they all update at the same time from any field edited in the sets of fields needing updates. 3. Can I also include the field format command. 4. My consideration is that the fields were not updating as a complete group and that will confuse the user when they now need to re-enter the other fields to trigger the related changes from the other edits? Last concern: I was able to get the format to add the decimal places, but I needed to have the money symbol in the field also. When the typed in the field the math script won't run. The same thing happened when I used a comma for the divider of hundreds. So that kills the scripts. I did not find anything that tells you how to solve this? I tried the dictionary for answers but nothing was doing it! Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/* Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclem...@gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 Cloud Hosting Registration Web Site: https://my.oditech.com/cart.php?a=add&pid=41 _______________________________________________ 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