Impossible to enabled a menuitem

Hello,
I created a “Save…” sub-menu (DesktopMenuItem) named ‘FileSave’, and disabled Auto-Enabled to enable it myself at some point. But when I execute the following commands in the “MenuBarSelected” event of a TextArea:

Window1.FileSave.AutoEnabled = true
Window1.FileSave.Enabled = true

I get the message "Not enough arguments : missing integer value for parameter “index”
and the Int32 has no member named “Enabled” !
Why ?
Thanks

You probably have two menus with the same name FileSave so you need to access them thusly:

Window1.FileSave(0).AutoEnabled = true
Window1.FileSave(0).Enabled = true

or correct the similar names.