You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I try to pass a value of "default" into a function, it seems to get ignored.
constwinax=require('winax')constexcel=newwinax.Object('Excel.Application',{activate: true})excel.Workbooks.Add()excel.Workbooks.Item(1).SaveAs('default')// Instead of saving as "default.xlsx", it saves as the default name of "Book1.xlsx"// as if `.SaveAs()` was called without parameters.excel.Workbooks.Add()excel.Workbooks.Item(2).SaveAs('asdf')// This saves as "asdf.xlsx" as expected
If this behavior is necessary, is it possible to change the string to something that wouldn't ever conflict? I really need to pass a string of "default".
// Some very unique stringwinax.Default='{{WINAX_DEFAULT_PARAM}}'
constwinax=require('winax')// This passes a string with value "default"workbook.SaveAs('default')// This uses the default value of the parameterworkbook.SaveAs(winax.Default)
Whenever I try to pass a value of
"default"
into a function, it seems to get ignored.I've tried the following:
The text was updated successfully, but these errors were encountered: