Displaying multiple results in a text box in VB.net and comparing them

조회 수: 6 (최근 30일)
Ahmed Siddig
Ahmed Siddig 2018년 6월 30일
편집: Ahmed Siddig 2018년 6월 30일
Hello, i have results from a matlab .m files and i was able to display them as messages in VB.net using
Dim fileReader1, fileReader2, fileReader3, fileReader4 As Double
fileReader1 = My.Computer.FileSystem.ReadAllText("C:\Users\rN.txt")
MsgBox(fileReader1)
fileReader2 = My.Computer.FileSystem.ReadAllText("C:\Users\rW.txt")
MsgBox(fileReader2)
fileReader3 = My.Computer.FileSystem.ReadAllText("C:\Users\rS.txt")
MsgBox(fileReader3)
fileReader4 = My.Computer.FileSystem.ReadAllText("C:\Users\rE.txt")
MsgBox(fileReader4)
and i was wondering how can i display them inside different text boxes in the design window and save their values in order to compare them. One more thing, in comparison between the 4 results i want execute a command based on the highest value between the 4 values and i simply used
If fileReader1 > fileReader2 && > fileReader3 && > fileReader4 Then command ElseIf fileReader2 > fileReader1 && > fileReader3 && > fileReader4 Then command ElseIf fileReader3 > fileReader1 && > fileReader2 && > fileReader4 Then command ElseIf fileReader4 > fileReader1 && > fileReader2 && > fileReader3 Then command
is it possible or is there any other way. thanks in advance.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Microsoft .NET에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by