The behaviour could depend on your Tab Order.
I'd rather use the OnObjectSave or OnObjectValidate trigger because it fires when the field has actually been changed.
To avoid unneccessary recalculation.
If you have to update the calculation as you type then use OnObjectModify.
For setting the fourth field you should use SetField, it does not actually go to the field since it works even if the field is not on the layout. If you need to replace a specific part of the field then use Replace().
If the fourth field's value is entirely determined by the three other fields, why not make it a calculation field?
If you still want to allow manual modification, why no make the field a regular number field with an auto-enter calculation?
As Erolst said,
make it an auto-entered calculation but I would add use evaluate function.
Evaluate ( YourCalculation ; [ L ; H ; W ] ) If its a text result you need to Quote() the calculation.
I'm sorry, but I disagree. Type-ahead requires knowing what something starts with and where I'm going to find it, whereas spotlight just requires that I know that some word is somewhere.
Spotlight is a great help the first time around, but once I know exactly what I'm looking for and where I'm going to find it, type-ahead lets me get straight to it, rather than entering a filter in one place so I can click to select in another (and then clear the filter before I go to anything else).
I'm sure that to many, if not most, that seems like a subtle difference. It's a few more clicks, a few more keys typed. When that's added to nearly every step I perform for hours and hours a day, though, it adds up fast.
And again, these are examples to highlight the general shift. In other places the type-ahead has been replaced with nothing but scroll and scan.
Thanks everyone, love the input. I did use a calculation field with a script trigger with a pretty lengthy if else if statement. I could be mistaken but the auto enter calculation seemed to give me some limitations on my conditional code unless I wasn't using it correctly. However, that did lead me to some other solutions for other parts. Thanks again everyone.
I am still relatively new to filemaker pro, used it a long tim ago but just starting to pick it up again.
Wow. Yes. Very strange.