Thanks Klaus for your explanations!
What confuses me is the fact of adding a text field and then use it as numbers etc. In the tutorial it says somewhere that if it makes sense, B4A will convert it automatically. The tool l I used so far one could set the type ( Int TXT bool) etc directly in the control itself. When I then declare the variables it would auto complete the variables. That was kind of neat, but it had other shortfalls. So I guess I better get used to this way.
Just one more thing, I understand the way to invoke the calculation using a button. However having just one or two entire fields, it would be nice to have a instant calculation when entering numbers in the field, what is the way to do it that? Is there some onFocus onExit command?
Regards
hans