Dave Reyes
New Member
Hi. I'm quite new to Progress programming, so I'm not really familiar with all the codes.
I'm trying to figure out what's wrong with this one, can anyone help me?
I have two tables here, Users and LogRest(Login Restriction).
My idea is to delete the table entry in LogRest when the main window closes.
I'm trying to figure out what's wrong with this one, can anyone help me?
Code:
ON 'WINDOW-CLOSE':U OF wMain_SNL.r:
DO:
FIND CURRENT Users NO-LOCK NO-ERROR.
FIND FIRST LogRest WHERE LogRest.Username = Users.Username.
IF AVAIL LogRest THEN DO:
DELETE LogRest.
END.
RETURN.
END.
I have two tables here, Users and LogRest(Login Restriction).
My idea is to delete the table entry in LogRest when the main window closes.