ฟังก์ชันVBScript LCase
❮ การอ้างอิง VBScript ที่สมบูรณ์
ฟังก์ชัน LCase จะแปลงสตริงที่ระบุเป็นตัวพิมพ์เล็ก
เคล็ดลับ:ดูฟังก์ชัน Ucase ด้วย
ไวยากรณ์
LCase(string)
Parameter | Description |
---|---|
string | Required. The string to be converted to lowercase |
ตัวอย่าง
ตัวอย่าง 1
<%
txt="THIS IS A BEAUTIFUL DAY!"
response.write(LCase(txt))
%>
ผลลัพธ์ของโค้ดด้านบนจะเป็น:
this is a beautiful day!
ตัวอย่าง 2
<%
txt="This is a BEAUTIFUL day!"
response.write(LCase(txt))
%>
ผลลัพธ์ของโค้ดด้านบนจะเป็น:
this is a beautiful day!
❮ การอ้างอิง VBScript ที่สมบูรณ์