Jump to content

Edit Box and Variables


BoD
 Share

Recommended Posts

Hey

I am having an edit box issue

I couldn't figure it out from the help, if you guys could point me in the right direction that would be good

nice and simple

Im trying to make $person the input from the namebox

Local $person

Local $namebox

$radio4 = GUICtrlCreateRadio("", 300, 168, 18, 17)

$namebox = GUICtrlCreateEdit("", 320, 168, 100, 40)

If BitAnd(GUICtrlRead($radio4),$GUI_CHECKED) Then

$person &= $namebox

EndIf

That isn't the whole script, but thats all you really need to know (i think)

If you need me to publish the whole script i can, but everything up to there is working for me.

Thanks

Richard

Link to comment
Share on other sites

Have a look at GuiCtrlRead and GuiCtrlSetData.

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

haha thanks

i just figured it out before seeing your reply

If BitAnd(GUICtrlRead($radio4),$GUI_CHECKED) Then

GUICtrlRead($namebox, $person)

$person = GUICtrlRead($namebox)

EndIf

Thats how i did it, is there a cleaner way?

is this line needed?

GUICtrlRead($namebox, $person)

Im about to get rid of it and try, so dont bother replying

Thanks for the quick reply btw

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...