View previous topic :: View next topic
|
Author |
Message |
sdharitas
New User
Joined: 10 Mar 2005 Posts: 3 Location: Chennai
|
|
|
|
Hi all,
i got a request. in that i need to check whether it contains '*' or ';'. if so, replace them with spaces. i used INSPECT.
INSPECT VAR replacing all '*' by ' '
INSPECT VAR replacing all ';' by ' '
can any body tell me is it correct or wrong. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
can any body tell me is it correct or wrong. |
That is correct and will give you desired results.
Regards,
Priyesh. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
It's probably more efficient to do it this way:
INSPECT VAR replacing all '*' by ' ' all ';' by ' ' |
|
Back to top |
|
|
sdharitas
New User
Joined: 10 Mar 2005 Posts: 3 Location: Chennai
|
|
|
|
Hi friends,
thanks for ur suggestions. i implemented and thats working fine.
Regards
Satya |
|
Back to top |
|
|
|