- Home /
Question by
user-9115 (google) · Feb 10, 2011 at 05:17 AM ·
variable-definition
Compile error BCE0044: unexpected char: '''
I am trying to use the char variable type and I am getting
BCE0044: unexpected char: '''
The code I am using is
var tiltDirection:char = 'a';
Comment
Best Answer
Answer by Bunny83 · Feb 10, 2011 at 05:20 AM
As far as i know in JS you can't use the 'a' like in C#. There is no direct way to write char literals. Use:
var tiltDirection:char = "a"[0];
Your answer
Follow this Question
Related Questions
How would I clear a "GameObject" variable? 1 Answer
The variable has not been assigned 0 Answers
get a variable externally 1 Answer