ENum Problem :))
I created ENum in class named Player
public enum Direction{stop,ToRight,ToBottom,ToLeft,ToTop};
then Also Filled it with value ,
PlayerDir = CPart.Direction.ToRight;
then In the Interface I Want to Change it & ReSave it through textBox
It coudent work with this
* SetPlayerDir Is Function Take (Enum CPart.Direction)
*PlayerDirIndexTxt.text = string contain the Direction Index
SetPlayerDir(PlayerDirIndexTxt.Text);
Or even :
SetPlayerDir(int.Parse(PlayerDirIndexTxt.Text));
or even with the Direction as text .., then how run this function using TextBox ???
thanks alot
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

kovanRank #1,453 · 1.1K reputationPosted Mar 18, 2004, 5:32 AM EST
jimteeuwenRank #4,734 · 328 reputationPosted Mar 18, 2004, 7:19 AM EST
BsgBox9 reputationPosted Mar 18, 2004, 10:27 AM EST
kndkapchan16 reputationPosted Mar 30, 2004, 12:14 AM EST