The SetLocaleIDs method sets identifiers that define a messaging user's locale.
objSession.SetLocaleIDs(CodePageID)
A locale is the set of features of a messaging user's environment that are dependent on language, country, culture, and conventions. These features include the character selection, the collating sequence and sort order, and the date, time, and currency formats. The SetLocaleIDs method sets identifiers that determine the behavior of locale-sensitive operations.
A code page identifier is a long integer specifying the ordered character set to use when displaying text. Information about a code page can be obtained from the Windows NT GetCPInfo function.
Before SetLocaleIDs is called, the locale and code page are set to the values in the user's registry.
If SetLocaleIDs is to be called, it must be called before the Session object's LogonSMTP method is called. This allows the messaging user's profile to be set for the appropriate locale. A call to SetLocaleIDs following logon returns CdoE_CALL_FAILED.
Note that the SetLocaleIDs method is the sole exception to the rule that a call to a session's LogonSMTP method must precede any other access to that session.
Every new message you create within the current session uses the locale established by your most recent call to the Session object's SetLocaleIDs method, or the default settings if you have never called SetLocaleIDs. A Message object created by the Messages collection's Add method cannot subsequently change its locale, even if SetLocaleIDs is called again. However, you can change a NewMail object's locale after its creation by calling the NewMail object's SetLocaleIDs method. Such a call does not affect the locale of any other Message or NewMail object, nor does it alter the settings established by the Session object's SetLocaleIDs method.
SetLocaleIDs tests the validity of the code page specified by the CodePageID parameter before actually setting the locale identifiers. If the code page is not valid, CdoE_INVALID_PARAMETER is returned.
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/inet/iis/iis/htm/asp/amsm21nj.htm, 4KB, , updated: 2013/7/22 12:19, local time: 2025/5/21 21:09,
216.73.216.201,10-2-4-172:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/inet/iis/iis/htm/asp/amsm21nj.htm"> SetLocaleIDs Method (CDONTS Session Object)</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.