Don't clear your variables before using either (as a matter of best 
practice).  Set them to null.

----- Original Message ----- 
From: "John Docherty" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Wednesday, January 30, 2013 4:16 PM
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