User Tools

Site Tools


syntax:functions:filename

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syntax:functions:filename [2021/08/29 00:38] – [See also] craigtsyntax:functions:filename [2022/11/11 10:02] (current) – [Remarks] dmitry
Line 17: Line 17:
 This function works with both relative and absolute file paths. This function works with both relative and absolute file paths.
  
 +The file name can contain dots. In this case, the last dot separates the file name for the file extension (if present).
 \\  \\ 
 =====Examples===== =====Examples=====
  
-   filename('C:\Documents\myproject.morph' //Returns 'myproject'+  filename('C:\Documents\myproject.morph' //Returns 'myproject'
  
-   filename('…\mypath\myfile.txt' //Returns 'myfile'+  filename('…\mypath\myfile.txt' //Returns 'myfile'
  
 \\  \\ 
syntax/functions/filename.txt · Last modified: 2022/11/11 10:02 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki