<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
All,<BR>
&nbsp;<BR>
It seems that&nbsp;Ruby has&nbsp;a problem with using variables in certain scenarios.&nbsp; Previously, I was passing a parameter to a class named 'Test' with a function in it named 'go'.&nbsp; This is the syntax that I used, Test.new.go('hello')&nbsp; The function 'go' would open a .xls file with the parameter in the path, such as C:\hello\data.xls.&nbsp; Everything was working fine then.&nbsp; Now, instead of using the actual string 'hello' as the parameter, I am using&nbsp;an array element&nbsp;variable, so the syntax is Test.new.go(array[x]).&nbsp; Now the 'go' function throws the ''File not found' error.&nbsp; In the error message, both the path and file are correct, so I do not understand why the file cannot be found.&nbsp; Does anyone have any idea about what could be going on?&nbsp; Thanks in advance for any help.<BR>&nbsp;<BR>- Shelton<BR><RTE_TEXT></RTE_TEXT><BR><br /><hr />You live life online. So we put Windows on the web.  <a href='http://clk.atdmt.com/MRT/go/127032869/direct/01/' target='_new'>Learn more about Windows Live </a></body>
</html>