85.8k views
3 votes
IblMessage.txt=welcome to fiji.what is the error in the coding and what type of error is it?(explain)​

User Ambrish
by
4.3k points

1 Answer

3 votes

Answer:

The correct syntax (assuming WinForms) is

lblMessage.Text = "Welcome to fiji";

The given statement fails to follow the syntax of literal strings, which should be in quotation marks. (depending on the framework and programming language, the txt property may also be incorrect, as well as the missing semi-colon).

User StackedQ
by
4.7k points