From: Masaki Suketa Date: 2008-01-09T07:33:48+09:00 Subject: Re: prob only with ruby Hello, Junkone wrote: > Nope. it does not work > b=analysis.Filter(0, "market") #= 3 # use nasdaq only > b=3 > It does not change anything at all. > However if i ran a similar code in vbscript, it does the magic. > > set application = CreateObject("Broker.Application") > application.visible=1 > set analysis=application.analysis() > analysis.Filter( 0, "market" ) = 3 > > so something is wrong with the way ruby does automation. > Ruby does not support the following syntax, so Win32OLE does not support. > analysis.Filter( 0, "market" ) = 3 Instead, does the following script work? analysis.setproperty('Filter', 0, "market", 3) Regards, Masaki Suketa