@Deny_Adi_Purwanto wrote:
Dear Friends,
I have problem with my process, it always stop after line 329 with "Aritmetic operation resulted in an overflow"
I am using 16 decision flows, with calculation in each condition. This is example of my syntax:
(Cint(in_TransactionItem(12)) + Cint(in_TransactionItem(13)) + Cint(in_TransactionItem(14)) + Cint(in_TransactionItem(15)) + Cint(in_TransactionItem(16)) + Cint(in_TransactionItem(17)) + Cint(in_TransactionItem(18)) + Cint(in_TransactionItem(19)) + Cint(in_TransactionItem(20)) + Cint(in_TransactionItem(21)) + Cint(in_TransactionItem(22)) + Cint(in_TransactionItem(23)) + Cint(in_TransactionItem(24)) + Cint(in_TransactionItem(25))) = (Cint(AllDataAgent.Rows.Count) + Cint(AllDataAgent.AsEnumerable.Sum(Function(x) Convert.ToInt32(x(“nCapacity”).ToString.Trim)))) And in_TransactionItem(42).ToString = AllDataAgent.Select("[AgentNo]=’"+convert.ToString(NoAgen)+"’").ElementAt(0)(“Open_Operational”).ToString And in_TransactionItem(43).ToString = AllDataAgent.Select("[AgentNo]=’"+convert.ToString(NoAgen)+"’").ElementAt(0)(“Close_Operational”).ToString
In the process I take data repetitively from SQL Database (because I don’t know how to transfer data from get transaction data while I already have another data as transactionitem.
I can make sure the total calculation will not more than integer range.
Anyone can help me?
Posts: 4
Participants: 2