you can create a method for the komp1
setProps()
{  this.text('text value');
}

then call this method during in the run or init methods of the form, 
assuming that you have declared a string control to invoke the 
method off of.

--- In [EMAIL PROTECTED], Varden Morris 
<[EMAIL PROTECTED]> wrote:
> You can do this in two ways.
>  
> (1) Change the AutoDeclaration property of the stringEdit control 
to yes then set the   value of the control as follows:
>  
> komp1.text('It Works');
> 
> (2)Delcare a variable to point to the control in the 
ClassDeclaration section as follows:
> 
> FormStrinControl My_komp1;
> 
> Override the init method of the form and after the call to the 
function super() type in the following code:
> 
> My_komp1 = element.design().control(control::komp1);
> 
> this will allow you to set the value of the text in the control by 
setting the value of the text of the variable My_komp1 as follows:
> 
> My_komp1.text('It works');
> 
> Varden Morris
> 
>  
> 
> J. Wray & Nephew Ltd. - Group I.S.
> 
> 234 Spanish Town Road
> 
> Kingston 11, Jamaica, W.I.
> 
>  
> 
> Phone:  (876) - 923 - 6141 Ext. 2400, 2412
> Fax:      (876) - 923 - 5372 
> 
> Cell:      (876) - 3833566
> Email:   [EMAIL PROTECTED]
> 
>             [EMAIL PROTECTED]   
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
> affekatz <[EMAIL PROTECTED]> wrote:
> 
> I need to assign a value to a StringEdit in a method under the 
form. 
> The name of the StringEdit is "StringEdit:Komp1" but i dosn't work 
to 
> do this StringEdit:komp1 = a; in a method "under" the StringEdit
> 
> Thanks in adv.
> 
> 
> 
> 
> 
> Sharing the knowledge on Axapta. 
> 
> 
> Yahoo! Groups Sponsor 
> Get unlimited calls to
> 
> U.S./Canada
> 
> 
> ---------------------------------
> Yahoo! Groups Links
> 
>    To visit your group on the web, go to:
> http://groups.yahoo.com/group/Axapta-Knowledge-Village/
>   
>    To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
>    Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
> 
> 
>               
> ---------------------------------
> Do you Yahoo!?
>  Meet the all-new My Yahoo! – Try it today!





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/kGEolB/TM
--------------------------------------------------------------------~-> 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Axapta-Knowledge-Village/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to