TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: `SMITH, BYRON`
date: 1997-07-11 05:47:00
subject: help for a beginner

mid__c=US%a=_%p=NASD%l=RKV_SRV_EXC-970710191701Z-149924@rkv-srv-exch1.rkv.nasd
.com b4ef0001
From: "Smith, Byron" 
I am finally making the time to make an attempt at creating a macro.  It
seemed like it would be simple at first but it is turning out to be
quite difficult for me especially since I have not done any programing
since the days of gwbasic back in the early 80's...
Anyway..  I am trying to create a macro that will do a search of a file
and replace some pre-defined strings.
There is one new string and about 20 old strings that need to be
replaced.
As an experiment I tried to play around with the example in the TSE Pro
Macro ref guide that is used for Replace().
My problem is:
1)  It doesn't replace anything
2)  It compiles with an error I can't find a reference to in the manuals
3)  I really stink at Macro Programming.
Any help would be appreciated.
I am trying to change a piece of text like ABC/RAT to GOAT/EATER.
I am using the following Macro source
integer proc mReplace()
        string po[15], npo[15]
        po = " "
        npo = " "
        return(iif (Ask("Search for: ", po)  and
                Ask ("replace with:", npo) ,
                Replace(po, npo, Query (ReplaceOptions)), FALSE))
end
I keep getting the following message when I compile or debug the macro
source:
Note    001  (1,14)     'mReplace' declared but never used
What does this mean?
Is there a better way to do this...
any help is appreciated to get me in the right direction.
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.