Atrybut LCID ASP
Definicja i użycie
Atrybut LCID ustawia lub zwraca całkowitą liczbę określającą pozycję lub region. Treść, takie jak data, czas oraz waluta, będą wyświetlane w zależności od pozycji lub regionu.
Gramatyka
Session.LCID(=LCID)
Parametry | Opis |
---|---|
LCID | Identyfikator regionu. |
Przykład
<% response.write("<p>") response.write("Domyślny LCID to: " & Session.LCID & "<br />") response.write("Format daty to: " & date() & "<br />") response.write("Format waluty to: " & FormatCurrency(350)) response.write("</p>") Session.LCID=1036 response.write("<p>") response.write("Aktualny LCID to: " & Session.LCID & "<br />") response.write("Format daty to: " & date() & "<br />") response.write("Format waluty to: " & FormatCurrency(350)) response.write("</p>") Session.LCID=3079 response.write("<p>") response.write("Aktualny LCID to: " & Session.LCID & "<br />") response.write("Format daty to: " & date() & "<br />") response.write("Format waluty to: " & FormatCurrency(350)) response.write("</p>") Session.LCID=2057 response.write("<p>") response.write("Aktualny LCID to: " & Session.LCID & "<br />") response.write("Format daty to: " & date() & "<br />") response.write("Format waluty to: " & FormatCurrency(350)) response.write("</p>") %>
Wynik:
Domyślny LCID to: 2052
Format daty to: 2025/3/26
Format waluty to: ¥350,00
Aktualny LCID to: 1036
Format daty: 26/03/2025
Format waluty to: 350,00 €
LCID teraz: 3079
Format daty: 26.03.2025
Format waluty: € 350,00
LCID teraz: 2057
Format daty: 26/03/2025
Format waluty: £350,00