Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

關於vb的程式語法

請問各位 vb的精英們

Dim clsGoodInfo As New dbclsGoodInfo()

這句程式是什麼意思?

初學者~~很頭痛呀!

Update:

goodinfo是資料表名稱

1 Answer

Rating
  • 1 decade ago
    Favorite Answer

    Dim 的意思是宣告

    就是告訴每一段程式,某某東西都是一樣的

    例:

    Dim a

    你告訴command1 按下去以後(chick)

    a=form.caption 的話

    那你就算沒有在command2 裡面講a是什麼

    那他也會知道 a=form.caption

    簡單來說,就是讓大家都到某某某是一樣的

    Dim會寫在整個程式的最上面

    例:

    Dim clsGoodInfo As New dbclsGoodInfo()

    -----------------------------------------------------------

    下面才是程式

    至於我想clsGoodInfo As New dbclsGoodInfo()

    這句我也不懂 所以沒辦法幫你 抱歉囉!

    不過就如上所說,我想它應該就是告訴每段程式

    他是某某某吧

    Source(s): 自己
Still have questions? Get your answers by asking now.