वीबीस्क्रिप्ट राइट फंक्शन
❮ पूर्ण वीबीस्क्रिप्ट संदर्भ
राइट फ़ंक्शन स्ट्रिंग के दाईं ओर से वर्णों की एक निर्दिष्ट संख्या देता है।
युक्ति: स्ट्रिंग में वर्णों की संख्या ज्ञात करने के लिए लेन फ़ंक्शन का उपयोग करें।
युक्ति: लेफ्ट फ़ंक्शन को भी देखें।
वाक्य - विन्यास
Right(string,length)
Parameter | Description |
---|---|
string | Required. The string to return characters from |
length | Required. Specifies how many characters to return. If set to 0, an empty string ("") is returned. If set to greater than or equal to the length of the string, the entire string is returned |
उदाहरण
उदाहरण 1
<%
txt="This is a beautiful day!"
response.write(Right(txt,10))
%>
उपरोक्त कोड का आउटपुट होगा:
tiful day!
उदाहरण 2
पूरी स्ट्रिंग लौटाएं:
<%
txt="This is a beautiful day!"
x=Len(txt)
response.write(Right(txt,x))
%>
उपरोक्त कोड का आउटपुट होगा:
This is a beautiful day!
❮ पूर्ण वीबीस्क्रिप्ट संदर्भ