Interpreted vs Compiled:-

If you are developing on an in-house database I can see the advantage. I guess 
you're being careful and have developed relevant approaches to avoid causing 
problems for live users. Performance with compiled really is a significant 
gain, but it depends what you need to do. Compiled won't have much effect on 
opening and saving forms etc. It's when you need to process and summarise a lot 
of data in arrays or similar that compiled really comes into play.

Also when running interpreted, network requests are more frequent because 4D 
Remote has to check if a form or method has changed each time it is loaded. In 
compiled, these things can't change live so 4D Remote doesn't need to check. Of 
course, you are reliant on these network requests happening to deploy live 
changes so clearly they come with the territory.

> There is a parent window with a tabbed interface, the variable in question 
> was declared as a local variable in the form method, the 'on load' event.
> When selecting a different tab, the variable became 'UN-initialized" and 
> produced a runtime error.

For a local variable declared in the form method "On Load" event, I would 
expect that to only exist for the life of the "On Load" event in the form 
method. When changing tabs (or any other event), the local variable will be 
gone (Undefined) in the form method. Do you really mean local variable? In 
compiled mode, the local variable wouldn't be "gone" but it wouldn't have the 
value originally defined in the "On Load" event either.

I just re-tested this in 4D v13 and it is as I'd expect, so I don't think 
anything has changed in this regard.

(Sorry for the late post on this subject, I've been grappling with trying to 
get posts through to this list.  Hopefully this one will work)

Best regards

Keith White
Synergist Express Ltd, UK.
4697775
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to