* 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
@ -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>
|
Mon Aug 8 12:51:12 2016 Zarko Todorovski <zarko@ca.ibm.com>
|
||||||
|
|
||||||
* internal.h (RBASIC_CLEAR_CLASS): Reroute ANSI C's strict
|
* internal.h (RBASIC_CLEAR_CLASS): Reroute ANSI C's strict
|
||||||
|
@ -3,7 +3,7 @@ require 'win32ole'
|
|||||||
|
|
||||||
application = WIN32OLE.new('Excel.Application')
|
application = WIN32OLE.new('Excel.Application')
|
||||||
|
|
||||||
application.visible = TRUE
|
application.visible = true
|
||||||
workbook = application.Workbooks.Add();
|
workbook = application.Workbooks.Add();
|
||||||
worksheet = workbook.Worksheets(1);
|
worksheet = workbook.Worksheets(1);
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ range = worksheet.Range("A1:D2");
|
|||||||
range.Select
|
range.Select
|
||||||
chart = workbook.Charts.Add;
|
chart = workbook.Charts.Add;
|
||||||
|
|
||||||
workbook.saved = TRUE;
|
workbook.saved = true;
|
||||||
|
|
||||||
print "Now quit Excel... Please enter."
|
print "Now quit Excel... Please enter."
|
||||||
gets
|
gets
|
||||||
|
@ -8,7 +8,7 @@ ChartTypeVal = -4100;
|
|||||||
excel = WIN32OLE.new("excel.application")
|
excel = WIN32OLE.new("excel.application")
|
||||||
|
|
||||||
# Create and rotate the chart
|
# Create and rotate the chart
|
||||||
excel.visible = TRUE;
|
excel.visible = true;
|
||||||
excel.Workbooks.Add();
|
excel.Workbooks.Add();
|
||||||
excel.Range("a1").value = 3;
|
excel.Range("a1").value = 3;
|
||||||
excel.Range("a2").value = 2;
|
excel.Range("a2").value = 2;
|
||||||
|
@ -4,7 +4,7 @@ require 'win32ole'
|
|||||||
#application = WIN32OLE.new('Excel.Application.5')
|
#application = WIN32OLE.new('Excel.Application.5')
|
||||||
application = WIN32OLE.new('Excel.Application')
|
application = WIN32OLE.new('Excel.Application')
|
||||||
|
|
||||||
application.visible = TRUE
|
application.visible = true
|
||||||
workbook = application.Workbooks.Add();
|
workbook = application.Workbooks.Add();
|
||||||
sheet = workbook.Worksheets(1);
|
sheet = workbook.Worksheets(1);
|
||||||
sheetS = workbook.Worksheets
|
sheetS = workbook.Worksheets
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'win32ole'
|
require 'win32ole'
|
||||||
url = 'http://www.ruby-lang.org/'
|
url = 'http://www.ruby-lang.org/'
|
||||||
ie = WIN32OLE.new('InternetExplorer.Application')
|
ie = WIN32OLE.new('InternetExplorer.Application')
|
||||||
ie.visible = TRUE
|
ie.visible = true
|
||||||
ie.gohome
|
ie.gohome
|
||||||
print "Now navigate Ruby home page... Please enter."
|
print "Now navigate Ruby home page... Please enter."
|
||||||
gets
|
gets
|
||||||
|
@ -20,7 +20,7 @@ def default_handler(event, *args)
|
|||||||
end
|
end
|
||||||
|
|
||||||
ie = WIN32OLE.new('InternetExplorer.Application')
|
ie = WIN32OLE.new('InternetExplorer.Application')
|
||||||
ie.visible = TRUE
|
ie.visible = true
|
||||||
ie.gohome
|
ie.gohome
|
||||||
|
|
||||||
ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents')
|
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("NavigateComplete") {|url| navigate(url)}
|
||||||
ev.on_event("Quit") {|*args| stop_msg_loop}
|
ev.on_event("Quit") {|*args| stop_msg_loop}
|
||||||
|
|
||||||
$LOOP = TRUE
|
$LOOP = true
|
||||||
while ($LOOP)
|
while ($LOOP)
|
||||||
WIN32OLE_EVENT.message_loop
|
WIN32OLE_EVENT.message_loop
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user