Displaying multiple results in a text box in VB.net and comparing them
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!