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)
|