How to get Values of Controls from Form On click of Button ?

Hello ,

I have created a form, without linking to a database table. I put a string edit control in it. In run time, i want to take input and to store it in some variable on button click.

Hopes you can help me to do this.

Regards,

Nice Johny

Hi Johny,

write the following code in Button Clicked Override method…

and put AutoDeclearation Yes for SrtingEdit Control

////////////////

void clicked()
{
str getvalue;
;

super();

getvalue = StringEditControlName.valueStr();

print getvalue;

}

/////

Dont forget to verify

Regards

SAADULLAH MZ

www.msdynamicsax.weebly.com

hi Saadullah,

[:D] thanks, it is working…

hopes you’ll help me more to go ahead, i am a beginner in this axapt…

Regards

Nice Johny.