Another programmer's tool supplied by Michel is Null String Test (Tip #2187). This very simple function exploits the AI tools supplied by Autodesk (see AI_UTILS in your AutoCAD support folder) to test for an empty string. In this case, an empty string is anything made up of spaces, as well as a string with nothing in it. If the string is empty, an error string is returned (in French); otherwise, the original string is the result. Programmers may want to modify this function for a null result and then employ it inside a conditional. Merci Michel, tr?s bonne! |