Wednesday, January 10, 2007
Tip of the Day: Using LoadFileNamePlusPlus Plugin
Did you know that you can find the File Count, File Name with Full Path,
File Path, File Name, File Extension, File Date Time, and File Size, for
any selected file(s) using LoadFileNamePlusPlus Plugin?
Here's how:
When used accordingly, LoadFileNamePlusPlus Plugin returns the following
variables based on the number of selected files:
vLFNFileCount INTEGER
vLFNFileName1 TEXT
vLFNFilePath1 TEXT
vLFNFileNameS1 TEXT
vLFNFileExt1 TEXT
vLFNFileDT1 TEXT
vLFNFileSize1 INTEGER
Where:
vLFNFileCount (INTEGER) is the actual number of selected files when the
MULTISELECT option is set to ON.
vLFNFileName1 (TEXT) is the full path and name of first selected file.
vLFNFilePath1 (TEXT) is the path of selected file without the file name.
vLFNFileNameS1 (TEXT) is the name of first selected file without path.
vLFNFileExt1 (TEXT) is the file extension (.ext) of first selected file.
vLFNFileDT1 (TEXT) is the file date and time of first selected file.
vLFNFileSize1 (INTEGER) is the size in bytes of first selected file.
Example 01:
-- Begin
PLUGIN LoadFileNamePlusPlus.RBL 'vResult +
|MULTISELECT OFF +
|TITLE Select Certification File +
|VIEW_MODE LIST +
|FILTER PDF Documents (*.pdf)#*.pdf'
RETURN
-- End
Variable "vResult" will return the value as "OK", "[Esc]" or the
actual "-ERROR- message ...".
In addition the following variables will be defined with appropriate
values:
. vLFNFileCount (INTEGER)
. vLFNFileName1 (TEXT)
. vLFNFilePath1 (TEXT)
. vLFNFileNameS1 (TEXT)
. vLFNFileExt1 (TEXT)
. vLFNFileDT1 (TEXT)
. vLFNFileSize1 (INTEGER)
Do what you need to do with resulting variables, including the
procedures to update the records using "PROPERTY TEXTVALUE value"
command when using LoadFileNamePlusPlus Plugin as "Custom EEP"
in forms.
Imagine the possibilities!
Very Best R:egards,
Razzak.
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================