VBScript ညာဘက် လုပ်ဆောင်ချက်
❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။
Right function သည် စာကြောင်းတစ်ခု၏ညာဘက်ခြမ်းမှ သတ်မှတ်ထားသော စာလုံးအရေအတွက်ကို ပြန်ပေးသည်။
အကြံပြုချက်- စာကြောင်းတစ်ခုရှိ စာလုံးအရေအတွက်ကို ရှာဖွေရန် Len လုပ်ဆောင်ချက်ကို အသုံးပြုပါ။
အကြံပြုချက်- Left function ကိုလည်းကြည့်ပါ။
အထားအသို
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 |
ဥပမာများ
ဥပမာ ၁
<%
txt="This is a beautiful day!"
response.write(Right(txt,10))
%>
အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-
tiful day!
ဥပမာ ၂
စာကြောင်းတစ်ခုလုံးကို ပြန်ပေးပါ။
<%
txt="This is a beautiful day!"
x=Len(txt)
response.write(Right(txt,x))
%>
အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-
This is a beautiful day!
❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။