Show Contents / Index / Search

Edit HostOptions Properties

Legacy EXTRA! macros and Visual Basic applications that contain parameterized properties cause an error to occur in Reflection 2008. When you run the macro or application, the HostOptions object returns the error "Method or property not found" when it encounters one of the following parameterized properties: AttributeForeground, AttributeBackground, or Color.

Reflection 2008 is based on C# and doesn't support parameterized properties; therefore, statements that get and set these properties will have no effect. To avoid this problem, replace the parameterized properties with an equivalent form.

To edit the property

  1. Start the EXTRA! Basic Editor.
  2. Open the macro.
  3. Replace the AttributeForeground, AttributeBackground, and Color properties using one of the following equivalent forms:
    • HostOptions.set_[property] x, y
    • y = HostOptions.get_[property] x

      For example, change

      HostOptions.AttributeForeground(x) = y

      to

      HostOptions.set_AttributeForeground x, y

      -or-

      y = HostOptions.get_Attribute Foreground x