KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Stick with dot notation when using Storage
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: October 19, 2020

When setting values in the Storage object, it is best recommended to stick with object notation as OB SET may have conflicts with the Use code block. The example below demonstrates the error when using OB SET.

Not recommended:

Use (Storage)
   OB SET(Storage;"testProperty";New shared object)
End use




Recommended:

Use (Storage)
   Storage.testProperty:=New shared object
End use