4
Answers

ENum Problem :))

BsgBox

BsgBox

20y
3.2k
1
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)