<< Get Formatメッセージの結果を使用して、別の列のフォーマットを設定するにはどうすればよいですか?
f = :Column 1 << Get Format;
// the following don't work
:Column 2 << Set Format( f );
:Column 2 << Set Property( f );
ソリューションを考え出した:
f = :Column 1 << Get Format;
Show( f );
// f = Format("Fixed Dec", 5, 1)
a = Arg( f, 1);
b = Arg( f, 2);
c = Arg( f, 3);<BR /><BR />d = Arg( f, 4);
:Column 2 << Format( a, b, c, d )
// applies the format to Column 2<BR />
フォーマットに含まれているよりも多くのArg()を要求すると、ArgはEmpty()を返します。幸いなことに、カラム2にフォーマットを適用する際に、冗長/余分なEmpty()が問題を引き起こすことはないようです。
4つのArg()で、ほとんどすべての可能な形式に対応できるように見えます。