校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > VBS教程:函數-SetLocale 函數

VBS教程:函數-SetLocale 函數

熱門標簽:鴿森地圖標注 菏澤電銷機器人管理軟件 百度地圖標注的位置怎么更改 龍族幻想白銀異聞天使地圖標注 福建醫療智能外呼系統哪家好 琿春電子地圖標注 福建外呼系統購買 聯通能辦理400電話是多少錢 地圖標注都什么意思

SetLocale 函數

Sets the global locale and returns the previous locale.

SetLocale(lcid)

lcid 參數可以是任意一個合法的 32 位數值或短字符串,該值必須唯一標識一個地理區域。能被識別的值可以查閱 區域設置 ID 表。

說明

lcid 為零,區域被設置為與當前系統設置匹配。

一個 locale 是用戶參考信息集合,與用戶的語言、國家和文化傳統有關。該 locale 決定鍵盤布局、字母排序順序和日期、時間、數字與貨幣格式。

下面舉例說明 SetLocale 函數的用法。要使用該代碼,請復制標準HTML 文件中 BODY> 標志之間的所有內容。

Enter Date in UK format: input type="text" id="UKDate" size="20">p>Here's the US equivalent: input type="text" id="USdate" size="20">p>input type="button" value="Convert" id="button1">p>Enter a price in German: nbsp; input type="text" id="GermanNumber" size="20">p>Here's the UK equivalent: input type="text" id="USNumber" size="20">p>input type="button" value="Convert" id="button2">p>script language="vbscript">Dim currentLocale' Get the current localecurrentLocale = GetLocaleSub Button1_onclick  Dim original  original = SetLocale("en-gb")  mydate = CDate(UKDate.value)  ' IE always sets the locale to US English so use the  ' currentLocale variable to set the locale to US English  original = SetLocale(currentLocale)  USDate.value = FormatDateTime(mydate,vbShortDate)End SubSub button2_onclick  Dim original  original = SetLocale("de")  myvalue = CCur(GermanNumber.value)  original = SetLocale("en-gb")  USNumber.value = FormatCurrency(myvalue)End Sub/script> 

請參閱

標簽:柳州 南京 張掖 丹東 內蒙古 鶴壁 達州 資質掛靠

巨人網絡通訊聲明:本文標題《VBS教程:函數-SetLocale 函數》,本文關鍵詞  VBS,教程,函數,-SetLocale,VBS,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《VBS教程:函數-SetLocale 函數》相關的同類信息!
  • 本頁收集關于VBS教程:函數-SetLocale 函數的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 元阳县| 东方市| 榆社县| 随州市| 八宿县| 贺兰县| 云安县| 海城市| 九寨沟县| 长宁县| 鱼台县| 文化| 河南省| 钦州市| 安化县| 铜陵市| 巴林右旗| 宝山区| 瓮安县| 衡东县| 延庆县| 通山县| 张家界市| 丽江市| 大方县| 集安市| 泗阳县| 江都市| 金阳县| 班玛县| 田东县| 桑植县| 潢川县| 晋州市| 黔西| 安西县| 克什克腾旗| 那曲县| 兴海县| 乌鲁木齐市| 中超|