I will definitely look into this.  

Thank you.

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
Paul C. Buckley
Sent: Wednesday, January 17, 2018 12:23 PM
To: [email protected]
Subject: RE: [RBASE-L] - SHORTFILENAME vs. LONGFILENAME

 

Manuel,

 

Look at LoadFileName & LoadFileNamePlus plugins that are included with R:BASE 
and see if they give you what you need.

 

Good luck,

Paul Buckley

 

4.1.3 LoadFileName

The LoadFileName plugin is used to load a file name into a variable by 
displaying a dialog window for the

user to browse the operating system. The LoadFileNamePlus plugin replaced the 
LoadFileName Plugin

with additional options to load a file name. It does not appear in the R:BASE 
for Windows Plugins Menu.

The LoadFileName is included with the purchase of R:BASE.

Syntax:

PLUGINS LoadFileName VarName|<parameters>

Where:

VarName is the variable name to return the text value of the selected file

Parameters:

Parameter Value Description

FULLPATH ON/OFF Determines if the full path for the selected file is returned 
with

the file name

TITLE value Specifies the title caption

FILTER value Filters the display files (Example: Text Files (*.txt)#*.txt)

INITIAL_DIR value Specifies the initial directory when launched

NO_CHANGE_DIR ON/OFF Determines if the directory changes when the file is 
selected

MULTISELECT ON/OFF Determines if multiple files can be selected

SHOW_HIDDEN ON/OFF Determines if hidden files can be seen

NO_LONG_NAMES ON/OFF Determines if files not using the 8.3 naming convention are

displayed. This is only supported with the OLD_STYLE parameter.

NO_NETWORK_BUTTONON/OFF Determines if the network button is displayed. This is 
only

supported with the OLD_STYLE parameter.

HIDE_READ_ONLY ON/OFF Determines if the "Open as Read Only" check box is 
displayed

NO_DEREFERENCE_LIN

KS

ON/OFF Determines if shortcut links are valid or are de-referenced

DONT_ADD_TO_RECEN

T

ON/OFF Determines if file selection is added to recently opened

documents

ENABLE_SIZING ON/OFF Determines if the dialog window can be resized

OLD_STYLE ON/OFF Determines if the "old style" window is displayed

NO_VALIDATE ON/OFF Determines if validation for invalid characters is used

Notes:

Each option must be separated by pipe "|" character.

A value of '[Esc]' will be returned if the [Cancel] button or Close Window [x] 
button of the folder

selection dialog is selected.

Example:

PLUGIN LoadFileName vFileName+

|INITIAL_DIR C:\RBTI\ +

|TITLE 'Select file to load' +

|FULLPATH ON+

|NO_CHANGE_DIR ON+

|FILTER JPG Files (*.jpg)#*.jpg+

|HIDE_READ_ONLY ON+

|MULTISELECT ON+

|SHOW_HIDDEN OFF+

|ENABLE_SIZING ON

 

 

4.1.4 LoadFileNamePlus

The LoadFileNamePlus plugin is used to load a file name into a variable by 
displaying a dialog window for

the user to browse the operating system. The LoadFileNamePlus plugin was added 
with additional options

to load a file name. It does not appear in the R:BASE for Windows Plugins Menu. 
The LoadFileNamePlus is

included with the purchase of R:BASE.

Syntax:

PLUGINS LoadFileNamePlus VarName|<parameters>

Where:

VarName is the variable name to return the text value of the selected file

Parameters:

Parameter Value Description

FULLPATH ON/OFF Determines if the full path for the selected file is returned 
with

the file name

TITLE value Specifies the title caption

FILTER value Filters the display files (Example: Text Files (*.txt)#*.txt)

INITIAL_DIR value Specifies the initial directory when launched

NO_CHANGE_DIR ON/OFF Determines if the directory changes when the file is 
selected

MULTISELECT ON/OFF Determines if multiple files can be selected

SHOW_HIDDEN ON/OFF Determines if hidden files can be seen

NO_LONG_NAMES ON/OFF Determines if files not using the 8.3 naming convention are

NO_NETWORK_BUTTONON/OFF Determines if the network button is displayed. This is 
only

supported with the OLD_STYLE parameter.

HIDE_READ_ONLY ON/OFF Determines if the "Open as Read Only" check box is 
displayed

NO_DEREFERENCE_LIN

KS

ON/OFF Determines if shortcut links are valid or are de-referenced

DONT_ADD_TO_RECEN

T

ON/OFF Determines if file selection is added to recently opened

documents

ENABLE_SIZING ON/OFF Determines if the dialog window can be resized

OLD_STYLE ON/OFF Determines if the "old style" window is displayed

NO_VALIDATE ON/OFF Determines if validation for invalid characters is used

VIEW_MODE THUMBNAI

LS

TILES

ICONS

(Default)

LIST

DETAILS

Determines the view mode for the dialog window

Notes:

Each option must be separated by pipe "|" character.

A value of '[Esc]' will be returned if the [Cancel] button or Close Window [x] 
button of the folder

selection dialog is selected.

Example:

PLUGIN LoadFileNamePlus vFileName+

|INITIAL_DIR C:\RBTI\ +

|TITLE 'Select file' +

|FULLPATH ON +

|NO_CHANGE_DIR ON +

|FILTER PDF Files (*.pdf)#*.pdf +

|HIDE_READ_ONLY ON +

|MULTISELECT ON +

|SHOW_HIDDEN OFF +

|ENABLE_SIZING ON +

|VIEW_MODE LIST

 

 

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of MD
Sent: January 17, 2018 2:46 PM
To: [email protected]
Subject: Re: [RBASE-L] - SHORTFILENAME vs. LONGFILENAME

 

Thank you Karen I guess I will have to parse out the file name the old fashion 
way.

On January 17, 2018 6:06:31 AM PST, karentellef via RBASE-L 
<[email protected]> wrote:

No "shortfilename" has nothing to do with what you're trying.  Shortfilename is 
only used when you're using the "DIR" command, it controls what's shown back to 
you in the file listing.

Karen

 

 

 

-----Original Message-----
From: MD <[email protected]>
To: rbase-l <[email protected]>
Sent: Wed, Jan 17, 2018 2:48 am
Subject: [RBASE-L] - SHORTFILENAME vs. LONGFILENAME

I have a filelistbox and when I select an image on a folder using the PROPERTY  
LONGFILENAME I obtain the file name and its full path.  I wanted to get just 
the file name so I assumed that using the SHORTFILENAME would yield the name of 
the file only.        Component ID:  flbFileNam

My code is:

 

GETPROPERTY flbFileNam LONGFILENAME 'fvFileImgNam'

.

GETPROPERTY flbFileNam SHORTFILENAME 'fvFileImgNamShrt'

The result is:



 

It appears that both property command yield the same results.  So my 
understanding of the SHORT & LONGFILENAME is weak or I am doing something wrong 
or something else?  I need some help.

 

I was just trying to get the file name without the path (CM9197.jpg).  Your 
help is greatly appreciated.

 

Thank you,

Manuel

RBase XE latest upgrade.

 

By the way I tried this in the RRBYW19 database on an existing form and it 
behaved in the same way.

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
Sent from my phone. Please excuse my brevity.

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to