Mike

I'm afraid I have to get this to work with 6.5++ DOS RBase, so I'll just write a
VB6 or VB.NET exe to do this.. Thanks

Jim

MikeB wrote:
Yes.  The examples are all 7.x Windows.... If you can do VB, you can do VBScript
using WinUDF and VBScript FileSystemObject to do all in one gulp file
processing....


----- Original Message ----- 
From: "Jim Limburg" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 22, 2004 3:58 PM
Subject: [RBASE-L] - Re: RBase65++Dos - Search and Replace in text files


  
Mike

I just thought about something.. Isn't RBase Windows required
for your exe, dll type examples..
If so, then this wouldn't do me too much good I think.

I've run and even created a few myself for windows
-- using WinUDF type calls, never in DOS
though
Jim

MikeB wrote:

    
----- Original Message ----- 
From: "William Cook" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 22, 2004 3:32 PM
Subject: [RBASE-L] - Re: RBase65++Dos - Search and Replace in text files




      
I just replaced 5000 "comment" with "komment" in a 12 megabyte file using
UltraEdit.

A good text editor is the best tool for such a task.


        
No argument on that Bill, but the ListBox solution gives you the ability to
process text in excess of a Note datatype within the programming environ of
RBase.   That was the goal...But for small jobs like Jim was talking about,
      
you
  
could also use the setup in my demo (it includes a FileOpen/Save dialog, etc.



      
Bill Cook
Kent WA USA

----- Original Message ----- 
From: "MikeB" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 22, 2004 13:23
Subject: [RBASE-L] - Re: RBase65++Dos - Search and Replace in text files




        
The ListBox Demo I have prepared will demonstrate Search and Replace in a


          
text


        
file (Who woulda thought you would/could use a listbox for that?).

I have tested it on as large as 2MB textfile (although it took over a


          
minute to


        
do 28000 line file).

Stay tuned....


----- Original Message ----- 
From: "Jim Limburg" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 22, 2004 3:03 PM
Subject: [RBASE-L] - RBase65++Dos - Search and Replace in text files




          
G-Day all

Has anyone created a snippet that will do the following:

RBase Dos 6.5++

Basic purpose is to load an ascii based file (any text file)
line by line into a table then, run a SRPL or ???? to update
lines (acutally words) like replace the word tmdinv03 with tmdinv04
and then reconstitute the file with another name.

1. Prompt for a file name..

2. Load the file line by line

3. Change a specific text value to another in all instances

4. write the file back out with another name.

You probably guessed that I want to basically automate
the rewrite of and APP file. I would like to do this for more
than one word if possible..

I know I have at least two items I would like to replace.. that is
where it says RUN soandso IN tmdinv03.apx to tmdinv04.apx and where
it says CONNECT tmdinv03 to CONNECT tmdinv04.

Let's see what you got.

Jim



            


      


  

Reply via email to