part:name
List of: Scheme Extensions
Subjects: Part Management
Contents: Scheme Support

Action: Gets the name of a part.

Filename: scm/scmext/part_scm.cxx

Syntax: (part:name [part=active])

Arg Types: part part

Returns: string | boolean

Description: The name of the part is used as the default for the part, if the part (filename) is not specified. If the part is not found, this extension returns #f. When a part is saved using part:save and a filename, the filename becomes the new name for the part.

Example: ; part:name

; Set the name of the currently-active part.

(part:set-name "block.sat")

;; ()

; Get the name of the currently-active part.

(part:name)

;; "block.sat"

; Save the part under the specified name.

(part:save "block2.sat")

;; #t

; Get the name of the currently-active part.

(part:name)

;; "block2.sat"
PDF/SCM/04SC.PDF
HTM/DATA/SCM/SCM/04SC/0084.HTM