欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來到入門教程網(wǎng)!

vb

當前位置:主頁 > 軟件編程 > vb >

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

來源:本站原創(chuàng)|時間:2020-01-10|欄目:vb|點擊: 次

SetLocale 函數(shù)

Sets the global locale and returns the previous locale.

SetLocale(lcid)

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

說明

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

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

下面舉例說明 SetLocale 函數(shù)的用法。要使用該代碼,請復制標準HTML 文件中 <BODY> 標志之間的所有內(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:   <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教程:運算符-連接運算符 (&amp;)

欄    目:vb

下一篇:VBS教程:函數(shù)-Second 函數(shù)

本文標題:VBS教程:函數(shù)-SetLocale 函數(shù)

本文地址:http://mengdiqiu.com.cn/a1/vb/8123.html

網(wǎng)頁制作CMS教程網(wǎng)絡編程軟件編程腳本語言數(shù)據(jù)庫服務器

如果侵犯了您的權(quán)利,請與我們聯(lián)系,我們將在24小時內(nèi)進行處理、任何非本站因素導致的法律后果,本站均不負任何責任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有