joelc:
Sorry about the confusion,my code has this as an example, the number 25 is my step count, I want to change this as an inputdata coming from users (from 1~200). Do i define this in arduino IDE as an int coming from serial input or can i cast a whole complete method from visual studio(which i'm not familiar with). my codes does work with defined methods only but with users input I'm not able to get the correct code structure.
I am still confused because I don't understand how your numbers should integrate with the messages you are already sending. Maybe you need a different approach altogether.
I suspect that the simplest solution to your problem is to have your PC program always send a message to the Arduino that contains all the relevant parts. For example if you want to send the number-of-steps, the direction you could send a message like this <24,F> which would be interpreted as 24 steps in the Forward direction. If you need to control 2 motors then send <24,F,187,R> which would mean 24 steps forward for motor1 and 187 steps in reverse for motor2
The 3rd example and the parse example in Serial Input Basics illustrate how to receive data in that format.
If all that does not help then please give some examples of the things you want your stepper motors to be able to do.
...R