diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-04 00:13:18 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-04 00:13:18 +0000 |
commit | b4e9ffbdc8cf4d448e86cf6e9c4a2ce8dbf52e29 (patch) | |
tree | 09674172f58f89b83b5b40b6d2e8d1c8cab0cbb8 /ext/win32ole/sample/excel3.rb | |
parent | 34fcb5dbee90f990fe1a08e829974caa2b1b8195 (diff) |
* ext/win32ole/sample/example*.rb: Add wait input to quit for examples
with patch provided by @windwiny [Fixes GH-705]
https://github.com/ruby/ruby/pull/705
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/sample/excel3.rb')
-rw-r--r-- | ext/win32ole/sample/excel3.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/win32ole/sample/excel3.rb b/ext/win32ole/sample/excel3.rb index 0f96717063..1ace478007 100644 --- a/ext/win32ole/sample/excel3.rb +++ b/ext/win32ole/sample/excel3.rb @@ -11,3 +11,10 @@ puts "The number of sheets is #{sheetS.count}" puts "Now add 2 sheets after of `#{sheet.name}`" sheetS.add({'count'=>2, 'after'=>sheet}) puts "The number of sheets is #{sheetS.count}" + +print "Now quit Excel... Please enter." +gets + +application.ActiveWorkbook.Close(0); +application.Quit(); + |