Hello,

I'm looking for a way to empty a global variable, declared as an array of a user-defined type, and this several times in the program

Example:

Type BSCSCustomer
customer_id As Long
MatchCustomerNumber As Integer
MatchInvoice As Integer
MatchExternalReference As Integer
MatchGSMNumber As Integer
MatchAccountNumber As Integer
MatchName As Integer
MatchAddress As Integer
End Type

Global PossibleCust (0 To 200) As BSCSCustomer

I already tried REDIM PRESERVE, but I get the compile error 'Array already Dimensioned'. The goal is to be sure that the variable is empty before I re-use it.

Thanks!!