Code problem eludes me

  • Thread starter Thread starter Bryan Dickerson
  • Start date Start date
B

Bryan Dickerson

This section of my code in one of my custom forms is getting a "Type
Mismatch" error, but the reason eludes me. Specifically, it's bombing on
the Split statement.

--------------------- Code --------------------
Dim sTemp
Dim sTextLines()

sTemp = Item.UserProperties("History Text").Value
sTemp = Replace(sTemp, CrLf, NullSt)
sTemp = Replace(sTemp, Cr, NullSt)
sTemp = Replace(sTemp, Lf, NullSt)

sTextLines = Split(sTemp, LnMrk)
-------------------- Code ---------------------
(CrLf, Cr, Lf & LnMrk are all declared as constants)

Any ideas why a Split statement would be causing a "Type Mismatch" error.
I've even stopped and stepped thru it to no avail. Any and all ideas are
welcomed.

TIA!

Bryan
 
As usual, you were correct. I checked another part of my code that uses the
Split function and I had Dim-ed the variable without the parens also.

Thanx again!
 
Back
Top