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

3 Ansichten (letzte 30 Tage)
Ahmed Siddig
Ahmed Siddig am 30 Jun. 2018
Bearbeitet: Ahmed Siddig am 30 Jun. 2018
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.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by