Alan,
> (Q When using Show for row 4 the output is [1 4 6 4 1] but when using it
> for row 11 it is 1|10|45|120|210|252|210|120|45|10|,,,|,,,
[snip]
> action:proc {$}
> N={FastPascal {String.toInt {HI get($)}}} in
> {Show N} % Shows correctly at least up to row 11
> {HO set(N)}
> end))
The difference is that Show displays an arbitrary value, converting it
to a form suitable for output to the console. (For instance, a record
foo(bar) would be "foo(bar)".) Set(), on the other hand, expects only
a string. You can convert N to a string beforehand using
Value.toVirtualString (which is close enough to a string for Set's
purposes).
action:proc {$}
N={FastPascal {String.toInt {HI get($)}}} in
{Show N} % Shows correctly at least up to row 11
{HO set({Value.toVirtualString N 1000 1000})}
end))
HTH,
Max Wilson
--
Be pretty if you are,
Be witty if you can,
But be cheerful if it kills you.
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users