컴포넌트의 device 속성값을 설정하는 API이다.
Parameters | Type | Description |
---|---|---|
nDevice | short | device 속성값 |
Type | Description |
---|---|
BOOL | 정상 처리 여부 |
컴포넌트의 device 속성값은 필드 포커스시 외부 물리 디바이스를 연계 처리를 판단하기 위한 단순 정보를 저장하는 기능만을 제공하며, 실제 물리 디바이스에 대한 연계 기능을 제공하지는 않는다.
function btn_on_mouseup()
{
var device_type, ret;
device_type = fld.getdevice();
factory.consoleprint("device_type = " + device_type);
if (device_type != 0) {
ret = fld.setdevice(0);
factory.consoleprint("setdevice return = " + ret);
}
}