팩토리 » Api

substringbyte

Description

원본 문자열에서 시작 인덱스 기준으로 잘라내길 원하는 바이트수만큼 문자열을 잘라내는 API이다.

Parameters

Parameters Type Description
strString STRING 원본 문자열
nStartPos long 시작 인덱스 (문자 위치 기준)
nByteCount long 잘라낼 바이트수
nHangulByteLength short [옵션] 한글 한글자 바이트 크기

Return Value

Type Description
STRING 잘라낸 문자열

Remark

nStartPos 파라미터는 문자 위치 기준으로 계산된다.

nHangulByteLength 파라미터를 지정하지 않은 경우, 아스키 문자가 아닌 문자의 바이트 길이는 실행환경 파라미터인 DBMS_CHARSET 값에 의해서 결정된다.

Example

function btn_substringbyte_on_mouseup() { screen.alert(factory.substringbyte("ABC", 0, 2)); }

See Also

substringbyteex

Viewer Ver.

9.1.1.1

Update Date

20190306