11.18 getvalue()

With this function, you can inquire attributes of objects.

You can find the attributes available for the relevant object type in the “Object Reference”.

Definition

anyvalue getvalue
(
      object    Obj  input,
      attribute Attr input
  { , integer IntIdx input | index IdxIdx input }
)

Parameters

object Obj input
This parameter indicates the object whose attribute you want to inquire.
attribute Attr input
This parameter indicates the object attribute you want to inquire.
integer IntIdx input
index IdxIdx input
With this optional parameter you can declare the index of the requested attribute. You have to declare an integer value if the requested attribute is one-dimensional (e.g. with a listbox or a poptext). You have to declare an index value if the requested attribute is two-dimensional.

Return value

Value of the requested attribute.

Examples

See also

Method :get()

C function DM_GetValue in manual “C Interface - Functions”