Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
下载信息 [文件大小: 下载次数: ] | |
![]() |
你原来的代码:
If Tables("合同").Current("付息方式") ="二月一付" Then
Dim A1 As Date = Tables("合同").Current("计息开始时间")
Dim A2 As Date = Tables("合同").Current("计息结束时间")
Dim A As Date = A1
Do While A < A2
For i1 As Integer = 0 To Tables("利息").Count-1 Step 2
Tables("利息").Rows(i1)("周期起始日") = A
A = A.AddMonths(2)
If A > A2 Then
A = A2
End If
Tables("利息").Rows(i1)("周期结束日") = A
Next
Loop
End If
第一次执行和第二次执行,都是从第一行开始赋值,也就是第二次执行的时候,你赋值的还是第一次生成的那些行。