Just to be clear:
Lua variable names *are* case sensitive. username and userName are different variables. However, they are so close, it’s too easy to mix them up. You should use descriptive variable names in particular when there is room for confusion. In this case I would:
username – The text string being sent to or received from online.
usernameTextField – the native.newTextField() object used to allow the user to input a user name
usernameTextDisplay – the display.newTextObject that will display the user name on the screen when it’s just being shown (not the input object)
usernameLabel – A display.newTextObject() with the word “Username” used with the native.newTextField() to instruct the user what the field is for.
As for other things, you need to take the time and try and read the error message and break it down. It gives you a line number and a description of the problem.
error loading module 'profile' from file 'C:\Users\user\Documents\Corona Projects\app\profile.lua': C:\Users\user\Documents\Corona Projects\app\profile.lua:29: unexpected symbol near '.'
What is line 29 of profile.lua? We can’t help you with out knowing that and the code around it. But you have a period where it’s not expected. Maybe you need a comma there, it’s easy to mix a period (.) and comma (,) up.
The other thing is you frequently don’t try what your being asked to try. Saying “that didnt’ work” doesn’t help us help you. You need to provide what the current message, and show us how you changed your code.
Rob