标题:求助:如何改善这个程序?原来的太长了,小女子我怕啊。
只看楼主
ktliaobo
Rank: 2
等 级:论坛游民
帖 子:27
专家分:17
注 册:2014-1-12
得分:0 
我再试试看  调试下
2014-03-05 19:08
ktliaobo
Rank: 2
等 级:论坛游民
帖 子:27
专家分:17
注 册:2014-1-12
得分:0 
Select 1
 Use 01
 Go Top
 Do While Eof() = .F.
     For i = 1 To 10
         a = Field(i)
         If &a > 0
             For h = 11 To 131
                 IF i = 10
                    c = 0
                 ELSE
                    c = i
                 ENDIF
                 If Alltrim(Str(c))$Field(h)
                     b = Field(h)
                     Replace &b With &a
                 Endif
             Endfor
         Endif
     Endfor
     Skip
 Enddo
 k = 11
 Do While k <= 130
     a = Field(k)
     Go Top
     c = 0
     Do While Eof() = .f.
         IF &a > 0
             c = c+1
         ELSE
             c = 0
         Endif
         If c > 0 AND &a > 0
            Replace &a With c
         Endif
         Skip
     ENDDO
     k = k+1
 Enddo
你再试试看  这个能满足你的要求
2014-03-05 19:27



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




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

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