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()
   Case $GUIMsg = $bt
        $equation = GUICtrlRead($eq_inp)

 for example: I wanna write "5+1" in the input and get a message with "6"

please help

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...