VDK printf function
A VBScript development library for serious VBScript programmers
Brought to you by:
jasonely
printf allows a programmer to format strings using printf syntax.
strPrintF = vdk.printf("Color %s, number1 %d, number2 %05d, hex %#x, float %5.2f, unsigned value %u.\n", "red", array(123456, 89, 255, 3.14159, 250))
The printf function will be added to the VDK root object or will be added to global function scope. Still undecided about this.
For more info on printf see wikipedia:
Dev and testing done.
Additionally, have only implemented conversion types %s and %d. Because VBScript is a type agnostic language, I'm still thinking about how to implement float, short, hex, ocatl, etc.
If there is a need for such functionality in the future, I will implement it.