Thanks Tony & Mike. 

I have just tried your suggestion Tony (if I have interpreted it correctly),
as follows, but still no result.

set var vfileExt='-0-'
set var vfile text ='Test.XLS'
set var vfile=(CHAR(39)+.vfile+CHAR(39))
show var vfile
'Test.XLS'

PLUGIN GetFileExt vFileExt|.vfile
SET VAR vFileExt = '.vfile'
show var vFileExt
.vfile

set var vfileExt='-0-'
PLUGIN GetFileExt vFileExt|vfile
SET VAR vFileExt = ''
show var vFileExt
-0-     
                      
set var vfileExt='-0-'
PLUGIN GetFileExt vFileExt|&vfile
SET VAR vFileExt = ''
show var vFileExt
-0-    
                       
set var vfileExt='-0-'
PLUGIN GetFileExt vFileExt|'Test.XLS'
SET VAR vFileExt = '.XLS'
show var vFileExt
.XLS

Please let me know if I have missed something here.

Thank you.

Regards,
 
John Docherty


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tony IJntema
Sent: Thursday, 31 January 2013 11:27 a.m.
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: GetFileExt Plugin Arguments

Store the quotes into a variable and add them to the variable Set var vquote
= (Char(39)) Set var vfile = (.vquote + <filename> + .vquote)


btw CHAR(39) = single quote

Tony

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of John
Docherty
Sent: woensdag 30 januari 2013 22:17
To: RBASE-L Mailing List
Subject: [RBASE-L] - GetFileExt Plugin Arguments

I would appreciate some help with the arguments for a Plugin. I am trying to
use the GetFileExt plugin, (PLUGIN GetFileExt vFileExt|vfile) but find that
the only way that I can get this to work is to enclose the filename in
quotes. If I set a variable to the filename and use that I get a null
returned. I tried all possible combinations I could think of as below.  (I
note that the SET VAR vFileExt = .. is not in my code, but is presumably
from the Plugin.)

set var vfile text ='Test.XLS'
PLUGIN GetFileExt vFileExt|.vfile
SET VAR vFileExt = '.vfile'
show var vFileExt
.vfile

clear var vfileExt
PLUGIN GetFileExt vFileExt|vfile
SET VAR vFileExt = ''
show var vFileExt
-0-     
                      
clear var vfileExt
PLUGIN GetFileExt vFileExt|&vfile
SET VAR vFileExt = ''
show var vFileExt
-0-                 
          
clear var vfileExt
PLUGIN GetFileExt vFileExt|'Test.XLS'
SET VAR vFileExt = '.XLS'
show var vFileExt
.XLS

Presumably I am doing something wrong here. If anyone can tell me what I
need to do to make this work that would be very much appreciated. 

Thank you.

Regards,
 
John Docherty


Reply via email to