Field calculations

2013-09-11 Thread Vaughn Clement
Hi All After entirely to many hours of research trying to get a reference location for scripting simple field calculations, and also testing scripts I need some veteran help. I am a database developer so I am new to LiveCode. I used the dictionary trying to do the following but the Hypertalk

Re: Field calculations

2013-09-11 Thread Mark Wieder
Vaughn- Wednesday, September 11, 2013, 10:26:12 AM, you wrote: > I am a database developer so I am new to LiveCode. I used the dictionary > trying to do the following but the Hypertalk script approach is not clear. Not a problem. Basically you've already written the code by describing it in pseu

Re: Field calculations

2013-09-11 Thread Vaughn Clement
im > > > -Original Message- > From: Vaughn Clement [mailto:vclem...@gmail.com] > Sent: Wednesday, September 11, 2013 10:26 AM > To: How to use LiveCode > Subject: Field calculations > > Hi All > > After entirely to many hours of research trying to get a reference locat

Re: Field calculations

2013-09-11 Thread Vaughn Clement
g LiveCode for the Real Beginner" > http://qery.us/3fi > > Fill out this survey please > http://livecodebeginner.**economy-x-talk.com/survey/<http://livecodebeginner.economy-x-talk.com/survey/> > > > On 9/11/2013 19:26, Vaughn Clement wrote: > >> Hi All >

Re: Field calculations

2013-09-11 Thread Mark Schonewille
013 19:26, Vaughn Clement wrote: Hi All After entirely to many hours of research trying to get a reference location for scripting simple field calculations, and also testing scripts I need some veteran help. I am a database developer so I am new to LiveCode. I used the dictionary trying to d

RE: Field calculations

2013-09-11 Thread Jim MacConnell
a script to do all the math and call it from the fields. That way everything will always be current. Jim -Original Message- From: Vaughn Clement [mailto:vclem...@gmail.com] Sent: Wednesday, September 11, 2013 10:26 AM To: How to use LiveCode Subject: Field calculations Hi All After entirely

Re: Field calculations

2013-09-11 Thread Vaughn Clement
Hi Mark I tried your script and it does not work? Your script did not designate if it is in a card, button or field. I put it the card then the field and it did not work in either of them? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-p

Re: Field calculations

2013-09-11 Thread Mark Schonewille
Hi Vaughn, When you write "it doesn't work", it is useful to include any errors that you see and the exact code that you used. For instance, did you put my syntax in a mouseUp or any other handler and are you sure you are using correct field references? -- Best regards, Mark Schonewille Ec

Re: Field calculations

