Started by hmspe ·
2010-03-30 16:37 UTC ·
2 replies · SMF topic #1245
hmspe
2010-03-30 16:37 UTC
I need to be able to test that a textbox has a value other than nil so that I can enable an OK button when a form is completely filled. The GetText, GetLine, GetLineLength, and GetLineCount are all throwing 'nil value not allowed' errors. Is there a way to test that a textbox has a non-nil value?
Thanks,
Martin
owenwengerd
2010-03-30 17:34 UTC
author=hmspe link=topic=1245.msg6668#msg6668 date=1269967064 wrote:
The GetText, GetLine, GetLineLength, and GetLineCount are all throwing 'nil value not allowed' errors.
Those are not errors, they are exceptions. Exceptions mean you are doing something wrong. The exception message tells you what triggered the exception. Two common reasons for the one you're getting is using the wrong variable name for the control, or calling the function after the dialog has already been closed and the control destroyed.
hmspe
2010-03-30 18:35 UTC
Thanks.