ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó©w¸qopt

[µo°Ý] ¦p¦ó©w¸qopt


¬°¤F½T»{Frame¤¤¦Ü¤Ö¦³¤@­ÓOptionButton³Q¿ï¨ú®É¼¶¼g¥H¤Uµ{¦¡
flg = False
i = 1
For Each opt1 In Frame5.Controls
    If opt1.Value = True Then
        flg = True
        C_Index = opt1.Caption
        Exit For
    End If

    If i = 6 And flg = False Then
        mybtn = MsgBox(mymsg5, vbExclamation, mytitle)
        Exit Sub    '¿ï¾ÜCondition
    End If
i = i + 1
Next
¦ý«o±`¦]¬°·s¼W¤@­ÓOptionButton®É§Y·|²£¥Í¿ù»~
¦³¿ìªk«ü©wÅýOptionButton¤@©wÄÝ©ó¬Y­ÓFrame¤¤¶Ü?

[ª©¥DºÞ²z¯d¨¥]
  • GBKEE(2014/8/13 15:01): ¸É¥R»¡©ú,¦ó¤£¸ÉÀɧó¦n.

¸É¥R»¡©ú:
PR.jpg
¥[¤J If opt2.Parent Is Frame28 And TypeName(opt2) = "OptionButton" µ²ªG¬O"§_"
Åýµ{¦¡print opt2="dB"
¸Ó¦p¦óÅýopt2³]©w¬°Frame¤¤ªºOptionButton???

flgE = False
iE = 1
For Each opt2 In Frame28.Controls
If opt2.Parent Is Frame28 And TypeName(opt2) = "OptionButton" Then
     If opt2.Value = True Then
        flgE = True
        PR_Index = opt2.Caption
        Exit For
    End If

    If iE = 4 And flgE = False Then
        mybtn = MsgBox(mymsg6, vbExclamation, mytitle)
        Exit Sub    '¿ï¾ÜPR Criteria
    iE = iE + 1
    End If
Else
MsgBox opt2
Exit Sub
End If
Next

TOP

¦^´_ 2# acdx
³o­Ó°ÝÃD¦ü¥G¬OµL¸Ñ
¥u­n¦b­ì¦³ªºframe¤¤·s¼W¤@­ÓOptionButton´N·|¥X²{³o¼Ëªº¿ù»~:
'----------------------------------------
For Each opt2 In Frame28.Controls
     If opt2.Value = True Then   '-----------------------°õ¦æ¨ì³o¤@¦æ«oÅã¥Ü:°õ¦æ¶¥¬q¿ù»~ '438'  ª«¥ó¤£¤ä´©¦¹ÄݩʩΤèªk
         flg = True                                          
         PR_Index = opt2.Caption
         Exit For
     End If
'----------------------------------------
¸Ñ¨M¤èªk¥u¯à±Nframe¤¤OptionButton¥þ¼Æ²MªÅµM«á­«·s«Ø¥ß
¨s³º¬O¬°¤°»ò?¨ä¥L¤H·|¹J¨ì¶Ü?¸Ó¦p¦ó¸Ñ¨M?

TOP

¦^´_  acdx
³o­Ó°ÝÃD¦ü¥G¬OµL¸Ñ
¥u­n¦b­ì¦³ªºframe¤¤·s¼W¤@­ÓOptionButton´N·|¥X²{³o¼Ëªº¿ù»~:
'------ ...
acdx µoªí©ó 2014-8-14 13:43

For Each opt2 In Frame28.Controls
if opt2.name like "OptionButton*" then
     If opt2.Value = True Then  
         flg = True                                          
         PR_Index = opt2.Caption
         Exit For
     End If
end if
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 4# Hsieh
­ì¨ÓLike¥i¥H³o¼Ë¥Î ¤Ó·PÁ¤F

TOP

        ÀR«ä¦Û¦b : §Ú­Ì­n°µ¦nªÀ·|ªºÀô«O¡A¤]­n°µ¦n¤º¤ßªºÀô«O¡C
ªð¦^¦Cªí ¤W¤@¥DÃD