Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3177

Re: Decimal Separator Error in system matrix

$
0
0

I tried again in other cases:

i tried to insert the value in a system column (like the column "14" for the unit price) and the value is entered correctly ("11,2")


with the same code but using a udf the value entered is wrong (112,00):


here is the code

 

string val = "11.2";
oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("14").Cells.Item(oMatrix.RowCount-1).Specific;
oEditText.Value =val.Replace(".", System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator.ToString()); // the value entered is "11,2"
oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("U_Col_1").Cells.Item(oMatrix.RowCount - 1).Specific;
oEditText.Value = val.Replace(".", ",");      // the value entered is "112.0"

So the problem is only with columns representing UDF..

 

Thansk,

Michele


Viewing all articles
Browse latest Browse all 3177

Trending Articles



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