[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Null String Test
Tip# 2187 By Michel Chayer On 01-Feb-2007
3
Rated By 1 users Downloaded : 116
Categories : Programmer's Tools
Software type : AutoCAD
Rename File To : Tip 2187: CNULLE.lsp
Programmer's tool exploits the AI tools supplied by Autodesk to test for an empty string.

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!

 

 

Average Rating:
3


User comments


Log In