請問
vb要如何複製一陣列
dim a(2) as single
dim b(2) as single
a(1)=2:a(2)=2
b=a 會error 但是若改為dim b as variant 則就對ㄌ why?
一定要宣告成variant型態才能複製嗎?
還有
若要回傳一陣列該怎麼寫
問題同上
dim b as variant
b=test()
b也是要宣告成variant型態才能嗎?

另外
public type data
name(a,b) as single
end type
請問我想讓a,b為使用者決定可變的變數 該如何撰寫
arrow
arrow
    全站熱搜

    vbqa 發表在 痞客邦 留言(1) 人氣()