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

Trending Topics

Online now

Members online
747
Guests online
2,500
Total visitors
3,247

Forum statistics

Threads
2,292,369
Posts
29,076,294
Members
1,209,333
Latest member
Entity08
Back
Top