🔒 Closed MICROSOFT VISUAL BASIC FOR APPLICATION -IF else condition for Option Button.

Status
Not open for further replies.

abotchiki123

Honorary Poster
guys pa help naman sa if else conditioning sa microsoft visual basic . may 8 option buttons ako working na un dalawa sa taas under drawing yung sa stranding nalang or may ibang mas simple way para masolve sya. thanks

1670885339080.webp
1670885437981.webp
1670885452317.webp
 
Pwedi mo din gamitin yung CheckedChanged event ng radio buttons. When a rdio button is selected, doon sa event ng CheckedChanged ka nalang mag compute then call mo nlng yung computed values when solve button is clicked. Mas manageable pa siya kasi naka separate ng event procedure.
 
Medyo weird yung IF ELSE mo. Hindi ba dapat ganito?

Code:
ElseIf frmFORM.opt1.Value = True Then
    d4 = 1
ElseIf frmFORM.opt2.Value = True Then
    d4 = 2
ElseIf frmFORM.opt3.Value = True Then
    d4 = 3
 
Medyo weird yung IF ELSE mo. Hindi ba dapat ganito?

Code:
ElseIf frmFORM.opt1.Value = True Then
    d4 = 1
ElseIf frmFORM.opt2.Value = True Then
    d4 = 2
ElseIf frmFORM.opt3.Value = True Then
    d4 = 3
thank you sir mas okay at maayos nga pag ganito
 
Status
Not open for further replies.

About this Thread

  • 6
    Replies
  • 944
    Views
  • 4
    Participants
Last reply from:
abotchiki123

Online now

Members online
821
Guests online
641
Total visitors
1,462

Forum statistics

Threads
2,276,943
Posts
28,973,242
Members
1,229,652
Latest member
ichan016
Back
Top