1. <tt id="5hhch"><source id="5hhch"></source></tt>
    1. <xmp id="5hhch"></xmp>

  2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

    <rp id="5hhch"></rp>
        <dfn id="5hhch"></dfn>

      1. asp是如何得到動態(tài)數(shù)組中元素的個數(shù)

        時間:2020-11-13 10:07:23 ASP 我要投稿

        asp是如何得到動態(tài)數(shù)組中元素的個數(shù)

          asp是如何得到動態(tài)數(shù)組中元素的.個數(shù)

          一個動態(tài)數(shù)組 a,如果你已經(jīng)使用redim 語句給它設定了大小,那么在此之后使用 ubound(a) 就可以得到它的上邊界。

          如果你沒有使用 redim 語句給它設定大小,直接使用 ubound(a) 函數(shù),那么運行時會報錯,并會中斷程序的執(zhí)行.我們恰恰利用這一點,可以知道這個數(shù)組還沒有任何元素。于此同時,我們卻不想程序中斷執(zhí)行,那么可以在 ubound(a) 函數(shù)執(zhí)行前加上一句

          復制代碼 代碼如下:

          on error resume next

          把本功能寫成一個函數(shù) function get_element_count_of_one_aray(name_of_aray)

          復制代碼 代碼如下:

          on error resume next

          uper_bound_of_aray=ubound(name_of_aray)

          if err then

          get_element_count_of_one_aray=0

          else

          get_element_count_of_one_aray=uper_bound_of_aray+1

          end if

          end function

        【asp是如何得到動態(tài)數(shù)組中元素的個數(shù)】相關文章:

        1.JavaScript中的索引數(shù)組、關聯(lián)數(shù)組和靜態(tài)數(shù)組、動態(tài)數(shù)組的分類講

        2.asp數(shù)組重復刪除函數(shù)

        3.平面廣告設計中的動態(tài)交互元素

        4.如何在Excel中動態(tài)調(diào)取圖片

        5.asp.net動態(tài)獲取Excel表名的代碼

        6.學習如何調(diào)試ASP的環(huán)境

        7.解讀Rnd 函數(shù)中的asp

        8.asp.net 動態(tài)引用樣式表代碼示范

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码

        1. <tt id="5hhch"><source id="5hhch"></source></tt>
          1. <xmp id="5hhch"></xmp>

        2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

          <rp id="5hhch"></rp>
              <dfn id="5hhch"></dfn>