ASP LCID 属性
คำอธิบายและการใช้งาน
LCID 属性 กำหนดหรือกลับค่าเป็นตัวเลขที่นิยามสำหรับตำแหน่งหรือภูมิภาค ข้อมูลเช่น วันที่ เวลา และเงินจะแสดงตามตำแหน่งหรือภูมิภาค
สyntax
Session.LCID(=LCID)
ตัวแปร | คำอธิบาย |
---|---|
LCID | รหัสที่ระบุภูมิภาค |
ตัวอย่าง
<% response.write("<p>") response.write("LCID ปริยาย: " & Session.LCID & "<br />") response.write("รูปแบบวันที่: " & date() & "<br />") response.write("รูปแบบเงินเฟอร์น: " & FormatCurrency(350)) response.write("</p>") Session.LCID=1036 response.write("<p>") response.write("LCID ปัจจุบัน: " & Session.LCID & "<br />") response.write("รูปแบบวันที่: " & date() & "<br />") response.write("รูปแบบเงินเฟอร์น: " & FormatCurrency(350)) response.write("</p>") Session.LCID=3079 response.write("<p>") response.write("LCID ปัจจุบัน: " & Session.LCID & "<br />") response.write("รูปแบบวันที่: " & date() & "<br />") response.write("รูปแบบเงินเฟอร์น: " & FormatCurrency(350)) response.write("</p>") Session.LCID=2057 response.write("<p>") response.write("LCID ปัจจุบัน: " & Session.LCID & "<br />") response.write("รูปแบบวันที่: " & date() & "<br />") response.write("รูปแบบเงินเฟอร์น: " & FormatCurrency(350)) response.write("</p>") %>
ออก:
LCID ปริยาย: 2052
รูปแบบวันที่: 2025/3/26
รูปแบบเงินเฟอร์น: ¥350.00
LCID ปัจจุบัน: 1036
รูปแบบการแสดงค่าวันที่: 26/03/2025
รูปแบบเงินเฟอร์น: 350,00 €
LCID ปัจจุบัน: 3079
รูปแบบการแสดงค่าวันที่: 26.03.2025
รูปแบบการแสดงค่าเงินคือ: € 350,00
LCID ปัจจุบัน: 2057
รูปแบบการแสดงค่าวันที่: 26/03/2025
รูปแบบการแสดงค่าเงินคือ: £350.00