🔒 Closed Patulong po paano icompute

Status
Not open for further replies.

Alexander911

Forum Veteran
Sino marunong mag visual basic 6.0, patulong po anong code po yung para macapture yung nasa textbox with checkbox po. Then icompute ng lahat in cmdComputetotal yung mga nacheck po paano po. Begineer palang po kasi tas wala masyado akomg alam dito xd
 
Di ko magets question mo.
Ibig mo bang sabihin, didisplay yung total sa textbox ng mga nakachecked?
or count ang mga nakacheck? and sabihin mo rin kung anong computation (e.g. Addition or just compute the total check items)

Wala talagang sasagot sa question mo kasi di maintindihan
 
IMG_20201209_175708.webp
Ganito paps o, dapat pag iclick ko yung checkbox na nasa menu, icalculate nya yung nasa text then itototal nya dyan pag iciclick ko yung compute total kung magkano yung pinindot ko, di ko kasi alam anong source code gagamitin neto
 
Code:
dim a as integer = 0
if checkEgg.value = true then
    a = a + int(txtEgg.text)
end if
if checkHamburger.value  = true then
    a = a + int(txtHam.text)
end if

sa cmd po
 
View attachment 1088371
Ganito paps o, dapat pag iclick ko yung checkbox na nasa menu, icalculate nya yung nasa text then itototal nya dyan pag iciclick ko yung compute total kung magkano yung pinindot ko, di ko kasi alam anong source code gagamitin neto
Dim egg = Val(txtEggQuantity.Text) * Int(txtEggPrice.Text)
Dim hamburger = Val(txtHamburgerQuantiy.Text) * Int(txtHamburgerPrice.Text)
Dim ham = Val(txtHamQuantity.Text) * Int(txtHamPrice.Text)
Dim bacon = Val(txtBaconQuantity.Text) * Int(txtBaconPrice.Text)
Dim updateTotal = egg + hamburger + ham + bacon
txtTotal.Text = updateTotal
updateTotal = Val(txtTotal.Text)


try mo to ts feeling ko eto gusto mo mangyare. ang kinaiba lang saken e pwedeng mag input ng quantity ng bawat ingredients
 

Attachments

  • phcornerprog.webp
    phcornerprog.webp
    33.6 KB · Views: 22
Status
Not open for further replies.

About this Thread

  • 6
    Replies
  • 560
    Views
  • 4
    Participants
Last reply from:
PsiponHandler

Trending Topics

Online now

Members online
1,173
Guests online
9,513
Total visitors
10,686

Forum statistics

Threads
2,347,252
Posts
29,352,731
Members
1,097,838
Latest member
Kiyotaka153
Back
Top