AlienStar Posted October 28, 2018 Posted October 28, 2018 hello everybody I have an input text in GUI and wanna get the result if I write an equation Local $eq_inp = guictrlcreateInput("", 20, 20 , 200, 40 ) Local $bt = GUICtrlCreateButton("Calculat", 50, 200, 75, 26) While 1 $GUIMsg = GUIGetMsg() Select Case $GUIMsg = $bt $equation = GUICtrlRead($eq_inp) Msgbox(0,"result",$equation) EndSelect WEnd for example: I wanna write "5+1" in the input and get a message with "6" please help
pixelsearch Posted October 28, 2018 Posted October 28, 2018 Hi AlienStar Execute() should do it : $eq_inp = "5+1" $equation = Execute($eq_inp) Msgbox(0, "", $equation) ; displays 6 AlienStar 1 "I think you are searching a bug where there is no bug... don't listen to bad advice."
AlienStar Posted October 28, 2018 Author Posted October 28, 2018 6 hours ago, pixelsearch said: Hi AlienStar Execute() should do it : $eq_inp = "5+1" $equation = Execute($eq_inp) Msgbox(0, "", $equation) ; displays 6 thanks so much it works well , amazing
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now