fnFORMAT function
dynamic
fnFORMAT(
- dynamic v1,
- dynamic v2
Expression function FORMAT(fmt,x): Formatted output. The Dart result differs from the Windows engine; see the manual, Appendix C.3.
Implementation
dynamic fnFORMAT(dynamic v1, dynamic v2) {
// Simplified version: sprintf-style, only supports basic %d, %f, %s
if (v2 == null) return '';
final fmt = varToStr(v1);
return _sprintfSimple(fmt, v2);
}