Hello, some of my textfields are copy and pasted from other appllications and only contain chr(10) as cr. In my application (Rational ClearQuest) this shows as a little block so i want to globally replace all chr(10) which are not preceded with chr(13) with chr(13)+chr(10).
THIS DOES NOT WORK:
i dont know if it will work but it currently gives me :
Can anyone help me?
--
THIS DOES NOT WORK:
Code:
declare @NewLine1 char(2);
declare @NewLine2 char(1);
declare @NewLine3 char(1);
set @NewLine1=char(13)+char(10);
set @NewLine2=char(10);
set @NewLine3=char(13);
update Defect
set description = Replace(description , @NewLine2,'')
where id='sb00012845';
update Defect
set description = Replace(description , @NewLine3, @NewLine1)
where id='sb00012845';
i dont know if it will work but it currently gives me :
Code:
Argument data type text is invalid for argument 1 of replace function.
Argument data type text is invalid for argument 1 of replace function.
Can anyone help me?
--