summaryrefslogtreecommitdiff
path: root/ext/win32ole/sample
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-29 14:12:49 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-29 14:12:49 +0000
commit801443f3acc174e46e8919175785582373ddb8f0 (patch)
tree6e56bd700d7929ce82de3ff09b94d2643a80504b /ext/win32ole/sample
parent6ac8bca0f0d289491a9e64ba9afea6a0a4c5f7fb (diff)
change the behavior of WIN32OLE#[] and WIN32OLE#[]=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/sample')
-rw-r--r--ext/win32ole/sample/excel2.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/win32ole/sample/excel2.rb b/ext/win32ole/sample/excel2.rb
index 46f459b..dbe4178 100644
--- a/ext/win32ole/sample/excel2.rb
+++ b/ext/win32ole/sample/excel2.rb
@@ -9,14 +9,14 @@ excel = WIN32OLE.new("excel.application")
# Create and rotate the chart
-excel['Visible'] = TRUE;
+excel.visible = TRUE;
excel.Workbooks.Add();
-excel.Range("a1")['Value'] = 3;
-excel.Range("a2")['Value'] = 2;
-excel.Range("a3")['Value'] = 1;
+excel.Range("a1").value = 3;
+excel.Range("a2").value = 2;
+excel.Range("a3").value = 1;
excel.Range("a1:a3").Select();
excelchart = excel.Charts.Add();
-excelchart['Type'] = ChartTypeVal;
+excelchart.type = ChartTypeVal;
i = 30
i.step(180, 10) do |rot|