在command1中或者form_load()中写:dim i as integet for i=0 to 10 combo1.additem "2009_" & i next
所需控件 Text1,Combo1,Command1直接把下面代码复制过去 Option Explicit Private Const TPath As String = "C:\Program Files\Save.ini" '"\Save.ini" Private Sub Command1_Click() Combo1.AddItem Text1.Text SaveToFile TPath End Sub
Private Sub Form_Load() On Error Resume Next ReadFromFile TPath Command1.Enabled = False End Sub
Sub ReadFromFile(ByVal strPath As String) Dim strTemp As String Open strPath For Input As #1 Do While Not EOF(1) Line Input #1, strTemp Combo1.AddItem strTemp Loop Close #1 End Sub
Sub SaveToFile(ByVal strPath As String) Dim i As Integer Open strPath For Output As #1 For i = 0 To Combo1.ListCount - 1 Print #1, Combo1.List(i) Next Close #1 End Sub
for i=0 to 10
combo1.additem "2009_" & i
next
Option Explicit
Private Const TPath As String = "C:\Program Files\Save.ini" '"\Save.ini" Private Sub Command1_Click()
Combo1.AddItem Text1.Text
SaveToFile TPath
End Sub
Private Sub Form_Load()
On Error Resume Next
ReadFromFile TPath
Command1.Enabled = False
End Sub
Sub ReadFromFile(ByVal strPath As String)
Dim strTemp As String
Open strPath For Input As #1
Do While Not EOF(1)
Line Input #1, strTemp
Combo1.AddItem strTemp
Loop
Close #1
End Sub
Sub SaveToFile(ByVal strPath As String)
Dim i As Integer
Open strPath For Output As #1
For i = 0 To Combo1.ListCount - 1
Print #1, Combo1.List(i)
Next
Close #1
End Sub
比如:
选aaa 得1234
选bbb 得135
选ccc 得454
1、年龄:25-35岁;
2、学历及专业:必须为正规全国统招全日制本科以上学历,计算机或相关专业,两年以上软件开发工作经验;
3、熟练使用VB开发语言,并能够熟练使用这种语言进行GUI/WinForm界面功能的开发;
4、精通SQL Server、ORACLE数据库应用程序的开发;精通数据库存储过程的开发;对数据库应用性能优化有丰富经验;
5、熟悉面向对象的分析设计技术和工具,包括UML建模、Rose应用;
6、了解CMMI软件过程方法。
7、有积极的工作态度,勤奋踏实,沟通和学习能力较好,能积极面对工作压力,善于和各种背景的人合作;
8、有企业管理软件开发经验者优先,有行业背景(如:制造业、财政、房地产等,)或业务知识(如:财务、HR、供应链等)尤佳。