1. You can create an accessor method in the form.
2. you can call the class with the value.
Example
1. create method in form which returns the value of the input.
str mymethod()
{
;
return myInput.text();
}
in class, get this value
static void main (args args)
{
object myobject;
str getFormValue;
;
if (args.caller())
{
myobject = args.caller();
if (formHasMethod(myObject,identifierStr(myMethod)))
{
getFormValue = myObject.myMethod();
// note the intellisense wont work here
}
}
}
2. Use newFromForm constructorobject (this is a better way)
clicked method on form button;
void clicked()
{
class myclass;
;
myClass = myClass::newFromForm(myInput.text()).run();
}
class construtor method
static myClass newFromForm(str inputStr)
{
class myclass;
;
myClass = new myClass();
myClass.parmInputStr(inputStr);
return myClass;
}
Regards
Michael Oakes
--- In [email protected], "Anton Tjiptadi"
<[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> how to parsing variable inputed in the FORM to a CLASS ?
>
> I created a FORM and it that form there's a button to call a CLASS.
> I have a textbox for user input in the FORM and I want to parsing
it
> so that inputed text known in the CLASS.
>
> I appreciate any help ?
> thanks in advance.
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

