DataWindow The move of the left and right content without control

Source: Internet
Author: User

1 > Add to Weight, quantity summary

Long Ll_rowcount,i,ll_find,ll_newrow
String LS_SPDM
Dec LD_SL

Ll_rowcount=dw_1.rowcount ()
For I=1 to Ll_rowcount
Ls_spdm=dw_1.object.spdm[i]
Ld_sl=dw_1.object.sl[i]

If Dw_2.rowcount () >0 Then
Ll_find=dw_2.find ("spdm=" "+ls_spdm+" ' ", 1,dw_2.rowcount ())
Discover simultaneous accumulation of quantity
If Ll_find>0 Then
Dw_2.object.sl[ll_find]=dw_2.object.sl[ll_find]+ld_sl
Else
Ll_newrow=dw_2.insertrow (0)
Dw_2.setitem (Ll_newrow, ' SPDM ', LS_SPDM)
Dw_2.setitem (Ll_newrow, ' SL ', LD_SL)
End If
Else
Ll_newrow=dw_2.insertrow (0)
Dw_2.setitem (Ll_newrow, ' SPDM ', LS_SPDM)
Dw_2.setitem (Ll_newrow, ' SL ', LD_SL)
End If
Next

DataWindow The move of the left and right content without control

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.