Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add a new action
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
How to add a new action
Miscellaneous
Thread ID:
00977507
Message ID:
00977507
Views:
84
I need to add a new option for my customer to "Save As" (it is actual going to a XML file) and have added the follow code into the appApplication CreateStates method:
This.oStateManager.DefineAction("Form SaveAs", "SaveXmlAs")
(I'm calling the form method "SaveXmlAs" because of the native "SaveAs")

I also add a line in the menu (see below) but when I run the app, the menu item is disabled. My question is how do I set the menu enabled value to .T.?
Command -->   m.goStateManager.Execute('Form Edit SaveAs')
SKIP FOR -->  EMPTY(m.goStateManager.GetValue('Form Edit SaveAs'))
I have also added this code to the CreateStates method but do not work either:
This.oStateManager.SetValue("Form SaveAs", .T.)
Thanks, John
Next
Reply
Map
View

Click here to load this message in the networking platform