Acet::nameonly

提供:GizmoLabs - だいたい CAD LISP なサイト
2025年6月25日 (水) 08:30時点におけるGizmon (トーク | 投稿記録)による版 (ページの作成:「{{AutoLISP}} ; 構文 : (acet::nameonly ''filename'' ) ; 機能 : 指定された filename からファイル名の文字列を返す。 ; 引数 :* filename : ファイル名の文字列 ; 戻り値 : filename のファイル名部分の文字列。 ; サンプル <pre class="brush:autolisp;"> (acet::pathonly "c:/temp/tempsub/note.txt") "c:/temp/tempsub/" (acet::pathonly "https://temp/tempsub/note.html") "https://temp/tempsub/" (acet::pathonly "note.txt…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
構文
(acet::nameonly filename )


機能
指定された filename からファイル名の文字列を返す。


引数
  • filename : ファイル名の文字列


戻り値
filename のファイル名部分の文字列。


サンプル
(acet::pathonly "c:/temp/tempsub/note.txt")
"c:/temp/tempsub/"

(acet::pathonly "https://temp/tempsub/note.html")
"https://temp/tempsub/"

(acet::pathonly "note.txt")
""

(acet::nameonly "c:/temp/tempsub/note.txt")
"note.txt"

(acet::nameonly "https://temp/tempsub/note.html")
"note.html"

(acet::nameonly "note")
"note"


関連事項