1

Topic: How to check up that an array it is initialized?

Is, we admit Dim a () As String as the condition to write not to come into the unit if I and do not initialize it?

2

Re: How to check up that an array it is initialized?

Hello, Kaifa, you wrote: K> K> Dim a () As String K> K> as a condition to write not to come into the unit if I and do not initialize it? For example so Function HasData (a) res = False On Error Resume Next res = UBound (a)> = 0 Or True HasData = res End Function... if HasData (a) then...

3

Re: How to check up that an array it is initialized?

K> K> Dim a () As String K> K> as a condition to write not to come into the unit if I and do not initialize it? The BASIC what? If VB.NET, so: Dim an As String () If Not an Is Nothing Then ' do things End If If type FreeBasic, so: Dim a () As String If UBound (a)> 0 Then ' do things End If

4

Re: How to check up that an array it is initialized?

Hello, yenik, you wrote: Y> the BASIC what? If VB.NET, so: Y> Y> Dim an As String () Y> If Not an Is Nothing Then Y> ' do things Y> End If Y> Y> If type FreeBasic, so: Y> Y> Dim a () As String Y> If UBound (a)> 0 Then Y> ' do things Y> End If Y> I Suspect that VBA there both variants fly by