Hans,

The CONVERT statement does not change the way you think.

   LINE="1234jello123green4"
   CONVERT "1234" TO "ABCD" IN LINE

will result in LINE containing "ABCDjelloABCgreenD"

You want the CHANGE function.

   CHANGE (expression, substring, replacement [ ,occurrence [ ,begin] ]
)

where every occurrence of the substring is changed to the replacement.

   LINE=CHANGE(LINE, "&", "&")

should work,

Jef...

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Morawa, Hans
Sent: Wednesday, June 09, 2004 4:42 PM
To: [EMAIL PROTECTED]
Subject: [U2] Convert Statement Not Working


I'm writing a basic routine to generate XML files and running into a
problem. The following CONVERT statement does work,

CONVERT "&" TO "&" IN LINE

Does anyone know what's happening here.

We are on UniVerse Release 10.1.0 on a HPUX.

Thanks,
Hans



---
This email and any files transmitted with it are confidential to the
intended recipient and may be privileged. If you have received this
email inadvertently or you are not the intended recipient, you may not
disseminate, distribute, copy or in any way rely on it. Further, you
should notify the sender immediately and delete the email from your
computer. Whilst we have taken precautions to alert us to the presence
of computer viruses, we cannot guarantee that this email and any files
transmitted with it are free from such viruses.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to