您现在的位置是:网站首页> 编程资料编程资料
VBS教程:函数-SetLocale 函数_vbs_
2023-05-25
420人已围观
简介 VBS教程:函数-SetLocale 函数_vbs_
SetLocale 函数
Sets the global locale and returns the previous locale.
SetLocale(lcid)
lcid 参数可以是任意一个合法的 32 位数值或短字符串,该值必须唯一标识一个地理区域。能被识别的值可以查阅 区域设置 ID 表。
说明
若 lcid 为零,区域被设置为与当前系统设置匹配。
一个 locale 是用户参考信息集合,与用户的语言、国家和文化传统有关。该 locale 决定键盘布局、字母排序顺序和日期、时间、数字与货币格式。
下面举例说明 SetLocale 函数的用法。要使用该代码,请复制标准HTML 文件中
标志之间的所有内容。Enter Date in UK format: Here's the US equivalent:
Enter a price in German:
Here's the UK equivalent:
请参阅
