home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 July
/
PCWorld_2001-07_cd.bin
/
Software
/
Komercni
/
software602
/
cnv_ifp.exe
/
_CONFIG_SAVE.PSM
< prev
next >
Wrap
Text File
|
2001-02-14
|
2KB
|
42 lines
{$$3249892617 . }PROCEDURE `_config_save`();
BEGIN
DECLARE v_conf_id INT;
DELETE FROM _config_tobjects;
FOR row AS curs INSENSITIVE CURSOR FOR
SELECT Objtab.Obj_name, Tabtab.tab_name, Tabtab.flags
FROM Objtab, Tabtab
WHERE Objtab.obj_name=Current_application
AND (Objtab.category=chr(CATEG_APPL))
AND Objtab.apl_uuid=Tabtab.apl_uuid
DO
INSERT INTO _config_tobjects (obj_name, obj_category, flags)
VALUES (row.tab_name, CATEG_TABLE, row.flags);
END FOR;
FOR row AS curs INSENSITIVE CURSOR FOR
SELECT Ot1.Obj_name AS f_app_name, Ot2.obj_name, Ot2.category, Ot2.flags
FROM Objtab Ot1, Objtab Ot2
WHERE (Ot1.obj_name=Current_application) AND (Ot1.category=chr(CATEG_APPL))
AND Ot1.apl_uuid=Ot2.apl_uuid
AND (
(Ot2.category=chr(CATEG_VIEW)) OR
(Ot2.category=chr(CATEG_CURSOR)) OR
(Ot2.category=chr(CATEG_MENU)) OR
(Ot2.category=chr(CATEG_PGMSRC)) OR
(Ot2.category=chr(CATEG_DRAWING)) OR
(Ot2.category=chr(CATEG_REPLREL)) OR
(Ot2.category=chr(CATEG_PROC)) OR
(Ot2.category=chr(CATEG_TRIGGER)) OR
(Ot2.category=chr(CATEG_WWW)) OR
(Ot2.category=chr(CATEG_SEQ))
)
DO
INSERT INTO _config_tobjects (obj_name, obj_category, flags)
VALUES (row.obj_name, ord(row.category), row.flags);
END FOR;
END