I have some stuff where I just run a strtran(myfield, 'this value','') for
removing bad data, and put the value in for replacements.
It seems to work fine.

John Harvey

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Ken Kixmoeller/fh
Sent: Monday, August 31, 2009 3:49 PM
To: Profox
Subject: Parse "Replace" commands

Hey - - --  --

I have a program with a whole, uh, "spitload" of "replace" commands.  
This is something that started out innocently enough, but has grown  
to one ugly dog.

Mostly the commands are mixed up thusly:

  replace all ;
   <field1> with "Literal Value1" ;
   for <field1> = "crappy literal value"

with the occasional

  replace all ;
   <field1> with "Literal Value1", ;
   <field2> with "Different Value2" ;
   for <field1> = "crappy literal value"

  -- thrown in just for fun.

I have come to believe that it would be better to parse this dog, and  
put the seek, replace1 and replace2 values in a table.

Anybody done this parsing before? I suppose it would be a low-level  
file function thing, since we were talking about that the other day.  
(Which I remember but always hated.)

Anybody done such a thing & willing to share?

Ken


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/032401ca2a7d$0864e8f0$192eba...@[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to