刚才build一个project,发现始终在找不到TFormatSettings的定义,help里面也没有TFormatSettings的东西.google了一下,这个应该是在SysUtils里面定义的,搜索了一下没有发现.在Delphi7的what's new里面发现这么一段:
overloads of routines that format and parse numbers, date-time values, and currency. The new routines are thread-safe because they obtain their localization information from a TFormatSettings data structure instead of from global variables. This data structure must be populated before being used; a new function, GetLocaleFormatSettings, is provided to populate the data structure from a specified locale.
原来是delphi7新增加的,难道为了这个就要去装个delphi7,真麻烦.
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.