Sign in to follow this  
Followers 0
comeonbaby

please tell my about GUICtrlRead?

2 posts in this topic

#1 ·  Posted (edited)

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



$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  
Followers 0