「Acet::nameonly」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
(ページの作成:「{{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…」)
 
(相違点なし)

2025年6月25日 (水) 08:30時点における最新版

構文
(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"


関連事項