Tags:
tag this topic
create new tag
view all tags
---+ .FILE SPLIT FILENAME _This subroutine is called to separate a filename into it's name and extension parts._ <br />%TOC% ---++ Usage: <pre><verbatim> PASS <filename_part> FIELD SHARE? Y PASS <extension_part> FIELD SHARE? Y PASS <full_filename> FIELD SHARE? N GOSUB --- .FILE SPLIT FILENAME * check for errors IF --- .FILE SPLIT FILENAME NE</verbatim> </pre> ---++ Description: This subroutine is called to separate a filename into its name and extension parts. All parameters are required, if any are missing the subroutine will CANCEL. <filename_part> will contain the filename part (Required). This must be PASSed with Share "Y". <extension_part> will contain the file extension part, including its leading period (Required). This must be PASSed with Share "Y". <full_filename> is the full filename to separate (Required). The subroutine identifies the <extension_part> by locating all the characters after the last period in <full_filename>. If there are no periods in <full_filename>, then <full_filename> will be returned in <extension_part> and <filename_part> will be empty (the entire name is considered the extension). If <full_filename> contains a leading path, that will also be returned in <filename_part>. See [[0LASubrFileSplitPathname][.FILE SPLIT PATHNAME]] to split the pathname from the base file name. A 'Data was truncated' error will be returned in .FILE SPLIT FILENAME if the fields you pass are too short to contain either the file name or file extension. ---++ Comments: _Read what other users have said about this page or add your own comments._ <br />%COMMENT% -- Main.PeteBrower - 2011-08-12
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r7
<
r6
<
r5
<
r4
<
r3
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r7 - 2021-05-07
-
MisaghKarimi
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback