TIP: Click on subject to list as thread! ANSI
echo: semware
to: All
from: `Sammy Mitchell`
date: 2003-02-15 00:59:50
subject: [TSEPro] Re: Weird problem loading LFN`s with extensions

From: "Sammy Mitchell" 
@Date: Fri, 14 Feb 2003 09:29:51 -0500
@Sender: semware-owner{at}sawasdi.apana.org.au



From: "David N. Heydon"
>But not this :-( I'd commented out everything I thought had
>been overriden, i.e. ON_CHANGING_FILES and ON_FIRST_EDIT.
>On closer inspection I found another uncommented change in
>my AFTER_UPDATE_STATUSLINE hook. It was calling a function
>called mShortenFilename(). I'm not sure where this function
>came from but I'm sure I never wrote it! It attempts to
>chop down a long pathname to "x:\...\filename.ext", so it
>fits nicely on the status line. Unfortunately it obviously
>predated LFN's because it contained a while loop which went
>something like:-
>
> While (Length(pathname) > (maxdisplaysize))
>        start = Pos("\", pathname)
>        pathname = SubStr(pathname, (start + 1), (Length(pathname) -
start))
> EndWhile
>
>After I added a break if the Pos() call returned 0 it works
>as expected!

Glad you were able to find the problem.

For a replacement, you might try the built-in:
pathname=SqueezePath(pathname, maxdisplaysize)

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