找回密码
 加入
搜索
查看: 2137|回复: 3

[AU3基础] 怎么读出INI文件数据到ListView

[复制链接]
发表于 2010-4-11 21:06:25 | 显示全部楼层 |阅读模式
代码:
#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[0] &"个用户!!")
GUISetState(@SW_SHOW)
duqu()
#EndRegion ### END Koda GUI section ###

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

        EndSwitch
WEnd


ini文件:
-------------------------------
[410xxxxxxxxxxxx]
姓别=陈xx
性别=男
证件类型=身份证
证件编号=410xxxxxxxxxxxxxxxx
地址=xxxxxxx
-------------------------------
[410xxxxxxxxxx]
姓名=张xxxxxxx
性别=女
证件类型=身份证
证件编号=410xxxxxxxxx
地址=xxxxxxxxx
-------------------------------
 楼主| 发表于 2010-4-15 01:30:33 | 显示全部楼层
贴子发了这么久`昨天大晚上才通过审核```还没人回复` `不过差不多已经搞定了
发表于 2010-4-15 01:33:39 | 显示全部楼层
回复 2# 410521a


    是自动屏蔽的(关键字应该是“身份证”),没提醒~~
这个问题很简单,论坛的例子有大把
发表于 2010-4-15 01:42:24 | 显示全部楼层
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-20 16:21 , Processed in 0.077644 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表