I think you are right, at least i have some validation from other people that the code structure that i want will have a problem with the current codes that I'm sending, I will read thru on the links that you provided and hopefully i can adapt and come up with the correct code structure within this week. I still need to learn a lot from arduino and coding.
I can disregard all my codes and do restructuring, my priority aim is that.
(my motor is 1.8 deg) I want my stepper motor to move either forward or reversed with a controlled step count, the step count will be entered by the user in the GUI.
Thanks robin2, for accommodating my questions.