共用方式為


WriteExpression Method

Writes an expression to a property. Available at design time and run time.

Object.WriteExpression[cPropertyName, cExpression]

Parameters

  • cPropertyName
    Specifies the name of the property to write the expression to.
  • cExpression
    Specifies a character string that is written to the property sheet as an expression.

See Also

ReadExpression Method

Applies To: ActiveDoc | CheckBox | Column | ComboBox | CommandButton | CommandGroup | Cursor | Custom | DataEnvironment | EditBox | Form | FormSet | Grid | Header | Image | Label | Line | ListBox | OLE Bound Control | OLE Container Control | OptionButton | OptionGroup | Page | PageFrame | ProjectHook Object | Relation | Session Object | Shape | Spinner | TextBox | Timer | ToolBar