in my experience,
most commands do not accept pictures via object notation property.

> SET LIST ITEM ICON(sBar_RecordsSelect;1000;o_Images.sidebar_All)

pictures, blobs and pointers are somewhat different to other sorts of variables,
it's not the kind of ambiguity that parentheses can fix.
you need to use a local variable.

> Results in an error:  “4D was expecting a table or a pointer”
>
>     $i_sidebar_All:=o_Images.sidebar_All
>     SET LIST ITEM ICON(sBar_RecordsSelect;1000;$i_sidebar_All)
>
> Works fine

---

> Another instance of it not appearing to accept picture values from objects
> is when assigning a picture object value to a button variable in the
> property list. It appears to be ignored.

not all expression properties accept object notation.
for instance, it is not allowed to define Form.button as a button data source.
only variables are allowed.

it seems to be for optimisation,
or to avoid race conditions,
or possibly both.



**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to