[Ri...] Posted October 29 Share Posted October 29 I want to make this code recognize "YES", "Yes" or "yes". //04.01.25 RS Run=inquireText("Is the Block Fixture moved out of the way?"+cr()+"You can move the fixture now."+cr()+"User must answer YES to continue."+cr()+"CMM will stop if not YES.") if Run == "YES" else cncBreak() endif //End edit I am not structuring something properly and I can't wait to see how simple it is so I can laugh at myself. Link to comment Share on other sites More sharing options...
[Ri...] Posted October 29 Share Posted October 29 Well if the answers are only Yes/No, I would just use confirm instead of inquireText. 1 Link to comment Share on other sites More sharing options...
[Ri...] Posted October 29 Share Posted October 29 But you can use case conversion if you are trying to convert. Run = inquireText("Is the Block Fixture moved out of the way?" + cr() + "You can move the fixture now." + cr() + "User must answer YES to continue." + cr() + "CMM will stop if not YES.") if text(Run).asUppercase == "YES" // continue else cncBreak() endif 2 Link to comment Share on other sites More sharing options...
[Ch...] Posted October 29 Share Posted October 29 (edited) There are also the following : .asLowercase and .asCapitalized and also : .startingWithUppercaseLetter Edited October 29 1 1 Link to comment Share on other sites More sharing options...
[Ri...] Posted October 29 Author Share Posted October 29 Please sign in to view this quote. Well, that simplified the process. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in