410521a 发表于 2010-4-11 21:06:25

怎么读出INI文件数据到ListView

代码:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiListView.au3>
#Region ### START Koda GUI section ### Form=d:\其它\工程\form1.kxf
$Form1 = GUICreate("数据库修改", 463, 369, 192, 106)
$ListView1 = GUICtrlCreateListView("姓名|性别|身份证|地址", 24, 24, 411, 286)
_GUICtrlListView_SetExtendedListViewStyle($ListView1, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT))
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 64)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 50)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 130)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 3, 160)
$Button1 = GUICtrlCreateButton("确定", 96, 326, 75, 25)
$Button2 = GUICtrlCreateButton("退出", 240, 326, 75, 25)
$Label1 = GUICtrlCreateLabel("", 250, 3, 188, 20)
GUICtrlSetColor(-1, 0xFF0000)
;~ GUICtrlSetData($Label1,"数据库中一共有"& $dir &"个用户!!")
GUISetState(@SW_SHOW)
duqu()
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd


ini文件:
-------------------------------

姓别=陈xx
性别=男
证件类型=身份证
证件编号=410xxxxxxxxxxxxxxxx
地址=xxxxxxx
-------------------------------

姓名=张xxxxxxx
性别=女
证件类型=身份证
证件编号=410xxxxxxxxx
地址=xxxxxxxxx
-------------------------------

410521a 发表于 2010-4-15 01:30:33

贴子发了这么久`昨天大晚上才通过审核```还没人回复` `不过差不多已经搞定了

afan 发表于 2010-4-15 01:33:39

回复 2# 410521a


    是自动屏蔽的(关键字应该是“身份证”),没提醒~~
这个问题很简单,论坛的例子有大把

afan 发表于 2010-4-15 01:42:24

随便给你搜一个 http://www.autoitx.com/forum.php?mod=viewthread&tid=10606&rpid=99640&ordertype=0&page=1#pid99640
页: [1]
查看完整版本: 怎么读出INI文件数据到ListView