My idea is to provide a mechanism by which a cluster can be wired to a single terminal of a Format to String function. The individual items could then be referred to by name in the formatting string - perhaps using a syntax similar to the current one for selecting the input to format by position number. It would not be hard to envision a syntax that would be able to handle arrays, and even embedded clusters.
For example, say the basic syntax for accessing a cluster item by name is something like:
$item_name.format_code.
So formattinga value name "number" could be something like:
$number.%d.
Extending this example to an array of numbers, contained in an item named "numbers", you could do something like:
$numbers[%d"\n"]
Where each element in the array would be formatted into a number followed by a linefeed. Finally, you could support arrays of clusters with something like this (for an array of error clusters):
$many_errors[{"Status ="$status.%b", Code ="$code.%d", Description ="$source.%s"\n"}]
To generate one line for each element in the array.
Mike...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has not received any kudos within a year after posting will be automatically declined.