• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with my code.  RSS feed

 
Timothy Giffin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below is my first ever code. I bolded where i am getting a syntax error. Why am i getting an error here if i assigned that word to a string?
 
Tushar Goel
Ranch Hand
Posts: 934
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Timothy, you are trying to concatenate strings without using concatenate operators.

You need to change it. as below:



Also please use code tags for better clarity.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I have added code tags which you should always use, and doesn't the post look better now . I had to remove the bold code because those tags don't work inside code tags.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
also, if you get a syntax error, it helps us TREMENDOUSLY if you post the full and complete text of it here. Those errors often tell you EXACTLY what is wrong, once you learn how to read them.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!