Tech Tip: Use process variable when setting picture variable in OBJECT SET FORMAT
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: May 27, 2020
The command OBJECT SET FORMAT sets the display format for different objects. Notably, it allows you to set a picture for objects like 3D buttons or picture pop-up menus. The source of the picture will come from a picture library or picture variable.
When using a picture variable, make sure that it is a process variable, as opposed to a local variable. The picture variable must be available for the duration of the dialog, so a process variable must be used in this case. Local variables are destroyed once the method is exited, so, if used, the picture will be undefined and not be displayed.
When using a picture variable, make sure that it is a process variable, as opposed to a local variable. The picture variable must be available for the duration of the dialog, so a process variable must be used in this case. Local variables are destroyed once the method is exited, so, if used, the picture will be undefined and not be displayed.