# Variable number isn't being declared

**URL:** <https://forum.kirupa.com/t/variable-number-isnt-being-declared/331686>\
**Category:** Uncategorized\
**Created:** [September 26, 2013, 4:35pm UTC](https://forum.kirupa.com/t/variable-number-isnt-being-declared/331686 "2013-09-26T16:35:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BindleStick](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@BindleStick](https://forum.kirupa.com/u/BindleStick)\
**Post date:** [September 26, 2013, 4:35pm UTC](https://forum.kirupa.com/t/variable-number-isnt-being-declared/331686/1 "2013-09-26T16:35:58Z")

</div>

I have this variable called levelNumber, which is a num var in my Level class. Then in my Main document class, I add an instance of the Level class, and try to declare levelNumber equals 1 from the Main class. Doesn’t seem to work. Is there any way to tell the Level class that levelNumber equals 1 in my Main class?

If you want, I can post my code to better understand.
