Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if isempty(editString)
- errordlg('Please enter a name into the text-box. We thank you in anticipation.',...
- 'Error Code I');
- return
- elseif char(editString) > 12
- errordlg('Please enter a name that is less than 12 characters long. Thank you.',...
- 'Error Code II');
- return
- elseif isa(editString, 'integer')
- errordlg('Please enter a name, not numbers. Thank you.', 'Error Code III');
- return
- elseif isa(editString, 'integer') && isa(editString, 'char')
- errordlg('Please enter a name without mixing numbers & characters. Thanks.',...
- 'Error Code IV');
- else
- delete(gcf)
- gui_02
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement