Routines used by Basic4GL libraries and UI.