hi, now luart get number as enum string, even though the value is not enum.
but how to get the number? tonumber() ?
► COM_name = "Excel.Application"
► app = sys.COM(COM_name)
app.visible = true
► d = app:FileDialog(1)
► d:show()
-- select one file
► d.selecteditems.count
"msoLineSolid"
► d:show()
-- select two files
► d.selecteditems.count
"msoLineSquareDot"
► d:show()
-- select 8 files
► d.selecteditems.count
"msoLineLongDash"
► d.selecteditems.count > 1
>>> attempt to compare number with string
► tonumber(d.selecteditems.count)
► tonumber(d.selecteditems.count) == nil
true
► type(d.selecteditems.count)
"string"