Using Check Box make Shopping Cart in VB NET 2012

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • Using Check Box make Shopping Cart.

КОМЕНТАРІ • 2

  • @chuckcobb2392
    @chuckcobb2392 2 роки тому +1

    To calculate:
    Instead of all the if then statements just loop through the checkboxes using a for next. Use if then for checked, get text value of each checked & add to sum.
    Dim sum = 0
    For each chkbox in controls.checkbox
    If chkbox.checked = true then
    Sum += val(chkbox.text)
    End if
    Next
    Much more cleaner & efficient

  • @Shaheenfathima463
    @Shaheenfathima463 4 роки тому

    Can this code be used in VB 6.0????