RE: Help on uv syntax, please

2004-04-28 Thread Glenn W. Paschal
:[EMAIL PROTECTED] On Behalf Of Gordon Glorfield Sent: Tuesday, April 27, 2004 12:18 PM To: 'U2 Users Discussion List' Subject: RE: Help on uv syntax, please To do what you are saying I would use the RAISE function. NEWARRAY = RAISE(OLDARRAY) This would change all @SVM to @VM. Of course you

Help on uv syntax, please

2004-04-27 Thread Susan Joslyn
Hi. Anybody got the syntax for universe for changing one string to another in an array? Mostly I use it for changing a subvalued field into a multivalued one. In Unidata, for example, its NEWARRAY = CHANGE(OLDARRAY,SVM,VM) I'm looking for a similar function in universe. (p.s. if you

Re: Help on uv syntax, please

2004-04-27 Thread Glenn Herbert
By array I assume you mean dynamic array and, as such, would use: NEWARRAY = CHANGE(OLDARRAY,@SVM, @VM) At 12:47 PM 4/27/2004, you wrote: Hi. Anybody got the syntax for universe for changing one string to another in an array? Mostly I use it for changing a subvalued field into a multivalued

RE: Help on uv syntax, please[Scanned]

2004-04-27 Thread Susan Joslyn
: Help on uv syntax, please[Scanned] Actually CONVERT will only work to replace 1 character with 1 other character (well, it's more complicated than that because you provide a list of character to replace and another list of character to use for replacement but it's positionally dependant). It's

RE: Help on uv syntax, please

2004-04-27 Thread Glenn W. Paschal
] [mailto:[EMAIL PROTECTED] On Behalf Of Susan Joslyn Sent: Tuesday, April 27, 2004 11:48 AM To: [EMAIL PROTECTED] Subject: Help on uv syntax, please Hi. Anybody got the syntax for universe for changing one string to another in an array? Mostly I use it for changing a subvalued field

RE: Help on uv syntax, please

2004-04-27 Thread Gordon Glorfield
) 301-360-8839 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Susan Joslyn Sent: Tuesday, April 27, 2004 12:48 PM To: [EMAIL PROTECTED] Subject: Help on uv syntax, please Hi. Anybody got the syntax for universe for changing one string

RE: Help on uv syntax, please

2004-04-27 Thread Stevenson, Charles
http://publibfi.boulder.ibm.com/epubs/pdf/25119090.pdf 10.1 Basic Ref, pg 162 CHANGE (expression, substring, replacement [ ,occurrence [ ,begin] ] ) -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users

RE: Help on uv syntax, please

2004-04-27 Thread Stevenson, Charles
I use CONVERT expression1 TO expression2 IN variable Don't use CONVERT! Example: CRT CONVERT( 'Muffet', 'Piggy', 'Little Miss Muffet sat on a tuffet eating her curds and whey.' ) yields the string: Lily Piss Piggy sa on a iggy yaing hyr cirds and whyy. which is offensive enough

RE: Help on uv syntax, please

2004-04-27 Thread Stevenson, Charles
-Original Message- From: Stevenson, Charles [mailto:[EMAIL PROTECTED] [snip] Don't use CONVERT! Example: [snip] But it's great for things like: LINE = PRINT.ARRAYLINE.CTR CONVERT @VM:0.- TO IN LINE IF LINE # THEN GOSUB PRINT.LINE END I stand corrected. I don't