本帖最后由 2140340. 于 2009-12-2 10:47 编辑
再此之前在论坛和百度搜索了两天,看例子无数,未果,无奈只好求助各位大大
呵呵,感谢!
帮忙看下这段代码能否简化一下 Select
Case GUICtrlRead($BFCombo1) ="C:"
$SRC="1"
Case GUICtrlRead($BFCombo1) ="D:"
$SRC="2"
Case GUICtrlRead($BFCombo1) ="E:"
$SRC="3"
Case GUICtrlRead($BFCombo1) ="F:"
$SRC="4"
Case GUICtrlRead($BFCombo1) ="G:"
$SRC="5"
Case GUICtrlRead($BFCombo1) ="H:"
$SRC="6"
Case GUICtrlRead($BFCombo1) ="I:"
$SRC="7"
Case GUICtrlRead($BFCombo1) ="J:"
$SRC="8"
Case GUICtrlRead($BFCombo1) ="K:"
$SRC="9"
Case GUICtrlRead($BFCombo1) ="L:"
$SRC="10"
Case GUICtrlRead($BFCombo1) ="M:"
$SRC="11"
Case GUICtrlRead($BFCombo1) ="N:"
$SRC="12"
Case GUICtrlRead($BFCombo1) ="O:"
$SRC="13"
Case GUICtrlRead($BFCombo1) ="P:"
$SRC="14"
Case GUICtrlRead($BFCombo1) ="Q:"
$SRC="15"
Case GUICtrlRead($BFCombo1) ="R:"
$SRC="16"
Case GUICtrlRead($BFCombo1) ="S:"
$SRC="17"
Case GUICtrlRead($BFCombo1) ="T:"
$SRC="18"
Case GUICtrlRead($BFCombo1) ="U:"
$SRC="19"
Case GUICtrlRead($BFCombo1) ="V:"
$SRC="20"
Case GUICtrlRead($BFCombo1) ="W:"
$SRC="21"
Case GUICtrlRead($BFCombo1) ="X:"
$SRC="22"
Case GUICtrlRead($BFCombo1) ="Y:"
$SRC="23"
Case GUICtrlRead($BFCombo1) ="Z:"
$SRC="24"
Case Else
EndSelect
|