SC2Mapster Forums

Development > Triggers

Edit Boxes

  • 4 posts
    #1 Jan 05, 2013 at 23:56 UTC - 0 likes

    Hi, so with edit boxes, which are text boxes basically the user can type into them. I can get the text that is typed into the edit boxes, however i cannot convert that text to something useful like a string or an integer, as far as i know atleast. Is there any way to do this?

    Thanks.

    #2 Jan 06, 2013 at 01:51 UTC - 0 likes

    you cannot convert text into anything, you can convert anythign into text but not vice versa

    #3 Jan 06, 2013 at 02:24 UTC - 1 like

    @lemmy734: Go

    As far as I know the "text" in an edit box is already a string.

            string = (Edit value of (Used dialog item) for 1) <String>
    
    #4 Jan 06, 2013 at 03:17 UTC - 2 likes

    Both of these statements are right- you cannot convert text into a string, but the "text" in an edit box is actually a string already. This means you can grab the string value right out of the edit box using the "edit value of (whatever dialog item)" function.

    Send me a PM with any questions or comments.

    Learn about HotS mods, publishing, and regions here

  • 4 posts

You must login to post a comment. Don't have an account? Register to get one!