Error: Array operations not implemented
Sailormoontw
sailormo at tpts6.seed.net.tw
Wed Jan 24 18:48:22 PST 2007
Hello:
>From the converted DWT tutorial as follows:
List list2 = new List(shell, DWT.SINGLE | DWT.BORDER);
list2.setItems(["Rock","Paper","Scissors"]);
list2.setBounds(110,0,50,50);
list2.addMouseListener(new class MouseAdapter {
public void mouseDown(MouseEvent e) {
MessageBox.showMessage(list2.getSelection()[0] + " wins");
}
public void mouseUp(MouseEvent e) {
MessageBox.showMessage("Try again!");
}
});
I got this message :
testdwt.d(138): Error: Array operations not implemented
Note line 138 is the line
MessageBox.showMessage(list2.getSelection()[0] + " wins");
Thanks
More information about the Digitalmars-d
mailing list