I'm trying to point my program to read a file from a specific directory. Everytime I try to fix this problem to stop the error, I keeps coming back, and I just can't figure out what's happening...
It will tell me "Option Strict On disallows implict conversions from 'String' to 'Double' "Code:Try 'Navigate to fileReader = My.Computer.FileSystem.ReadAllText(My.Computer.FileSystem.SpecialDirectories.MyDocuments) + "\sandwich\" + sandwichtypes.SelectedIndex + "\desc.txt") Catch ex As Exception 'Change text in "infoText" Textbox to show an error infoText.Text = "A desc.text file is not supplied, or an error has occured." 'If error occurs, show in msgbox MsgBox(ex.ToString) End Try End Sub
I've tried everything to my knowledge. Can any of you beautiful (lol) people help me?![]()




Reply With Quote
