Post the line of code that's breaking...
You are most likely trying to trim the text in a control array but are only refering to the control name and not the index of the control.
Example:
Code:
' Pretend you want to set the caption of a label equal to the trimmed
' value of a text box that is part of a control array.
' This will fail because the index for Text1 is missing:
Label1.Caption = Trim$(Text1.Text)
' This will work just fine:
Label1.Caption = Trim$(Text1(0).Text)
Hope that helps. If it didn't, post the code around (and including) the line that's breaking so we can understand better what's going on. I guarantee you that you DIDN'T break the Trim function :)
I'll take a look at it if you want...
Please zip all the files together before mailing (if you can...it saves download time) and mail it to:
[email protected]