Old way of catching missed strings  Previous topicNext topicFirst topicLast topic



Old way of catching missed strings

In the past it was a good practice to initialize all the user interface strings of a form with a flag that made it obvious that the Caption or Text property had not been initialized from the resource file. A typical approach was to insert a character that would make is easy to catch the oversight. Here is an example of the old way of catching missed user interface strings:



Notice all the $ dollar signs in front of each string of text. This is a common technique that makes it easy to identify strings that have not been initialized from a LoadResString() function. But this is nothing more than a flag to you, the programmer, that you must write some code to load these strings from the resource file. This cumbersome technique is made obsolete by the automatic initialization code that is generated by the ResMe string extraction utility.