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

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

 更新時(shí)間:2006年11月16日 00:00:00   作者:  

GetLocale 函數(shù)

返回當(dāng)前區(qū)域設(shè)置 ID 值。

GetLocale()

說(shuō)明

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

返回值可以是任意一個(gè) 32-位 的值,如 區(qū)域設(shè)置 ID所示:

下面舉例說(shuō)明 GetLocale 函數(shù)的用法。要使用該代碼,請(qǐng)復(fù)制標(biāo)準(zhǔn)HTML 文件中 <BODY&gtl 標(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)文章

最新評(píng)論

揭西县| 毕节市| 和平县| 崇信县| 扎兰屯市| 铜川市| 长乐市| 金沙县| 遂川县| 临澧县| 本溪| 布尔津县| 庄浪县| 阿荣旗| 洱源县| 都兰县| 改则县| 巴青县| 台前县| 翼城县| 海晏县| 雷山县| 临海市| 大港区| 延川县| 视频| 彭泽县| 仪征市| 措勤县| 余江县| 邹城市| 安康市| 漠河县| 泗阳县| 正定县| 普兰店市| 湘乡市| 鄱阳县| 昭觉县| 南充市| 察隅县|