Solved

[D6] access an action property when the action is owned by an action manager

Posted on 2001-07-30
6
200 Views
Last Modified: 2010-04-06
Hi,
With D6, when I'm using an actionmanager ? How can I update the status of my actions like I used to do in D5 ?
I mean for exemple in the OnUpdate I used to set the enable property on some of my actions...

It seems that I have to access to a specific action by using somethin like
ActionManager1.actions[1].cheked for exemple.
This is bad because the indexes may change when I add new actions... No ?
If the action is called actMyAction... Why is this not available somewhere ?
Can I access an actiopn by name with the action manager ?

Thanks for your help.

John.
0
Comment
Question by:jeurk
6 Comments
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6335851
Hello

   ActionManager1.Actions[1].Execute;
and
  Action2.Execute;

are the same,so u can access the action directly by it's name

Mohammed
0
 
LVL 4

Author Comment

by:jeurk
ID: 6425314
hello,
I did not get a mail telling me that you commented on that...

So, for me action2 is not declared in the code if you use an actionmanager...
what do you say about that...
0
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 209 total points
ID: 6425913
Hello Jeurk

  if you have only one action then the

ActionManager1.Actions[0].Execute;
and
 Action1.Execute;

are the same, cuz the actions index start from 0

 
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Author Comment

by:jeurk
ID: 6426137
I understand what you say... now look to what I say:
When you create new actions in the action manager, no local action is declared. so there is no Action1 to call...
No action1 no action2, those variables do not exists....
So I can't call them... Am I wrong ?
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6858172
Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20160207.html
http://www.experts-exchange.com/questions/Q.20275143.html




PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange

P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6909212
Force-accepted by
Netminder
CS Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now