KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: No Error with Use() on a Non-shared Object or Collection
PRODUCT: 4D | VERSION: 19 R 5 | PLATFORM: Mac & Win
Published On: April 4, 2023

As of 4D v19 R5, calling Use() on a Non-shared Object or a Non-shared Collection no longer generates an error.
Therefore, as of 4D v19R5, Use() should not be used to test if the object or collection passed to Use() is actually shared.

//If (OB Is shared($o)) //useless
Use($o) //no error generated if $o is not shared
  $o.a:=2
End use
//End if