|
解决第一列的数字格式问题,使用Schema.ini文件
子程序:- Public Sub CreateSchemaFile(sPath As String, sSectionName As String)
- '创建SchemaFile.ini文件
- Dim Handle As Integer
- Handle = FreeFile
- Open sPath & "schema.ini" For Output Access Write As #Handle
- Print #Handle, "[" & sSectionName & "]"
- Print #Handle, "ColNameHeader =True"
- Print #Handle, "MaxScanRows = 0"
- Print #Handle, "Format = Delimited(,)"
- Print #Handle, "Col1=人员编号 Char Width 17"
- Print #Handle, "Col2=姓名 Char Width 8"
- Print #Handle, "Col3=应发工资 Currency"
- Print #Handle, "Col4=职务岗位工资 Currency"
- Print #Handle, "Col5=级别薪级工资 Currency"
- Print #Handle, "Col6=绩效工资 Currency"
- Print #Handle, "Col7=教护龄津贴 Currency"
- Print #Handle, "Col8=警衔津贴 Currency"
- Print #Handle, "Col9=工作津贴 Currency"
- Print #Handle, "Col9=工作津贴 Currency"
- Print #Handle, "Col10=生活补贴 Currency"
- Print #Handle, "Col11=岗位津贴 Currency"
- Print #Handle, "Col12=职务津贴 Currency"
- Print #Handle, "Col13=地区津贴 Currency"
- Print #Handle, "Col14=考勤奖 Currency"
- Print #Handle, "Col15=行业性津贴 Currency"
- Print #Handle, "Col16=提租补贴 Currency"
- Print #Handle, "Col17=保留工资 Currency"
- Print #Handle, "Col18=浮动工资 Currency"
- Print #Handle, "Col19=其他应发 Currency"
- Print #Handle, "Col20=一次性补扣发 Currency"
- Print #Handle, "Col21=代扣金额 Currency"
- Print #Handle, "Col22=住房公积金 Currency"
- Print #Handle, "Col23=养老保险金 Currency"
- Print #Handle, "Col24=失业保险金 Currency"
- Print #Handle, "Col25=医疗保险金 Currency"
- Print #Handle, "Col26=个人所得税 Currency"
- Print #Handle, "Col27=水电费 Currency"
- Print #Handle, "Col28=房租费 Currency"
- Print #Handle, "Col29=其他代扣 Currency"
- Print #Handle, "Col30=实发工资 Currency"
-
- Close Handle
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|