You will have to put "Local test1:TTextfield" out of the main loop. Just define it in the beginning and it should work.
Custom Textfield Function
BlitzMax Forums/BlitzMax Beginners Area/Custom Textfield FunctionThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.