Any way to force the Split function to adhere to the Option Base 1 setting? Works okay for static declarations but ignored with dynamic allocations. Maybe a hidden option in the parameter list to Split I missed?
Code:
Option Compare Database
Option Explicit
Option Base 1 <<<<<<<<<<<<<<
Const str As String = "Marge, Mary, Joan, Jason, Michael & Peter - Plus Henry, Philip, & Macy Head - & Joseph Arnold"
Dim strChList As String
Dim strTst As String
Dim Ndx As Integer
Dim MaxNdx As Integer
Dim ChAr() As String <<<<<<<<<<<<<<
Dim LnAr(10) As String <<<<<<<<<<<<<<
Dim lngMaxLn As Long
Dim Lndx As Integer
Dim ISayStop As Boolean
Dim DoLine As Boolean
Dim I As Integer
Private Sub tst()
lngMaxLn = 2160 '1.5 inches
lngMaxLn = 2880 '2.0 inches
lngMaxLn = 2760 'TMS profiles
strChList = "Marge, Mary, Joan, Carol, Jason, Michael & Peter - Plus Henry, Bill, Lori, Philip, & Macy Head - Plus Joseph & Kathy Arnold"
Lndx = -1
strTst = ""
Ndx = 0
ChAr = Split(strChList, " ")
MsgBox "lbound(ChAr) = " & LBound(ChAr) & " lbound(LnAr) = " & LBound(LnAr)