Will Format ever possess the facility to set the format on all subsequent items, or will that functionality be lost?
Edit: Reference this thread where there is a bit of user aversion to the curly bracket thingies in Format. It might make the expression for our shrinking bracketeurs a little more readable by replacing the surrounding quotes with FormatStr(content_within_quotes) but then there is the extra issue of escaping ")" and the rest.
SetFormat is quite useful in report generation, where it's desired to output e.g. an integer as hex or float for certain sections of code. This could mean tailoring of the code structures so to accommodate SetFormat statements within it, not an issue as the flow in output routines is generally top-down.
In absolute terms, Format is far superior, and with a bit of extra work for the user, it can replace all the functionality of SetFormat by the implementation of delegate-like subs in the script. If it can be be applied to operate on the ensuing lines of the script like so:
Where Lines is reserved to effect SetFormat in the manner as referenced in its Help entry, then, yes, bid farewell to Setformat.
Code: Select all
Format, (returnStr OR Lines), (FormatStr , Values...)