Hi,
Here’s a quick one, but I can’t locate an answer, so apologies if this one seems stupid.
What’s the easiest way to check whether an array contains data or not…?
Initially I tried with “IsEmpty” as it applies to variants but VBE still complains…
Thought also about checking Ubound, but seems somehow odd…
Code snippet:
…..
If strCompanyID = “” Then DocProp_Get (“cdpCompanyID1”)
If IsEmpty(arrCompanyDetails) Then
arrCompanyDetails = GetCompanyDetails(strCompanyID, iLANGID1)
End if
……
Ooops – forgot to mention that arrCompanyDetails is a custom defined type that gets filled when GetCompanyDetails are called
(part of it’s Type definition below)
Type BasicInfo ‘arrCompanyDetails get filled with these types
Company_ID As String
Company_Name As String
Country_Name As String
Sector_Name As String
Currency_Basis As String
Currency_Invoice As String
……
End type
Better suggestions?
ThX