I simply could not resist letting this thread go with such an answer ...
Using the FileListBox control, the SHORTFILENAME has everything to do
what Manuel is trying
to accomplish.
Using the FileListBox form control in R:BASE X and R:BASE Enterprise
has a lot to do with
the GETPROPERTY SHORTFILENAME and LONGFILENAME command as clearly
stated in Manuel's post.
GETPROPERTY <Component ID> SHORTFILENAME 'varname'
Use this property to obtain the short version of the currently
selected file name in a
FileListBox control.
GETPROPERTY <Component ID> LONGFILENAME 'varname'
Use this property to obtain the long version of the currently
selected file name in a
FileListBox control, including path, etc.
Manuel,
Let me prepare a sample to illustrate the proper use of supported
GETPROPERTY commands
for FileListBox control to accomplish your goal.
Very Best R:egards,
Razzak
At 09:06 AM 1/17/2018, Karen Tellef 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 <m...@mdenterprises.net>
To: rbase-l <rbase-l@googlegroups.com>
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 rbase-l+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.