Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Schmidt Newsgroups: comp.lang.basic.visual.misc Subject: Re: VB.net (2010) Beginner Question: Directory Lists Date: Fri, 25 May 2012 13:36:09 +0200 Organization: Aioe.org NNTP Server Lines: 23 Message-ID: References: <4739dd87-d142-4c46-b185-87a72a8ffdf0@t2g2000pbg.googlegroups.com> NNTP-Posting-Host: E5SZrSAcenCgMxEJKq4Bqg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120425 Thunderbird/13.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.basic.visual.misc:1119 Am 25.05.2012 11:57, schrieb DaveO: > Yeah I know the FileListBox is rather ugly but > if you want it simple........ Just wanted to come up with the roughly identical functionality of Toms example. > Incidentally is > Left(FName, InStrRev(FName, ".wmv", , 1) - 1) > Quicker or better than: > Left$(FName, Len(FName) - 4) > Which given a 3 character extension should give the same result? Good catch, what I had in mind was not: Left(FName, InStrRev(FName, ".wmv", , 1) - 1) but perhaps Left(FName, InStrRev(FName, ".") - 1) which I normally use here, to get rid of a file- extension of variable length in a generic way, but from the top of my head failed to hack-in correctly for this specific example. Olaf