I tried to initialize a textbox value by using the .Text property
Textbox.Text = 0
But Im getting the error Option Strict On disallows implicit conversions from 'Integer' to 'String'.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Both of these will work:
With option strict on you cannot be ambiguous about your conversions. You need to explicitly state what you are setting values to.
It thinks that TextBox1.Text is a string data type, and that 0 is an integer data type, therefore throwing the error. Convert the 0 to a string before setting them equal.