BsgBox

BsgBox

  • NA
  • 9
  • 0

ENum Problem :))

Mar 17 2004 6:25 PM
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

Answers (4)