At 10:31 PM 1/30/2013, John Docherty wrote:
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
John, The pleasure is all mine! Very Best R:egards, Razzak.
-----Original Message----- From: [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

