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