Karen,
 
The "set var vfilext = '.xls' "  is not part of my code - it is internal to
the plugin. I have just set echo on and that is what I see. (All the other
commands are 'mine' though.) 
 
This all works as per Razzak's example.
 
I hope that 'explains' what is happening.  
 
Regards,
 
John Docherty
 
From: [email protected] [mailto:[email protected]] On Behalf Of Karen Tellef
Sent: Friday, 1 February 2013 3:45 a.m.
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: GetFileExt Plugin Arguments
 
John:  I'm not following your example code below.  You use vFileExt as
a parameter for your plugin command, you execute the command.  But
then you immediately "set var vfileext = '.xls' " and display it.  So it
overwrites whatever you got from the plugin and will display '.xls'.  
I'm just confused on what you were achieving with this sequence of code.

Karen
 
 
-----Original Message-----
From: John Docherty <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Wed, Jan 30, 2013 9:35 pm
Subject: [RBASE-L] - Re: GetFileExt Plugin Arguments
Thanks for that Razzak.  I appreciate your help with this.
 
SET VAR vCommand = ('PLUGIN GetFileExt vFileExt|'+.vFile)
&vcommand
SET VAR vFileExt = '.XLS'
show var vFileExt
.XLS
 
I will try to remember that next time. 
 
Thank you. 
 
Regards,
 
John Docherty
 
-----Original Message-----
From: [email protected] [mailto:[email protected]
<mailto:[email protected]?> ] On Behalf Of A. Razzak
Memon
Sent: Thursday, 31 January 2013 3:43 p.m.
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: GetFileExt Plugin Arguments
 
At 04:16 PM 1/30/2013, John Docherty wrote:
 
>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.)
 
John,
 
Try the following two ver simple examples and see what you get.
 
-- Example 01 (Using GetFileExt Plugin in R:BASE eXtreme 9.5)
-- Using File Name and Extension as Given Parameter
    SET VAR vFileExt TEXT = NULL
    PLUGIN GetFileExt vFileExt|MyRBASE.txt
    PAUSE 2 USING .vFileExt +
    CAPTION 'Using GetFileExt PLugin' ICON INFO +
    OPTION MESSAGE_FONT_NAME Tahoma +
    |MESSAGE_FONT_COLOR GREEN +
    |MESSAGE_FONT_SIZE 11 +
    |THEMENAME Longhorn
    RETURN
 
-- Example 02 (Using GetFileExt Plugin in R:BASE eXtreme 9.5)
-- Using File Name and Extension as Concatenated String
    SET VAR vFileExt TEXT = NULL
    SET VAR vFileName TEXT = 'MyRBASE.txt'
    SET VAR vCommand TEXT = NULL
    SET VAR vCommand = ('PLUGIN GetFileExt vFileExt|'+.vFileName)
    &vCommand
    PAUSE 2 USING .vFileExt +
    CAPTION 'Using GetFileExt PLugin' ICON INFO +
    OPTION MESSAGE_FONT_NAME Tahoma +
    |MESSAGE_FONT_COLOR GREEN +
    |MESSAGE_FONT_SIZE 11 +
    |THEMENAME Longhorn
    RETURN
 
Both examples should provide with the correct technique and syntax to use
GetFileExt Plugin in R:BASE eXtreme 9.5.
 
Have fun!
 
Very Best R:egards,
 
Razzak.
 
www.rbase.com
www.facebook.com 
 
 

Reply via email to