Infosys在阅读器中打开 / AI 翻译

TE2000 | HMI Engineering · 0 次阅读

setOffset

[ Function ]

public setOffset(offset: number): void;

Sets the position of the read pointer.

Parameter

Name

Type

Description

offset

number

The new position of the read pointer

Return value

Type

Description

void

No return value

Sample - JavaScript

var reader = new TcHmi.Base64BinaryReader('SGVsbG8sIFdvcmxkIQ==');
reader.setOffset(7);
var result1 = reader.readString(); // 'World!'
setOffset 1:

Available from version 1.10