× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Buck,

> change asis ,int,integer,bottom,1,?

This works perfect, thanks for the post.

IMHO, the CODE developers should put this prompted replace as an option on
the Find/Replace dialog box. They could  simply add a "Prompt Before
Replace" check box on the Options page. How about it Hak?

Thanks again, Buck.

Brian

-----Original Message-----
From: code400-l-admin@midrange.com
[mailto:code400-l-admin@midrange.com]On Behalf Of Buck Calabro
Sent: Friday, January 18, 2002 10:11 AM
To: code400-l@midrange.com
Subject: RE: Find and Replace dialog question



>Is there a way (command to put in a macro -
>or some other way to assign to a key) to
>tell find and replace to replace this
>occurrence and find the next occurrence?

<esc> to get to the command line, then:
change asis "int"integer"bottom""?

will change int to integer from the current position to the bottom,
prompting each change.  See the help at
http://localhost:49213/cgi-bin/vahwebx.exe/vahelp/va400/Extract/0/lpex/ref/r
lchangc.htm#top (V5R1)  I did Help, Editor Reference, Commands Summary,
change.

For those without web access, the double quotes are delimiters, and delimit
the start of each argument.  I could just have easily used commas:
change asis ,int,integer,bottom,1,?

The parameters are:
asis/any - case sensitivity
int - the "find" string
integer - the "replace" string
bottom - an editor command that determines the lines affected
1 - number of changes allowed in each line
? - prompt for each change before it happens

>Also have a problem that in a browse only
>file you can not do a find because the
>Find/Replace dialog box won't open in a
>browse session.

find works from the command line, and you'll love regular expressions!
  --buck
_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
or email: CODE400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.