Date: Fri, 21 Sep 2001 09:02:21 +0200
Reply-To: Louis Broekhuijsen-Blöys
<louis.broekhuijsen-bloys@CMG.NL>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Louis Broekhuijsen-Blöys
<louis.broekhuijsen-bloys@CMG.NL>
Subject: Re: AF question: how to determine wich frame called my method
Content-Type: text/plain; charset="iso-8859-1"
Dear SAS-L ers,
A few minutes after posting this I found the answer myself: the Traceback
call routine.
Kind regards,
Louis Broekhuijsen - Blöys
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMG Trade, Transport & Industry B.V. Divisie Systems Development
Divisie Information Management (RTIM1)
E-mail: Louis.Broekhuijsen-Bloys@CMG.NL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Information contained in this email and its attachments is confidential
and may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised to
receive it. If you are not the intended recipient you are hereby notified
that any disclosure, copying, distribution or taking any actions in reliance
of the contents of this email and any attachments is strictly prohibited and
may be unlawful. CMG is neither liable for the proper and complete
transmission of the information contained in this email and any attachments
nor for any delay in its receipt. If received in error, please contact CMG
on +31 (0)020 50 33 000 quoting the name of the sender and the addressee
and then delete it from your system. Please note that CMG does not accept
any responsibility for viruses and it is your responsibility to scan the
email and attachments (if any). No contracts may be concluded on behalf of
CMG by means of email communications.
-----Original Message-----
From: Louis Broekhuijsen-Blöys [mailto:louis.broekhuijsen-bloys@cmg.nl]
Sent: vrijdag 21 september 2001 8:38
To: SAS-L@AKH-WIEN.AC.AT
Subject: AF question: how to determine wich frame called my method
Dear SAS-L ers,
I have written an application, consiting of a number of frames and objects.
In one of my objects I would like to know by which frame it is called.
Example:
[mylib.cat1.mainmenu.frame/scl]
init:
CALL Display('mylib.cat2.tableframe.frame');
return;
[mylib.cat2.tableframe.frame/scl]
init:
textobj=3DInstance(Loadclass('mylib.classes.textobj.class'));
text=3Dtextobj.m_gettext('textname');
return;
[mylib.classes.textobj.class/scl]
m_gettext:method textname:input:char return:char;
if <errorcondition textname does not exist> then
_self_.m_log(textname);
endmethod;
m_log:method textname:input:char;
--> At this point I would like to know the name of the frame that
called the m_gettext() method.
endmethod;
End of example.
When a SAS/AF application crashes the log tells me who called who (the call
stack), it even includes the line numbers and the paramaters. I cannot find
this in the SAS documentation. Does anyone have a clue?
Kind regards,
Louis Broekhuijsen - Bl=F6ys
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMG Trade, Transport & Industry B.V. Divisie Systems Development
Divisie Information Management (RTIM1)
E-mail: Louis.Broekhuijsen-Bloys@CMG.NL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Information contained in this email and its attachments is =
confidential
and may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised to
receive it. If you are not the intended recipient you are hereby =
notified
that any disclosure, copying, distribution or taking any actions in =
reliance
of the contents of this email and any attachments is strictly =
prohibited and
may be unlawful. CMG is neither liable for the proper and complete
transmission of the information contained in this email and any =
attachments
nor for any delay in its receipt. If received in error, please contact =
CMG
on +31 (0)020 50 33 000 quoting the name of the sender and the =
addressee
and then delete it from your system. Please note that CMG does not =
accept
any responsibility for viruses and it is your responsibility to scan =
the
email and attachments (if any). No contracts may be concluded on behalf =
of
CMG by means of email communications.