【发布时间】:2016-11-20 12:24:48
【问题描述】:
我有这个简单的 VBScript 基本代码。
Dim cars: cars = Array("Volvo", "Saab", "BMW")
Dim fruits: fruits = Array("Apple", "Orange", "Banana")
Dim i: i = 0
For i = 0 To UBound(cars)
Call Response.Write(cars(i) & " " & fruits(i))
Next
输出:
Volvo Apple
Saab Orange
BMW Banana
我想以数组变量仍然匹配的方式将所有变量放入配置 .ini 文件。 (例如 Volvo 和 Apple 代表 Volvo Apple)有人知道或有想法吗?
我试图在互联网上搜索这个,但没有这个主题。非常感谢您的回答。
【问题讨论】:
-
看structure of an INI file并相应地写出内容,没什么特别的,I've already shown you how you can output the content of the arrays。现在由您来构建 INI 格式。
标签: arrays loops vbscript config ini