API version 1
- ‐
R
integer
objectId¶
内部管理に使用している.NETインスタンスのIDを示します。
使用例
CRSダウンロード
Form ExternalObject_methods {
X = 0;
Y = 0;
width = 640;
Height = 300;
nextTabKey = KEY_F01;
Button button1 {
x = 520;
y = 8;
width = 104;
height = 24;
title = "実行";
Function OnTouch( e ) {
var lib = "System, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=b77a5c561934e089";
#.NETオブジェクトのSoundPlayerをlibパラメータで生成します
var ext = new ExternalObject("System.Media.SoundPlayer", lib);
#.NETインスタンスIDを表示します。
print( "objectID:", ext.objectID);
#.NETオブジェクトのクラス名を表示します。
print( "type:", ext.type);
#System.Media.SoundPlayer.SoundLocationプロパティにtextbox1の文字列を設定します
ext.setProperty("SoundLocation", ^.textbox1.value);
#System.Media.SoundPlayer.Playメソッドを実行します
ext.invoke("Play");
}
}
TextBox textbox1 {
x = 8;
y = 8;
width = 496;
height = 24;
value = "C:\\Windows\\Media\\chimes.wav";
}
}