PDA

View Full Version : Lame error on Split() command (vb6)



Bad Processor
11-16-2008, 07:40 PM
I get error 13 (type mismatch) on this command:
pa = Split(et, ",", , vbTextCompare)
any help?
the rest of the sub:
Dim pa(), ct, et As String
et = ActiveForm.rtfText.Text
pa = Split(et, ",", , vbTextCompare)
ct = ""
For x = 1 To UBound(pa)
ct = ct + CStr(Chr(pa(x)))
Next x
ActiveForm.rtfText.Text = ct

Thanks.
EDIT: Found solution.
-- BadProcessor

TViYH
11-16-2008, 07:51 PM
May I ask where you downloaded VB6? PM me the answer.

Bad Processor
11-16-2008, 07:56 PM
TViYH,
i can't PM you the link, as I have it on one of the 2004 *I think, may be 2005* MSDN disks my friends dad gave me, who I will not share the name of. Have it in the full suite of Studio 6.0.

-- BadProcessor