我有以下格式:Value1是{0},Value2是{1}.
我需要用字符串替换括号中的数字.这在大多数语言中都可以使用string.Format或其他类似的东西轻松完成.我怎么能只使用vbscript呢?
我试过了:
Replace (strFormat, "{0}", value1) Replace (strFormat, "{1}", value2)
这是行不通的.有解决方案吗
vbscript formatting string-formatting
formatting ×1
string-formatting ×1
vbscript ×1