乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      VFP_生成自動編號、添加代碼

       悟靜 2009-04-24
      注釋:
      1. alltrim()  去左右空格
      2. messsgebox(" 顯示信息",R,"對話框標(biāo)題欄顯示內(nèi)容")

              參數(shù)R:http://www.hbhlny.cn/content/090424/14/19147_3251622.html

       
      b=alltrim(thisform.Text2.value)
      c=alltrim(thisform.Text3.value)
      if empty(b) &&此條件成立則說明該文本框是空的
         messagebox("請輸入網(wǎng)站名稱",16,"系統(tǒng)提示")
         return
      else
        locate for 網(wǎng)站名稱=b
        if .not.eof() &&此條件成立,說明要添加的內(nèi)容和表中有重復(fù)的
            go top
            messagebox("不允許有重復(fù)的網(wǎng)站名稱",16,"系統(tǒng)提示")
            return
        endif
      endif
      msg=messagebox('確定要添加記錄嗎?',32+4,'系統(tǒng)提示')
      if msg=6    && 6為是、7否
       
      &&以下將文本框內(nèi)的值插入記錄
       
      INSERT INTO "contacts.types" ("subject_type_id","subject_type") ;
       VALUES("alltrim(thisform.Text1.value)","alltrim(thisform.Text2.value)")
       
       messagebox('保存記錄成功!',64,'系統(tǒng)提示')
         
      thisform.grid1.refresh
          calculate max(subject_type_id) to maxbh  &&在數(shù)據(jù)表中查找出序號最大的記錄
          szbh=val(right(maxbh,3))  &&取出數(shù)字部分
          if szbh=0 then  &&判斷數(shù)字部分是否為0
        zdbh='KM001'
          else
        zdbh='wz'+padl(alltrim(str(szbh+1)),3,'0')  &&生成自動編號
          endif
          thisform.Text1.value=zdbh
          thisform.Text2.value=""
        
          thisform.Text2.setfocus
          thisform.refresh
      endif

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多