TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > TextBox > Method >

 

ApplyFormat

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > TextBox > Method >

 

ApplyFormat

 

 

Apply format to a component.

 

 

 

Prototype :

 

void ApplyFormat

(

       No Arguments

)

 

 

 

Reference :

 

Use ApplyFormat() to apply your format to a bound component. Get a component object and set your format by SetFormat() and then apply the format using ApplyFormat().

 

If a format has already been set by the display format or script of the component, this function can result in pattern error according to the previously set format.

 

And if call ApplyFormat() after setting the format of unbound component or it self by the display format or SetFormat(), it applies the format twice after all and pattern error can occurs according to the previously set format.

 

 

 

Example :

 

var obj = This.GetComponentByName("textbox1");

obj.SetFormat("#,###;-#,###");

obj.ApplyFormat();

 

 

 

Available Events :

 

All Events

 

 

 

See also :

 

SetFormat