ok avdven, but i have a switch in the main statment that is used to call the menu function and i use the return value as the error code, not another varriable, sorry that was my bad i wasnt spacific

also, how can i write a message under where the input is at? like to make it look like (in conjunction with the clear screen) the message is being displayed below where there putting input? did that make sence?