Check Form : tutorial_Form_EnumerateControls.
Just stuble on this and I thought that could be usefull to you.
regards,
Steeve...
--- In Axapta-Knowledge-Village@yahoogroups.com, "@ Mollar @"
<[EMAIL PROTECTED]> wrote:
>
> Hi All,
> Iam using this code to loop the controls on a form.
>
> int i
hi
check out 'readcontrols' method of class syssavesetup
regards
harryeng_mollar <[EMAIL PROTECTED]> wrote:
Hi again Varden,I am sorry for being so late replaying your message.Thanks you for your help. I just tried the solution you sent me but there is a problem in it.It only returns the m
Hi again Varden,
I am sorry for being so late replaying your message.
Thanks you for your help. I just tried the solution you sent me but
there is a problem in it.
It only returns the main containers on the form not the controls.
Is There any way that I can get all the controls in a container??
September 2005 11:54 PM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: [Axapta-Knowledge-Village] Re: Need help in Axapta X++ code
Thank you for your replay.
my problem is :
I don't know the controls names.
The code I want to add will be applied to many forms so i need a
generic code to loop o
I think I have found your solution. On a form the following code displays the names of all the controls and also set the visible properties of all the controls to false.
int i;
for (i=1;i<= element.design().controlCount();i++) { info(strfmt('%1', element.design().cont
I think I understand what you are saying. Here is another way you may access a control on a form without setting the autodeclaration property to yes:
FormWindowControl MyControl;
;
MyControl = element.design().control(control::Accountnum);
MyControl is now a handle to the control with the name
Thank you for your replay.
my problem is :
I don't know the controls names.
The code I want to add will be applied to many forms so i need a
generic code to loop on the form controls.
In C# or Delphi that was easy as there is an array of controls in
each form that I can access all controls using
7 matches
Mail list logo