Показать сообщение отдельно
Старый 16.01.2009, 18:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,487 / 846 (79) +++++++
Регистрация: 28.10.2006
msdynamicsax: How to get the current call stack in X++
Источник: http://msdynamicsax.wordpress.com/20...ll-stack-in-x/
==============


A neat feature in X++ is the ability to get the current call stack.
You do this by writing the following anywhere in the code:

xSession:: xppCallStack(); // without the space between : and x It’s there just because when I type them together in WordPress, this is what I get

The method returns a container, but you can offcourse convert it to a string by using the con2str() method and search for a specific method or class by using the strscan() method.
This way, you can separate the code depending on how it has been initiated.




Источник: http://msdynamicsax.wordpress.com/20...ll-stack-in-x/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.