濮阳杆衣贸易有限公司

主頁(yè) > 知識(shí)庫(kù) > VBS教程:函數(shù)-SetLocale 函數(shù)

VBS教程:函數(shù)-SetLocale 函數(shù)

熱門(mén)標(biāo)簽:鴿森地圖標(biāo)注 菏澤電銷(xiāo)機(jī)器人管理軟件 百度地圖標(biāo)注的位置怎么更改 龍族幻想白銀異聞天使地圖標(biāo)注 福建醫(yī)療智能外呼系統(tǒng)哪家好 琿春電子地圖標(biāo)注 福建外呼系統(tǒng)購(gòu)買(mǎi) 聯(lián)通能辦理400電話是多少錢(qián) 地圖標(biāo)注都什么意思

SetLocale 函數(shù)

Sets the global locale and returns the previous locale.

SetLocale(lcid)

lcid 參數(shù)可以是任意一個(gè)合法的 32 位數(shù)值或短字符串,該值必須唯一標(biāo)識(shí)一個(gè)地理區(qū)域。能被識(shí)別的值可以查閱 區(qū)域設(shè)置 ID 表。

說(shuō)明

lcid 為零,區(qū)域被設(shè)置為與當(dāng)前系統(tǒng)設(shè)置匹配。

一個(gè) locale 是用戶參考信息集合,與用戶的語(yǔ)言、國(guó)家和文化傳統(tǒng)有關(guān)。該 locale 決定鍵盤(pán)布局、字母排序順序和日期、時(shí)間、數(shù)字與貨幣格式。

下面舉例說(shuō)明 SetLocale 函數(shù)的用法。要使用該代碼,請(qǐng)復(fù)制標(biāo)準(zhǔn)HTML 文件中 BODY> 標(biāo)志之間的所有內(nèi)容。

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> 

請(qǐng)參閱

標(biāo)簽:柳州 南京 張掖 丹東 內(nèi)蒙古 鶴壁 達(dá)州 資質(zhì)掛靠

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《VBS教程:函數(shù)-SetLocale 函數(shù)》,本文關(guān)鍵詞  VBS,教程,函數(shù),-SetLocale,VBS,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《VBS教程:函數(shù)-SetLocale 函數(shù)》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于VBS教程:函數(shù)-SetLocale 函數(shù)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    缙云县| 周至县| 博兴县| 昌平区| 定西市| 民勤县| 吴堡县| 边坝县| 中方县| 安吉县| 通河县| 广安市| 宣武区| 宾阳县| 台湾省| 宁陵县| 龙山县| 华池县| 巴林右旗| 荔浦县| 台江县| 河东区| 霞浦县| 福鼎市| 吉林市| 辽源市| 西宁市| 景东| 晋宁县| 来凤县| 鸡泽县| 潼关县| 武夷山市| 辉县市| 湘西| 鹤壁市| 建水县| 甘南县| 浙江省| 平武县| 长子县|