Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 removing Cr from string (vb)

Author  Topic 

igorblackbelt
Constraint Violating Yak Guru

407 Posts

Posted - 2006-06-22 : 14:32:40
Hi gurus -
Does anyone knows how to remove CR (little squares) from a string using VB (DTS ActvieX) ?

Thanks!


---

Thanks!
Igor.

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2006-06-22 : 19:31:39
[code]myString = Replace(myString, vbCrLf, "")[/code]
FYI vbCrLf is a VB constant for Chr(13)+Chr(10)

If you only want to remove the CR, you can do this:
[code]myString = Replace(myString, Chr(13), "")[/code]

HTH,

TIm
Go to Top of Page
   

- Advertisement -