Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
function Get_num_in_array(MrpKeyArray,QtyDemandArray,QtySuplly) a=split(QtyDemandArray,",")b=QtySupllyc=split(MrpKeyArray,",")For x=0 to UBound(a)-1if QtySuplly => a(x) thenQtySuplly = QtySuplly - a(x)ResultDemandQty = ResultDemandQty & a(x) & ","resultDemandKey = resultDemandKey & c(x) & ","elseResultDemandQty =ResultDemandQty & QtySuplly & ","resultDemandKey = resultDemandKey & c(x) & ","end ifnextGet_num_in_array = resultDemandKey & ResultDemandQty End function
plaese help me.
Thanks in advance
Hi,
It seems to be working for me.
Check the attached qvw.
Can you send a sample qvw?
Fernando