팩토리 » Api
stringright
Description
문자열의 우측 기준으로 자른 문자열을 반환한다.
Parameters
Parameters |
Type |
Description |
strString |
STRING |
원본 문자열 |
nRightLength |
short |
우측 길이 |
Return Value
Type |
Description |
STRING |
처리된 문자열 |
Example
function screen_on_load()
{
var strValue;
strValue = factory.stringright("012345", 0);
factory.consoleprint(strValue); // 결과값 : ""
strValue = factory.stringright("012345", 2);
factory.consoleprint(strValue); // 결과값 : "45"
strValue = factory.stringright("012345", 100);
factory.consoleprint(strValue); // 결과값 : "012345"
}
See Also
stringreplaceat
stringrtrim
stringltrim
Viewer Ver.
9.1.1.1
Update Date
20221129