综合应用题答案:
“计算”菜单项的命令代码为:
OPEN DATA STOCK
SELECT 股票代码,(买入价-现价)*持有数量 AS 浮亏金额 FROM STOCK_SL WHERE 买入价>现价 INTO ARRAY aaa
DELETE FROM STOCK_FK
INSERT INTO STOCK_FK FROM ARRAY aaa
SELECT SUM(浮亏金额) FROM STOCK_FK INTO ARRAY bbb
CREATE TABLE STOCK_Z(浮亏金额 N(11,2))
INSERT INTO STOCK_Z FROM ARRAY bbb
“退出”菜单项的命令代码为:set sysmenu to default