🔒 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
  • 974
    Views
  • 4
    Participants
Last reply from:
abotchiki123

Trending Topics

Online now

Members online
1,210
Guests online
3,831
Total visitors
5,041

Forum statistics

Threads
2,337,995
Posts
29,301,363
Members
1,125,928
Latest member
purpleseven15
Back
Top