全てのキー (Item プロパティの添字) を配列 (SAFEARRAY) にして返します。
var t = Application.ActiveDocument.Text;
var keys = t.Keys();
keys = keys.toArray();
var i;
for (i in keys)
Script.Echo(keys[i] + " = " + t(keys[i]));
Dim t, keys, k
Set t = Application.ActiveDocument.Text
keys = t.Keys
For Each k In keys
Script.Echo k & " = " & t(k)
Next
Sazanami Help
Copyright (c) 2023 Narumi Watanabe.
All Rights Reserved.