lol sleep coding..

Miscellaneous Forums/General Discussion/lol sleep coding..

ahh the things i can type while half asleepp..

If CTC_CurUsernamePos = 0 Then CTC_CurUsernamePos = 0


i dont even remember what i was trying to do ;/

Probably
If CTC_CurUsernamePos < 0 Then CTC_CurUsernamePos = 0
Looks like a variable name like CurUsernamePos is the position of the cursor on a list of user names and you're making sure it can't exceed boundaries... That would be my guess anyway!

More guesswork: you created a custom textfield to enter a username.. hardwired for usernames, since you have 'username' in the name of the variable. I'd do a generic textfield/inputbox rather and thus use a name like CTC_CurPos.

But ohwell, one can discuss about this for ages I guess.. :P

actually rob gave me part of the answer, got the rest of it though.. btw its for a combobox, i was modifying some code for user creation, and that was used near the beginning of the program to make sure the username in an .ini had been selected, if it wasn't it would just select the top on the list.