Link Search Menu Expand Document

syncObject

Explanation In Biz / Browser , the script execution engine and GUI operations are thread-separated and executed asynchronously to improve performance.Therefore , the value is reflected to the GUI asynchronously after the script is executed. As a negative effect, it is not possible to write coding that works by confirming that the GUI state is changed during script execution.

Use this function to synchronize the state to the GUI immediately. By performing state synchronization, it is possible to perform coding that is aware of changes in the GUI in the script.

Precautions for use

This function forces a normal Biz / Browser behavior sequence change. If it is executed continuously in a loop, it may cause problems such as poor performance and incorrect GUI update.
It is reccommended to use it at one point as much as possible.

Added since Ver.5.0.0
Not available in Mobile
Call format syncObject ()
Return value None
Arguments None
Exception None
Example of use
Function OnTouch (e) {
    / * Display dialog during processing * /
    Get ("Dialog1.crs");
    
    / * Synchronize GUI to display dialog * /
    syncObject ();
        
    / * Time-consuming processing * /
    var COUNT = 1000;
    for (var i = 0; i <COUNT; i ++) {
        / * Processing execution * /
    }
    / * Delete dialog * /
    Dialog1.Delete ();
}
Related item