TIP: Click on subject to list as thread! ANSI
echo: semware
to: All
from: `Sammy Mitchell`
date: 2003-01-14 01:42:08
subject: [TSEPro] Re: OpenSafe Macro (was `Re: Miscellaneous info, latest FAQ

From: "Sammy Mitchell" 
@Date: Mon, 13 Jan 2003 10:12:09 -0500
@Sender: semware-owner{at}sawasdi.apana.org.au



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

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

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