Delphi Spin Edit With Real Player

Delphi Spin Edit With Real Player Rating: 9,0/10 7492 votes

Real media file Free Download,Real media file Software Collection Download. Real media file editor real media 9 real media analyzer real one media player real media movie real media decoder real media vbr easy media real player real time media player convert real media file to mp3.

Quote Hi, Is there a function to extract a file name from an URL or a a link I would like to obtain aFileName.ext. I know I can code a function to extract the file name, but if something already exists, why reinvent the wheel? Any help or suggestions would be appreciated. If you get the Anchor tag as IHTMLAnchorEmlement, and then get the href from it, use InternetCrackURL to get the parts. Quote No, the Anchor is a plain Delphi String. You can still call InternetCrackURL(), it takes a string as a parameter: InternetCrackUrl The problem is, though, that is does not separate the filename from the rest of the path. Setup That is not its purpose.

It is designed to separate everything else from the path (username, password, query string, etc), leaving the actual path intact. Given the string you quoted in your previous message, InternetCrackUrl() does not suit your needs. You will just have to parse the string manually, ie: Filename:= '././afolder/anotherfolder/aFilename.ext'; Pos:= LastDelimiter('/ ', Filename); if (Pos>0) then Filename:= Copy(Pos+1, Length(Filename)-Pos, Filename); Alternatively, you can use StringReplace() to replace all of the '/' characters with ' ' instead, then use ExtractFileName(), ie: Filename:= '././afolder/anotherfolder/aFilename.ext'; Filename:= StringReplace(Filename, '/', ' ', [rfReplaceAll]); Filename:= ExtractFileName(Filename); Gambit. Quote Is there a function to extract a file name from an URL or a a link I would like to obtain aFileName.ext. This can be problematic as you can never be 100% sure if 'aFileName.ext' is indeed the name of a file (on the server or to store locally).

'aFileName.ext' might just as well be a directory, for which the filename would probably be 'index.htm'. You must also make sure to strip additional parameters like 'aFileName.ext#mylabel'. 6es7 214 1ae30 0xb0 wiring diagram.

To address those difficulties we have developed a URL / URI parser and added it to our popular DIHtmlParser parackge. It performs some syntax checking and allows to extract URI components as defined in the RFCs. You would be interested in the Path component, from which you can easily extract the filename.

Btw: You can of course also use the HTML parser to extract all links from a HTML document. It is fully Unicode aware, supporting UTF-8 plus many more character sets. Regards, Ralf ---------- The Delphi Inspiration. Quote 'Stephan St-Denis' writes news:3fc4e82c$. >No, the Anchor is a plain Delphi String.

You can still call InternetCrackURL(), it takes a string as a parameter: InternetCrackUrl The problem is, though, that is does not separate the filename from the rest of the path. That is not its purpose.

It is designed to separate everything else from the path (username, password, query string, etc), leaving the actual path intact. Given the string you quoted in your previous message, InternetCrackUrl() does not suit your needs. You will just have to parse the string manually, ie: Filename:= '././afolder/anotherfolder/aFilename.ext'; Pos:= LastDelimiter('/ ', Filename); if (Pos>0) then Filename:= Copy(Pos+1, Length(Filename)-Pos, Filename); Alternatively, you can use StringReplace() to replace all of the '/' characters with ' ' instead, then use ExtractFileName(), ie: Filename:= '././afolder/anotherfolder/aFilename.ext'; Filename:= StringReplace(Filename, '/', ' ', [rfReplaceAll]); Filename:= ExtractFileName(Filename); Gambit. Quote Stephan St-Denis writes: >Is there a function to extract a file name from an URL or a of an HTML document? > >For example, if the >a link > >I would like to obtain aFileName.ext.