From: Amit Agarwal Date: 2009-01-02T20:49:43+09:00 Subject: Re: Function to flush the variable I am trying to use following code Status=sheet1.getCellByPosition(5, I).Formula ie.text_field(:name, "FieldName").value =Status and it works fine, but On itetrating this piece of code for multiple I/ Ps, variable 'name', retains its old value for some of the cases. I identified this as a cache problem. Please suggest if there any flush () type function or action in Ruby/watir to clear the garbage value. actually there is function in C, i.e. flush which clears the garbage value. Andrew Timberlake wrote: > On Fri, Jan 2, 2009 at 1:37 PM, Amit Agarwal > wrote: > >> Hi, >> Is there any function to flush the value from a variable. I am facing >> problem while assiging a value to Ruby variable. >> -- >> Posted via http://www.ruby-forum.com/. >> >> > What do you mean by flush? Remove the current value? > my_var = nil > should do that -- Posted via http://www.ruby-forum.com/.