Private Sub Command1_Click()
Dim num As Integer
Dim num0, num1, num2 As Double
strline = ""
fly1 = 1
On Error Resume Next
For i = 1 To List_n
For j = 1 To List_n
Text3((i - 1) * List_n + j).Enabled = True
Next j
Next i
For i = 1 To List_n
For j = i To List_n
If i = j Then
Text3((i - 1) * List_n + j).text = " 1"
Else
num = 1
num1 = 1
num2 = 1
num = InStr(num, Text3((i - 1) * List_n + j).text, "/")
If num <> 0 Then
num1 = Val(Left(Text3((i - 1) * List_n + j).text, num))
num2 = Val(Right(Text3((i - 1) * List_n + j).text, Len(Text3((i - 1) * List_n + j).text) - num))
Text3((i - 1) * List_n + j).text = num1 / num2
Text3((j - 1) * List_n + i).text = num2 / num1
Else
Text3((j - 1) * List_n + i).text = 1 / Val(Text3((i - 1) * List_n + j).text)
End If
End If
Next j
Next i
L = MsgBox("您确定以上的数据吗?", 49, "提示")
If L <> 1 Then
Exit Sub
End If
Call caculation(Combo1.ListIndex + 1, List_n, Text3)
If Selected(Combo1.ListIndex + 1) = Combo1.ListIndex + 1 Then
h = MsgBox("重新输入新数据吗?", 3)
Select Case h
Case 1
GoTo op
Case 2
Exit Sub
Case 7
Exit Sub
End Select
End If
op: Selected(Combo1.ListIndex + 1) = Combo1.ListIndex + 1
Call check
'结果说明
For i = 1 To List_n
Next i
If fly1 = 1 And fly2 = 1 Then
Command1.Enabled = False
Command2.Enabled = False
For i = 1 To List_n
ftoa(i) = 0
For j = 1 To List_m
ftoa(i) = ftoa(i) + AAs(j, i) * AAs(0, j)
Next j
strline = strline + Str(ftoa(i)) + " "
Next i
j = MsgBox("各方案对目标的权数为:" + Chr(10) + Chr(13) + strline, 64, "结论")
End If
For i = 1 To List_n
For j = 1 To List_n
Text3((i - 1) * List_n + j).Visible = True
Text3((i - 1) * List_n + j).text = ""
If i > j Or i = j Then
Text3((i - 1) * List_n + j).Enabled = False
Text3((i - 1) * List_n + j).BackColor = &H868754
End If
Next j
Next i
End Sub
ccfx.rar_VB 模糊_ccfx程序代码_层次分析_评价系统
版权申诉
![star](https://csdnimg.cn/release/downloadcmsfe/public/img/star.98a08eaa.png)
![avatar](https://profile-avatar.csdnimg.cn/a64d28507aff44a1a968cd823e7c3cbe_weixin_42665255.jpg!1)
寒泊
- 粉丝: 78
- 资源: 1万+
最新资源
- 基于 Java 实现的寝室管理系统,方便通过手机APP实现对寝室智能家居的控制(通过蓝牙协议或是网络TCP协议)毕业设计
- 课程设计-基于tensorflow对文字检测网络的复现python源码+文档说明+数据+模型
- QuickNav - Historys Favorites 1.5.0
- 基于selenium技术,点击前端页码单选框代码示例
- 深度学习目标检测(YoloV5)项目-完整记录从数据处理开始到项目落地部署-yolov5如何部署.docx
- 【MATLAB GUI仿真】实战攻略:从零基础到精通
- 网站232统分表.xlsx
- 基于selenium技术,添加标签数据的代码示例
- 下载Vue脚手架-Vue从0到1快速搭建-vue项目从0到
- 欧姆龙凸轮定位器说明书
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)