asp lcid 屬性

lcid 屬性設(shè)置或返回一個(gè)規(guī)定位置或地區(qū)的整數(shù)。諸如日期、時(shí)間以及貨幣等內(nèi)容都會(huì)根據(jù)位置或地區(qū)來(lái)顯示。
語(yǔ)法
參數(shù) | 描述 |
---|---|
lcid | 地區(qū)標(biāo)識(shí)符。 |
實(shí)例
response.write("
")
response.write("default lcid is: " & session.lcid & "
")
response.write("date format is: " & date() & "
")
response.write("currency format is: " & formatcurrency(350))
response.write("
session.lcid=1036
response.write("
")
response.write("lcid is now: " & session.lcid & "
")
response.write("date format is: " & date() & "
")
response.write("currency format is: " & formatcurrency(350))
response.write("
session.lcid=3079
response.write("
")
response.write("lcid is now: " & session.lcid & "
")
response.write("date format is: " & date() & "
")
response.write("currency format is: " & formatcurrency(350))
response.write("
session.lcid=2057
response.write("
")
response.write("lcid is now: " & session.lcid & "
")
response.write("date format is: " & date() & "
")
response.write("currency format is: " & formatcurrency(350))
response.write("
%>
輸出:
default lcid is: 2048
date format is: 12/11/2001
currency format is: $ 350.00
lcid is now: 1036
date format is: 11/12/2001
currency format is: 350,00 f
lcid is now: 3079
date format is: 11.12.2001
currency format is: € 350,00
lcid is now: 2057
date format is: 11/12/2001
currency format is: £ 350.00

- ASP 變量
- ASP Cookies
- ASP Global.asa
- ASP 總結(jié)
- ASP AtEndOfStream 屬性
- ASP ReadAll 方法
- ASP ReadLine 方法
- ASP ShortName 屬性
- ASP Size 屬性
- ASP Items 方法
- ASP ContentType 屬性
- ASP Expires 屬性
- ASP ExpiresAbsolute 屬性
- ASP QueryString 集合
- ASP Lock 和 Unlock 方法
- ASP Session_OnStart 和 Session_OnEnd 事件
- ASP HTMLEncode 方法
- ASP BuildPath 方法
- ASP CreateFolder 方法
- ASP GetFileName 方法