TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: JORJ STRUMOLO
date: 1997-10-01 15:08:00
subject: What`s my error?

From: Jorj Strumolo 
    Eric Stork  writes:
ES> proc mToggleTrailingSpace()     // mapped to ^9
  >     [...]
  > end  ToggleTrailingSpace
 The names don't technically match here.  And it doesn't take two
 presses for me, although another macro once did.  Can't remember
 how I fixed it.  Unrelatedly, this is more compact:
string proc OnOffStr(integer i)
 Return(iif(i,"On","Off"))
end
proc mToggleTrailingSpace()     // mapped to ^9
    Toggle(RemoveTrailingWhite)
    Message("RemoveTrailingSpace is "+OnOffStr(Query(RemoveTrailingWhite)))
    Sound(iif(Query(RemoveTrailingWhite),800,400)) Delay(9) NoSound()
end
            mToggleTrailingSpace()
 That's even *with* defining OnOffStr() in the macro.  If you put
 it in an omnibus macro file that already has that defined for
 other uses (I autoload a JORJ.MAC that has about 50 little
 macros in it), it's much shorter.  Using two different sounds
 gives enough audible feedback that you could drop the Message
 part altogether.
-- 
 Jorj.Strumolo@chowda.com * Fido 1:323/140 * jorj@wsii.com
                                                                 
---
---------------
* 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™.