WIN32OLE_PARAM#default
Instance Public methods
Returns default value. If the default value does not exist, this method returns nil.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | tobj = WIN32OLE_TYPE . new ( 'Microsoft Excel 9.0 Object Library' , 'Workbook' ) method = WIN32OLE_METHOD . new (tobj, 'SaveAs' ) method.params. each do |param| if param.default puts "#{param.name} (= #{param.default})" else puts "#{param}" end end The above script result is following: Filename FileFormat Password WriteResPassword ReadOnlyRecommended CreateBackup AccessMode (= 1 ) ConflictResolution AddToMru TextCodepage TextVisualLayout |
Please login to continue.