TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: PHILIP THORNTON
date: 1997-07-12 18:49:00
subject: help for a beginner

From: pthornton@sawasdi.apana.org.au (Philip Thornton)
Message  "Smith, Byron" (3:800/846.13) wrote to All:
"B> integer proc mReplace()
"B>         string po[15], npo[15]
"B>         po = " "
"B>         npo = " "
"B>         return(iif (Ask("Search for: ", po)  and
"B>                 Ask ("replace with:", npo) ,
"B>                 Replace(po, npo, Query (ReplaceOptions)), FALSE))
"B> end
"B> I keep getting the following message when I compile or debug the
"B> macro source:
"B> Note    001  (1,14)     'mReplace' declared but never used
If you want the macro to do something when it executes you need to have a
"proc main()" defined with the function therein...
eg.
proc main()
        mreplace()
end
or use a key definition at the end of the function
 mreplace()
In your case probably be easier to rename mreplace() to main()
Phil..
pthornton@sawasdi.apana.org.au
fidonet Philip Thornton 3:800/846 files to files@sawasdi.apana.org.au
Requests to ftpmail@sawasdi.apana.org.au email pthornton@sawasdi.apana.org.au
Philip Thornton sysop Sawasdi BBS. pgp ring pgp-pubring@sawasdi.apana.org.au
---
---------------
* 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™.