Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

Justify Right editText Money value

$
0
0

Hi Experts,

 

I'm need to format the value of a editText in Business One to pad to right, because the information is displayed pad to left.

 

What I need:

 

standar.JPG

 

What I have:

 

develop.JPG

 

Here is the code I use to create the editText:

 

            Form oform = Application.SBO_Application.Forms.GetForm("133", pVal.FormTypeCount);            oform.Freeze(true);            //Importe            var ntem = oform.Items.Add("tImporteA", BoFormItemTypes.it_EDIT);            var tem = GetItem("31");            ntem.Top = tem.Top;            ntem.Left = tem.Left;            ntem.Height = tem.Height;            ntem.Width = tem.Width;            ntem.Enabled = false;            var editImporte = (EditText)ntem.Specific;            editImporte.String = "0.00";            //Saldo Pendiente            ntem = oform.Items.Add("tSaldoPen", BoFormItemTypes.it_EDIT);            tem = oform.Items.Item("33");            ntem.Top = tem.Top;            ntem.Left = tem.Left;            ntem.Height = tem.Height;            ntem.Width = tem.Width;            ntem.Enabled = false;            editImporte = (EditText)ntem.Specific;            editImporte.String = "0.00";            oform.Freeze(false);

I'd be very glad if you can help me with this.

 

Best Regards.


Viewing all articles
Browse latest Browse all 3280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>