🔒 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.webp1670885437981.webp1670885452317.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
  • 982
    Views
  • 4
    Participants
Last reply from:
abotchiki123

Online now

Members online
948
Guests online
6,450
Total visitors
7,398

Forum statistics

Threads
2,349,332
Posts
29,361,765
Members
1,091,023
Latest member
Azuma14
Back
Top