[前][次][番号順一覧][スレッド一覧]

ruby-changes:35396

From: suke <ko1@a...>
Date: Tue, 9 Sep 2014 22:01:26 +0900 (JST)
Subject: [ruby-changes:35396] suke:r47478 (trunk): * ext/win32ole/sample/excel2.rb: remove some commented-out code.

suke	2014-09-09 22:01:21 +0900 (Tue, 09 Sep 2014)

  New Revision: 47478

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47478

  Log:
    * ext/win32ole/sample/excel2.rb: remove some commented-out code.
      rotate graph more slowly to see graph clearly.

  Modified files:
    trunk/ChangeLog
    trunk/ext/win32ole/sample/excel2.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47477)
+++ ChangeLog	(revision 47478)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Sep  9 21:55:39 2014  Masaki Suketa <masaki.suketa@n...>
+
+	* ext/win32ole/sample/excel2.rb: remove some commented-out code.
+	  rotate graph more slowly to see graph clearly.
+
 Tue Sep  9 19:52:33 2014  Koichi Sasada  <ko1@a...>
 
 	* gc.c: rename rb_objspace_t::marked_objects to marked_slots.
Index: ext/win32ole/sample/excel2.rb
===================================================================
--- ext/win32ole/sample/excel2.rb	(revision 47477)
+++ ext/win32ole/sample/excel2.rb	(revision 47478)
@@ -4,11 +4,9 @@ require 'win32ole' https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/excel2.rb#L4
 ChartTypeVal = -4100;
 
 #   Creates OLE object to Excel
-#excel = WIN32OLE.new("excel.application.5")
 excel = WIN32OLE.new("excel.application")
 
 # Create and rotate the chart
-
 excel.visible = TRUE;
 excel.Workbooks.Add();
 excel.Range("a1").value = 3;
@@ -18,13 +16,12 @@ excel.Range("a1:a3").Select(); https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/excel2.rb#L16
 excelchart = excel.Charts.Add();
 excelchart.type = ChartTypeVal;
 
-i = 30
+i = 0
 i.step(180, 10) do |rot|
-#    excelchart['Rotation'] = rot;
     excelchart.rotation=rot;
+    sleep 0.1
 end
 # Done, bye
 
 excel.ActiveWorkbook.Close(0);
 excel.Quit();
-

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]