Tech Tip: Implicit Internal Use...End use Blocks
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: February 18, 2025
When working with shared objects and shared collections, modifications typically require the code to be within a Use...End use block. The block allows the code to remain preemptive by making sure there is no conflict in two processes trying to modify the shared item at the same time.
To make things convenient when writting code, collection functions that modify shared items have an internal Use...End use block.
There are also some 4D Commands that have an internal Use...End use block too. These commands are OB REMOVE and Collection to Array.
When using these functions and commands they do not need to be called from within an Use...End use block and there is no harm in using them within a Use...End use block.