最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

 更新時間:2006年11月16日 00:00:00   作者:  

SetLocale 函數(shù)

Sets the global locale and returns the previous locale.

SetLocale(lcid)

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

說明

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

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

下面舉例說明 SetLocale 函數(shù)的用法。要使用該代碼,請復(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> 

請參閱

相關(guān)文章

最新評論

洮南市| 保亭| 大宁县| 巴林右旗| 江川县| 蒙阴县| 正安县| 信宜市| 景洪市| 大悟县| 中牟县| 秭归县| 台山市| 蓝山县| 恩平市| 崇明县| 清徐县| 长葛市| 澎湖县| 西峡县| 年辖:市辖区| 曲靖市| 余庆县| 荔浦县| 西吉县| 吴川市| 日土县| 西和县| 张家港市| 唐海县| 西乌| 大厂| 北流市| 鸡西市| 印江| 聂拉木县| 尼玛县| 施秉县| 太保市| 轮台县| 金塔县|