I am trying to use Replace in a macro for devstudio 6 sp3 but it keeps giving me the error Type mismatch 'Replace'

I even copied the sample code right out of the documentation and it gives the same error.


sub testing
Dim MyString
MyString = Replace("XXpXXPXXp", "p", "Y")
end sub




I'm useing Visualstudio 6 Proffesional SP3 on a pIII450 256MBRam running Win98

any sudjestions would be helpfull, and I have tried reinstalling everything.

Eric