Text input options in MaxGUI

BlitzMax Forums/BlitzMax GUI Programming/Text input options in MaxGUI

I'm making an editor of sorts, and I need to be able to alter both text and numbers. I would like to be able to click on a button and change its assigned text/number by typing in it. But I'm not sure how to do that in MaxGUI, so instead I have been grabbing and assigning text from Textfields, like this:

If TextFieldText$(skrivNAVN)<>"" Then Navn$(ELag)=TextFieldText$(skrivNAVN)

It kinda works, but not if I want to change an Int. Any suggestions?

Not really sure how your gui should look like, but to change Int numbers you could use stepper or slider (range of numbers).
When using a textfield for any random number input you should have a look for the textfield filter function, which can allow or deny what ever you need in a textfield (e.g. only numbers allowed).