twols Posted February 13, 2013 Report Share Posted February 13, 2013 Good morning, guys. What could be a good way for providing localized error messages with additional information? Like "File settings.ini was not found". Or is it better to build the error source like this: *.vi<ERR>File was not found <APPEND>settings.ini Localization would cut out the <err> part and translate it only, then append the additional information like file name. Are those tags documented somewhere? Quote Link to comment
Stobber Posted February 16, 2013 Report Share Posted February 16, 2013 They're not formally documented anywhere AFAIK. You can figure them out pretty easily by inspecting "General Error Handler.vi". I would definitely try to make use of them so the native error functions work correctly on your enhanced error strings. NI's "Structured Error Handler" component uses them in similar fashion; you might be able to glean some direction from looking at its source, too. (I would link to SEH, but NI.com is down for maintenance.) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.