无法解析e.getKeyCode()中的“ e”;

时间:2018-08-08 20:51:45

标签: keyevent

im试图实现一个Key Event,但是eclipse无法解析e.getKeyCode();中的“ e”;

我在这里想念什么?

Error

1 个答案:

答案 0 :(得分:0)

您的代码中没有定义data have; infile datalines delimiter=':' truncover; informat target $50.; input target; datalines; aaa bbb aaa bbb bbb aaa ccc aaa ccc bbb bbb ccc ; run; data want; set have; RE = PRXPARSE("/aaa|bbb/"); CALL prxsubstr(RE,STRIP(target),start,length); IF START GT 0 then DO; TEST_STR = substrn(STRIP(target),start,length); end; ELSE DO; TEST_STR = STRIP(target); end; drop re start length; run; 。您的方法签名为:

aaa     | aaa
bbb     | bbb
aaa bbb | aaa
bbb aaa | bbb
ccc aaa | aaa
ccc bbb | bbb
bbb ccc | bbb

e更改为public void keyPressed(KeyEvent arg0) ,反之亦然。