[wxruby-users] Ruby and Excel Issue

Jason Shelton jas.shelton at hotmail.com
Wed Dec 17 11:31:26 EST 2008


All,
 
It seems that Ruby has a problem with using variables in certain scenarios.  Previously, I was passing a parameter to a class named 'Test' with a function in it named 'go'.  This is the syntax that I used, Test.new.go('hello')  The function 'go' would open a .xls file with the parameter in the path, such as C:\hello\data.xls.  Everything was working fine then.  Now, instead of using the actual string 'hello' as the parameter, I am using an array element variable, so the syntax is Test.new.go(array[x]).  Now the 'go' function throws the ''File not found' error.  In the error message, both the path and file are correct, so I do not understand why the file cannot be found.  Does anyone have any idea about what could be going on?  Thanks in advance for any help. - Shelton
_________________________________________________________________
You live life online. So we put Windows on the web. 
http://clk.atdmt.com/MRT/go/127032869/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20081217/98f78a5f/attachment.html>


More information about the wxruby-users mailing list