Come posso utilizzare il risultato di un messaggio << Ottieni formato per impostare il formato di una colonna diversa?
f = :Column 1 << Get Format;
// the following don't work
:Column 2 << Set Format( f );
:Column 2 << Set Property( f );
Ho trovato una soluzione:
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 />
Se chiedi più Arg () di quanti ne contenga il formato, Arg restituisce Empty (). Vuoti () ridondanti / estranei non sembrano causare problemi quando si applica il formato alla colonna 2, per fortuna.
Mi sembra che quattro Arg () siano sufficienti per adattarsi praticamente a qualsiasi formato possibile.