Jump to content
Sign in to follow this  
comeonbaby

please tell my about GUICtrlRead?

Recommended Posts

comeonbaby

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

Share this post


Link to post
Share on other sites
Zedna

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

Func check()
       $vari = GUICtrlRead($string)
               MsgBox(0,"alert",$vari)
EndFunc

Share this post


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
Sign in to follow this  

×