KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Handling object group visibility using naming conventions
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: February 12, 2024

When working with grouped objects in 4D, you may have come across a situation where OBJECT SET VISIBLE will not apply any changes when passing a group name. This is due to the way groups are implemented as it is mainly to help the designer move objects on the form but not usable in terms of code.

Instead, as long as the form objects within the group follow some common naming convention (E.G. Group1_Text1, Group1_Text2, etc.), these objects can be set visible using a wildcard like so:

OBJECT SET VISIBLE(*;"Group1@; True)