You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

ActiveXコンポーネントのコレクションをRDMLXで操作する場合、キーワード「item」を使う必要があります。例えば文書をアクティブ化するという操作を、Word VBAでは次のように記述します。

Documents("test.doc").activate

 
これがRDMLXでは次のようになります。

invoke method(#wordapp.documents.item<'test.doc'>.activate)

 
次の点にも注意してください。

  • コレクションにおける括弧には、通常の括弧ではなく、不等号の組(<>)を使用します。
  • 二重引用符は一重引用符に置き換えます。
  • No labels