back to Table of Contents


VSPrintF$ (function)

Return formatted output as new string, this function does emulate the C/C++ stdio function vsprintf(), it takes the arguments required for formatting, but returns the result in a string rather than printing it. You may use this function, if you need the resulting string prior to printing, eg. to calculate the position for justified output, or if you want to concatenate many strings using (semi)colons in one PRINT.


SYNTAX:

formatted$ = VSPrintF$ (fmt$, vargs$)

INPUTS:

fmt$ (STRING)

vargs$ (STRING variable)


RESULT:

formatted$ (STRING)


ERRORS:


back to Table of Contents