标题:[求助]谁有用vb编写的简易通讯录源码?
只看楼主
glober609
Rank: 1
等 级:新手上路
帖 子:73
专家分:0
注 册:2005-3-7
 问题点数:0 回复次数:1 
[求助]谁有用vb编写的简易通讯录源码?
谁有用vb编写的简易通讯录源码?给我发一份!hustdh@

或者将源码贴在论坛上面也可!
搜索更多相关主题的帖子: 通讯录源码 编写 hustdh 
2005-03-08 10:34
liuttt21
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-12-9
得分:0 

我也想要啊
  Private Sub Form_Load()
  Dim tpStr As String, i As Integer
  fileName = App.Path & "\data.txt"
If Dir(fileName) <> "" Then
   '加载数据
   Open fileName For Input As #1
    Do While Not EOF(1)
     With ListView1.ListItems.Add()
      For i = 0 To 4
       Line Input #1, tpStr
       If i = 0 Then
        .Text = tpStr
       Else
        .SubItems(i) = tpStr
       End If
      Next i
     End With
    Loop
   Close #1
  End If
  End Sub

  Private Sub Form_Unload(Cancel As Integer)
  Dim i As Integer
  Dim tpList As ListItem
  '保存数据
  Open fileName For Output As #1
   For Each tpList In ListView1.ListItems
    Print #1, tpList.Text
    For i = 1 To 4
     Print #1, tpList.SubItems(i)
    Next i
   Next tpList
  Close #1
  End Sub

2006-12-09 22:21



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-12978-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.122624 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved