mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/win32ole/sample/excel1.rb, ext/win32ole/sample/excel2.rb,
ext/win32ole/sample/excel3.rb, ext/win32ole/sample/ie.rb, ext/win32ole/sample/ienavi.rb, ext/win32ole/sample/ienavi2.rb: use true instead of deprecated TRUE. [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6a6a4126d4
commit
449971300b
6 changed files with 14 additions and 7 deletions
|
@ -1,3 +1,10 @@
|
|||
Mon Aug 8 20:56:46 2016 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/sample/excel1.rb, ext/win32ole/sample/excel2.rb,
|
||||
ext/win32ole/sample/excel3.rb, ext/win32ole/sample/ie.rb,
|
||||
ext/win32ole/sample/ienavi.rb, ext/win32ole/sample/ienavi2.rb: use
|
||||
true instead of deprecated TRUE. [ci skip]
|
||||
|
||||
Mon Aug 8 12:51:12 2016 Zarko Todorovski <zarko@ca.ibm.com>
|
||||
|
||||
* internal.h (RBASIC_CLEAR_CLASS): Reroute ANSI C's strict
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'win32ole'
|
|||
|
||||
application = WIN32OLE.new('Excel.Application')
|
||||
|
||||
application.visible = TRUE
|
||||
application.visible = true
|
||||
workbook = application.Workbooks.Add();
|
||||
worksheet = workbook.Worksheets(1);
|
||||
|
||||
|
@ -27,7 +27,7 @@ range = worksheet.Range("A1:D2");
|
|||
range.Select
|
||||
chart = workbook.Charts.Add;
|
||||
|
||||
workbook.saved = TRUE;
|
||||
workbook.saved = true;
|
||||
|
||||
print "Now quit Excel... Please enter."
|
||||
gets
|
||||
|
|
|
@ -8,7 +8,7 @@ ChartTypeVal = -4100;
|
|||
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;
|
||||
|
|
|
@ -4,7 +4,7 @@ require 'win32ole'
|
|||
#application = WIN32OLE.new('Excel.Application.5')
|
||||
application = WIN32OLE.new('Excel.Application')
|
||||
|
||||
application.visible = TRUE
|
||||
application.visible = true
|
||||
workbook = application.Workbooks.Add();
|
||||
sheet = workbook.Worksheets(1);
|
||||
sheetS = workbook.Worksheets
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require 'win32ole'
|
||||
url = 'http://www.ruby-lang.org/'
|
||||
ie = WIN32OLE.new('InternetExplorer.Application')
|
||||
ie.visible = TRUE
|
||||
ie.visible = true
|
||||
ie.gohome
|
||||
print "Now navigate Ruby home page... Please enter."
|
||||
gets
|
||||
|
|
|
@ -20,7 +20,7 @@ def default_handler(event, *args)
|
|||
end
|
||||
|
||||
ie = WIN32OLE.new('InternetExplorer.Application')
|
||||
ie.visible = TRUE
|
||||
ie.visible = true
|
||||
ie.gohome
|
||||
|
||||
ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents')
|
||||
|
@ -29,7 +29,7 @@ ev.on_event {|*args| default_handler(*args)}
|
|||
ev.on_event("NavigateComplete") {|url| navigate(url)}
|
||||
ev.on_event("Quit") {|*args| stop_msg_loop}
|
||||
|
||||
$LOOP = TRUE
|
||||
$LOOP = true
|
||||
while ($LOOP)
|
||||
WIN32OLE_EVENT.message_loop
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue