大家好,无意间得到的程序,我想问下程序的意思
第一段 form initCOPY FILE \\aecess\aecess\名表.DBF TO E:\aecess\A106.DBF
SELECT 6
USE E:\aecess\A106
DELE FOR 部门供户=" "
PACK
APPEND BLANK
BROW FIEL 部门供户,供货单位,供品名,供规格,供单位
DELE FOR 部门供户=" "
PACK
SELECT 7
USE \\aecess\aecess\名表
BS1=RECCOUN()
SA1=1
DO WHILE SA1<=BS1
SELECT 7
GO SA1
REPLACE 部门供户 WITH " ",供货单位 WITH " ",供品名 WITH " "
REPLACE 供规格 WITH " ",供单位 WITH " "
SA1=SA1+1
ENDDO
SELECT 6
BS1=RECCOUN()
SA1=1
DO WHILE SA1<=BS1
SELECT 6
GO SA1
STORE 部门供户 TO QW1
STORE 供货单位 TO QW2
STORE 供品名 TO QW3
STORE 供规格 TO QW4
STORE 供单位 TO QW5
SELECT 7
GO SA1
REPLACE 部门供户 WITH QW1,供货单位 WITH QW2,供品名 WITH QW3,供规格 WITH QW4,供单位 WITH QW5
SA1=SA1+1
ENDDO
SELECT 6
USE
DELE FILE E:\aecess\A106.DBF
SELECT 7
USE
第二段 combo1 click
IF EMPTY(ALLTRIM())
ELSE
COPY FILE \aecess\名表.DBF TO E:\aecess\Z101.DBF
SELECT 4
DELE ALL
PACK
SELECT 5
USE E:\aecess\Z101
DELE FOR 供品名<>ALLTRIM()
PACK
DO WHILE .T.
SELECT 5
GO 1
STORE 供规格 TO CC1
SELECT 4
APPEND BLANK
REPLACE 供规格 WITH CC1
SELECT 5
DELE FOR 供规格=CC1
PACK
SELECT 5
BB121=RECCOUNT()
IF BB121=0
EXIT
ENDIF
ENDDO
SELECT 5
USE
DELE FILE E:\aecess\Z101.DBF
ENDIF
THISFORM.TEXT5.VALUE=""
第一段看明白了,主要是第二段第一行
第二段,不能读出来,供贷单位,下拉列表里没有出现供货单位的名
[ 本帖最后由 zenclp 于 2013-6-1 10:01 编辑 ]