This function got a complete overhaul, please visit the first post of this topic to get the update.Well, most important for me was to get rid of the error situations. Making the function to fail just because of some minor mistakes in the format template always caused pain in my ass. It would be like making PRINT "Hello Word" to fail just because of the missing "l". So now the IndexFormat$() function will try its best with every given format template, but just like in the mentioned example it will probably not give the expected output, if the template does not follow the rules, but that should be already the worst thing to happen.
I've added format symbols for decimal and real outputs, where decimal is (just like bin/hex/oct) limited to output the closest (_ROUND) integer, while real is simply a shortcut for LTRIM$(STR$(num)).
Completly new are the preferences specifiers, which allow to customize the standard behavior of some PRINT USING format symbols and the bin/dec/hex/oct outputs. So you can set an alignment for strings in a fixed length field (\\), group bin/dec/hex/oct outputs in blocks with a certain amout of digits, replace the dollar sign for currency formatting and/or flip the usage of comma and dot as group/decimal separator.
BTW - Happy New Year to everybody@bplus when updating the Samples Gallery, please ...
- waive to / remove any ordinal numbers regarding the current version, for the Version tag in the header the date should be enough, in the description text just give an overview of the current features, its irrelevant which feature got added in which version
- completely remove the RhoSigma quote
- attach the new archive, rather than the HTML doc only
Thank You