亚洲欧洲国产欧美一区精品,激情五月亚洲色五月,最新精品国偷自产在线婷婷,欧美婷婷丁香五月天社区

      考試首頁 | 考試用書 | 培訓課程 | 模擬考場 | 考試論壇  
      全國  |             |          |          |          |          |         
        當前位置:計算機等級 > 二級考試 > Visual FoxPro > VF模擬試題 > 文章內(nèi)容
        

      全國計算機二級考試VF模擬試卷第十四套(綜合應用)

      中華IT學院   【 】  [ 2016年7月19日 ]

      綜合應用(1小題,計30分)

      考生文件夾下的gnht.dbf是一個合同管理表文件,其中部分字段的含義是:

      HTH(合同號)、DHDW(訂貨單位)、GHDW(供貨單位)、JHSL(訂貨數(shù)量)。

      編寫程序progzh.prg分別統(tǒng)計訂貨單位數(shù)、供貨單位數(shù)、訂貨總數(shù),并將結(jié)果填寫到j(luò)ieguo.dbf(在考生目錄下已經(jīng)存在)表文件中。

      說明:以上命令文件必須執(zhí)行,并產(chǎn)生所要求的結(jié)果。

      解題思路:

      在文件progzh.prg存放內(nèi)容如下:

      close all

      select count(distinct dhdw) from gnht into array a

      select count(distinct ghdw) from gnht into array b

      select sum(jhsl) from gnht into array c

      use jieguo

      replace num with a(1)

      skip

      replace num with b(1)

      skip

      replace num with c(1)

      分享到:
      本文糾錯】【告訴好友】【打印此文】【返回頂部
      將考試網(wǎng)添加到收藏夾 | 每次上網(wǎng)自動訪問考試網(wǎng) | 復制本頁地址,傳給QQ/MSN上的好友 | 申請鏈接 | 意見留言 TOP
      關(guān)于本站  網(wǎng)站聲明  廣告服務(wù)  聯(lián)系方式  站內(nèi)導航  考試論壇
      Copyright © 2007-2013 中華考試網(wǎng)(Examw.com) All Rights Reserved