Jump to content

Calculate numbers from GUI input ??


Recommended Posts

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...