TIP: Click on subject to list as thread! ANSI
echo: semware
to: All
from: `Dalton Spence`
date: 2003-01-14 12:15:06
subject: [TSEPro] Re: OpenSafe Macro (was `Re: Miscellaneous info, latest FAQ

From: "Dalton Spence" 
@Date: Mon, 13 Jan 2003 20:45:07 -0500
@Sender: semware-owner{at}sawasdi.apana.org.au



----- Original Message -----
From: "Sammy Mitchell" 
To: 
Sent: Monday, January 13, 2003 10:12 AM

> >>   So, to see if there is a match, we need to remove the '.'
> >>   from CurrExt().
> >>
> >>     if Pos(RightStr(CurrExt(), Length(CurrExt()) - 1),
> >>             Query(DefaultExt)) > 0 ...
>
> >Rather than the RightStr function, how about
> >SubStr(CurrExt(),2,3)? Same effect, fewer function calls.
>
> If you can be sure that the extensions are always 3
> characters in length.  But what about .html, .java, or
> .evenlonger?
>
> So, something like:
>
> SubStr(CurrExt(), 2, MAXSTRINGLEN)
>
> would work.

Sorry, holdover from my DOS days (which are closer than you'd expect :)). I
increased the max length of the extension string to 60, since any larger
and the extension would be longer than the total length of the default
extension list.

> >(Uhm, command line arguments *can* be added to the Autoload
> >list entry, right?)
>
> I'm not sure what you mean, sorry.
>
> Macros can have command line arguments.  But I'm not sure
> how you would specify them for an AutoLoad macro, short of
> manually running it, or running it via another macro.

Oops! Coming straight from v2.0 macro command lines are new to me, so I
guess I thought that the input field for entering the new macros to the
Autoload list was so long because the extra space was for command line
arguments. So much for the "intuitive interface." :) Maybe you can put this
on the todo list for v4.1, along with "imbedded LoadMacro command lines"
and "imbedded macro command lines for DOS command line options /l and /e."
:)

--
              {at}=================================================={at}
              | Dalton S. Spence, B.Sc.  |
              | Home Page: http://www.hwcn.org/~ag775/home.html  |
              |      Family Motto: Virtute Acquiritur Honos      |
              | Spiderman must take the musical petunia from the |
              |           best place possible. FNORD!            |
              {at}=================================================={at}


--
TSEPro mailing list



---
[sawasdi.apana.org.au] (3:800/846.13)
* Origin: apana>>>>>fidonet
SEEN-BY: 633/267 270
@PATH: 800/846 1 640/954 774/605 123/500 106/1 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

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™.