Solved

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

Posted on 2001-07-30
6
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Spellcheck in Webbrowser 1 47
Delphi: Connect to running MS Outlook 4 162
Multi-layered image in FireMonkey 9 67
Delphi: sending SMS on android platform 1 63
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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