![]() | |
#11
| |||
| |||
|
|
Wow, tricky, didn't notice that! Eliminates controls as well. Wonder if jbase has a switch to reverse that syntax to the uv form? Chandru "Terry Layne" <usenet (AT) laynesoftware (DOT) com> wrote in message news an.2007.03.18.22.37.59.663459 (AT) laynesoftware (DOT) com...jBASE uses that syntax. The inner CONVERT leaves you with bad chars and the outer CONVERT eliminates them. -Terry On Sat, 17 Mar 2007 16:22:41 +0000, Chandru Murthi wrote: Just curious: you have CONVERT(NAME, GOOD.CHARS, '') to convert all good.chars to nulls. Which system has this syntax, because on UV its: CONVERT(GOOD.CHARS, '',NAME)? I won't ask why you're replace "good" characters with nulls to eliminate them Chandru "Terry Layne" <usenet (AT) laynesoftware (DOT) com> wrote in message news an.2007.03.17.03.32.51.18599 (AT) laynesoftware (DOT) com...On Tue, 27 Feb 2007 13:34:38 +0000, Allen Egerton wrote: diets wrote: Hi all I need to remove funny characters from a string, and presently do it as follows: [snip] * Initialization GOOD.CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' GOOD.CHARS := 'abcdefghijklmnopqrstuvwxyz' GOOD.CHARS := '0123456789' GOOD.CHARS := " " ;* Space * Get/define string to clean up. NAME = 'THIS IS THE STRING WITH )(*&*& THE FUNNY && CHARACTERS @#IN IT' [snip] After you get GOOD.CHARS you can do NAME = TRIM(CONVERT(NAME, CONVERT(NAME, GOOD.CHARS, ''), '')) -- Terry Layne Portland, OR -- Terry Layne Portland, OR |
#12
| |||
| |||
|
|
Wow, tricky, didn't notice that! Eliminates controls as well. Wonder if jbase has a switch to reverse that syntax to the uv form? Chandru |
#13
| |||
| |||
|
|
They also operate in place if the compiler/runtime detectst that the source and target variables are the same, which makes them extremely fast if you are removing things. |
#14
| |||
| |||
|
|
Jim Idle wrote: They also operate in place if the compiler/runtime detectst that the source and target variables are the same, which makes them extremely fast if you are removing things. I assume you meant to write "...variables are the same length..." correct? -- frosty |
#15
| |||
| |||
|
|
Hi Frosty Isn't it wonderful how a simple statement can be construed by different people. I thought that he meant if the variable name was the same. So we have original string in FRED and we want to put the corrected string back in FRED so he does it in the same buffer. Peter McMurray "frosty" <frostyj (AT) bogus (DOT) tld> wrote in message news:cq6dnfBx3oXQIZ_bnZ2dnUVZ_uuqnZ2d (AT) centurytel (DOT) net... Jim Idle wrote: They also operate in place if the compiler/runtime detectst that the source and target variables are the same, which makes them extremely fast if you are removing things. I assume you meant to write "...variables are the same length..." correct? -- frosty |
![]() |
| Thread Tools | |
| Display Modes | |
| |