# Re: 请教阵列不能Public ???

Posted by job on June 05, 1999 at 08:18:58:

In Reply to: 请教阵列不能Public ??? posted by 飞云 on June 04, 1999 at 11:32:58:

: Public Allstr As String, ByteInt As Integer
: Dim ByteArr() As String, AttBool As Boolean
: 我在一般中设定
: 却发现 ByteArr()会随着sub的结束而消失
: 我该怎么保留 ByteArr()的值呢???

你宣告用dim,它的生命周期只有在你宣告的范围内才存在
public ByteArr() As String, AttBool As Boolean
可以用

Follow Ups:

- Re: 请教阵列不能Public ??? 阿志 09:16:43 6/05/99 (0)