> >-----Original Message----- > >From: Stevenson, Charles [mailto:[EMAIL PROTECTED] > [snip] > > > >Don't use CONVERT! Example: > > > [snip] > > But it's great for things like: > > LINE = PRINT.ARRAY<LINE.CTR> > CONVERT @VM:"0.-" TO "" IN LINE > IF LINE # "" THEN > GOSUB PRINT.LINE > END
I stand corrected. I don't mean there are no legitimate uses for CONVERT. In the spirit of Abraham Lincoln who once said, "For people who like this sort of thing, this is exactly the sort of thing they'd like", I'll say, Do not use CONVERT except for exactly the sort of thing CONVERT should be used for. Ok, Abe's was better. I use convert a lot. Examples: 1. When I'm trying to debug a complicated multivalue-handling i-descriptor that isn't acting like I expect, I tack a convert on the end & LIST to see what I've got: 01 I 02 [complicated buggy mv expression] ; CONVERT( @IM:@AM:@VM:@SM:@TM, 'iavst', @ ) 05 80L <--- wide enough to see string 06 S <--- it's not M anymore. 2. To yield a dyn array of question marks or blanks depending on whether corresponding values are equal: 01 I 02 CONVERT( '01', '?', EQS( MV.THING1, MV.THING2 ) ) -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
