Jump to content

please tell my about GUICtrlRead?


Recommended Posts

In helpfile said GUICtrlRead return the text entered with type input and edit.But if i use a variable to get return value from it so can not.

Have variable:

$string = GUICtrlCreateInput("",0,50,270,20)
    $ok = GUICtrlCreateButton("ok",10,100,20)
         $vari = GUICtrlRead($string)
               GUICtrlSetOnEvent($ok,"check")
Func check()
       MsgBox(0,"alert",$vari)

EndFunc

Haven't varibale: why this script done while script above can not excute??

$string = GUICtrlCreateInput("",0,50,270,20)
    $ok = GUICtrlCreateButton("ok",10,100,20)
         
               GUICtrlSetOnEvent($ok,"check")
Func check()
       MsgBox(0,"alert",GUICtrlRead($string))

EndFunc

please tell me why? Thx in advance.!

Edited by comeonbaby
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...