Hey,
I need to do a check on a TextField, to see if something was typed there or not. My program will not allow to use the TextField, if nothing visible is typed. That could be nothing typed at all, or a bunch of spaces.. I can't thing of a way to do this, other than this clumsy way:
So far, I check up to 50 spaces. But if there are 51 spaces in the TextField, it will be allowed, and I don't want that!! Is there a way to check a TextField for nothing, OR ANY amount of spaces..?
I need to do a check on a TextField, to see if something was typed there or not. My program will not allow to use the TextField, if nothing visible is typed. That could be nothing typed at all, or a bunch of spaces.. I can't thing of a way to do this, other than this clumsy way:
Function CheckFor50spaces() If TextFieldText$(SiteNameField)=("") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return If TextFieldText$(SiteNameField)=(" ") Then Notify "You MUST give it a name!" : NoName=True : Return End Function
So far, I check up to 50 spaces. But if there are 51 spaces in the TextField, it will be allowed, and I don't want that!! Is there a way to check a TextField for nothing, OR ANY amount of spaces..?