本帖最后由 魔导 于 2012-4-7 16:43 编辑
小弟想要把 FOR 创建的 Input 中的数字写进 *.ini 文件里去,
请各位前辈指点指点......感激不尽
试过多次之后要么出错要么就之读得最后一个 Input 的数字, 写 *.in i的时候都写成一样了
代码是这样的
Local $wuping[17] = ['01','sad','qw11','00','15tr8','1155','fgh545','125tt','1225y','yu45','125tty','125yy5','1258yyu','236ty','1255yty','125rt','fg125']
Local $var = IniReadSection("F:\测试\价目.ini", "2012-04-07")
GUICreate("调控器",300,600)
$input = GUICtrlCreateInput("",0,2,80,15)
$mi = GUICtrlRead($input)
$button = GUICtrlCreateButton("查询",120,0,30,20)
$button1 = GUICtrlCreateButton("写入",80,0,30,20)
For $i = 0 to 16
GUICtrlCreateLabel($wuping[$i],0,30+30*$i)
GUICtrlCreateInput("",80,30+30*$i,30,15)
Next
GUISetState()
While 1
$msg = GUIGetMsg()
Switch $msg
Case -3
Exit
Case $button
For $i = 0 To 16
GUICtrlCreateLabel($var[$i][1],130,30*$i)
Next
Case $button1
;~ 这段该怎么写??
EndSwitch
WEnd
|