2013-09-11 Thread Geoff Canyon
If you mean, "I changed the value in the loan percentage field, but nothing happened," then check what Jim wrote above about the closeField message. Whenever you change the value in a field, as soon as you click someplace else the field gets a closefield message, and if the field (or the card the f

Re: Field calculations

2013-09-11 Thread Vaughn Clement
Hi All What I did was to build a new stack and added 3 fields and a button. I added field 1 to field 2 and put the sum into field 3 and it works fine. SO, why would it not work in the design app? is there some setting or something to make it work or not work? Thank you Vaughn Clement Apps by Va

Re: Field calculations

2013-09-11 Thread Vaughn Clement
Hi Geoff It made sense to test on a new blank stack and it worked there, so now I need to find out why the app I am working on is having errors. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/* Skype: vaughn.clement https://secure.j

Re: Field calculations

2013-09-11 Thread Andrew Kluthe
Once you have fields on your card, you need a way to execute the script the various Marks were referring to. I'd say your best bet for this test would be to also add a button and put whatever script you have for adding the fields into that. Alternatively, you can place a handler in the card and c

Re: Field calculations

2013-09-11 Thread Vaughn Clement
Hi All Have you ever had a problem where the won't calc. I changed the field names to 1 word each to make it easy for the calc? That did not fix it. I put it in a button, didn't work. Changed back to an on Closefield script and it does not work. JUST STUPID LC! This app has several calculations a

Re: Field calculations

2013-09-11 Thread Mark Schonewille
Hi Vaughn, As I wrote before, "not work" isn't that much information. Can you say more about it? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Conve

Re: Field calculations

2013-09-11 Thread Mark Schonewille
Vaughn, It is really time to post your scripts now. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and

Re: Field calculations

2013-09-11 Thread Vaughn Clement
Hi Mark I kept changing things until it worked. I had to make the button script with only one mouseUp script and nothing else and it worked. I had a script to set the card id to a field in a second mouseUp script. But that was after doing all kinds of similar scripts and it did not work. Thank yo

Re: Field calculations

2013-09-11 Thread Vaughn Clement
Hi All I have it working using the on closeField scripts in the 1 & 2 fields now. LiveCode is a really hard to find just the right script format/s. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/* Skype: vaughn.clement https://secur

Re: Field calculations

2013-09-11 Thread Mark Wieder
Vaughn- Wednesday, September 11, 2013, 4:30:04 PM, you wrote: > I kept changing things until it worked. I had to make the button script > with only one mouseUp script and nothing else and it worked. I had a script > to set the card id to a field in a second mouseUp script. But that was > after do

Re: Field calculations

2013-09-11 Thread Vaughn Clement
Hi I tried to use "set the numberFormat to "#.00" -- dollar format" and it stopped the calc for the fields. This is right out of the dictionary and it does not work? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/* Skype: vaughn.cle

Re: Field calculations

2013-09-11 Thread Mark Schonewille
Hi Vaughn, If you have multiple handlers with equal names in a script, only the first handler will run. That mus be why your own handler didn't work. Also, if you have a mouseUp handler in a button and a mouseUp handler at card level, you need a pass mouseUp command in the button to make the

Re: Field calculations

2013-09-11 Thread Vaughn Clement
Hi Mark I have been reading everything for LiveCode for weeks, and I am reading the LC Academy up to chap 19, and thatis the first time this has come up about more than one mouseUp handler? Is this for the one control, button, card or only one for any control. Thank you Vaughn Clement Apps by V

Re: Field calculations

2013-09-11 Thread Vaughn Clement
Hi Mark I like a challenge, so this is just not enjoyment when little stuff ties you up from getting anything done. Well after 35 plus years of this it never changes. There is always something new to learn. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclemen

Re: Field calculations

2013-09-11 Thread dunbarx
: "Oh, I get it now" Bet you... Craig Newman -Original Message- From: Mark Schonewille To: How to use LiveCode Sent: Wed, Sep 11, 2013 7:45 pm Subject: Re: Field calculations Hi Vaughn, If you have multiple handlers with equal names in a script, only the first handle

Re: Field calculations

2013-09-11 Thread dunbarx
--Original Message- From: Vaughn Clement To: How to use LiveCode Sent: Wed, Sep 11, 2013 7:47 pm Subject: Re: Field calculations Hi Mark I have been reading everything for LiveCode for weeks, and I am reading the LC Academy up to chap 19, and thatis the first time this has come up about mor

Re: Field calculations

2013-09-11 Thread J. Landman Gay
On 9/11/13 6:46 PM, Vaughn Clement wrote: Hi Mark I have been reading everything for LiveCode for weeks, and I am reading the LC Academy up to chap 19, and thatis the first time this has come up about more than one mouseUp handler? Is this for the one control, button, card or only one for any co

Re: Field calculations

2013-09-12 Thread FlexibleLearning.com
Possibly field referencing issues... Do you have the correct defaultStack? Try checking the result: put field "Price" * field "Quantity" into fld "Total" answer the defaultStack &CR& the result Hugh Senior FLCo Vaughn Clement wrote: Hi Geoff It made sense to test on a new blank stack and it

Re: Field calculations

2013-09-12 Thread Vaughn Clement
Hi J. Landman Gay That is truly a wealth of information at that link. If I am to learn about any kind of app, and in the case of LiveCode the information is everywhere, and you need to find it where every it is hidden. In many cases the information like DataGrids is not available or it is tied to

Re: Field calculations

2013-09-12 Thread Vaughn Clement
Hi J. Landman Gay I have seen your name on some of the stacks I have reviewed. Thank you for the reference link it will surely help me. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/* Skype: vaughn.clement https://secure.join.me/a

Re: Field calculations

2013-09-12 Thread Richard Gaskin
Vaughn Clement wrote: As trainers yourself you must recognize this in the fragmented approach being used to present instructional materials from LiveCode. Of course, but I wear multiple hats: As a business owner I recognize the cost of developing such comprehensive documentation. While som

Re: Field calculations

2013-09-12 Thread dunbarx
that limited context. This will guide you in the future with the next 1000 issues that crop up as you learn how to drive. Craig Newman Keep at it-Original Message- From: Vaughn Clement To: How to use LiveCode Sent: Thu, Sep 12, 2013 11:53 am Subject: Re: Field calculations Hi J. Landma

Re: Field calculations

2013-09-12 Thread Richard Gaskin
Vaughn Clement wrote: > The dictionary gives little in the way of script help to debug the > reason why it did not work. I am finding this true of many of the > dictionary descriptions. Maybe a developer will write a new > dictionary stack for new users that includes sample code like the > exampl

Re: Field calculations

2013-09-12 Thread Vaughn Clement
Hi Richard Actually if you take any Opp language or database development language the complexity is 10 times that of LiveCode. and the Help system is so good it covers just about any variation you might encounter. This is an example of what I mean; take formatting a numeric field this should be a

Re: Field calculations

2013-09-12 Thread J. Landman Gay
I'm glad you found the scripting conferences useful. I think as you work with LiveCode you'll find that the dictionary does a pretty good job of pointing out most things you need to know, but sometimes you need to know what it is you need to know before the lightbulb goes on. Using numberForma

Re: Field calculations

2013-09-12 Thread Alejandro Tejada
-- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Field-calculations-tp4669648p4669746.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please v

Re: Field calculations

2013-09-12 Thread Vaughn Clement
e process > of learning LiveCode. Keep posting your questions! :) > > Alejandro > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Field-calculations-tp4669648p4669746.html > Sent from the Revolution - User mailing list archive at