02-10-2015 06:02 AM
Hi,
i have a object and want to know which type it is so a Method, a Drain, a Source .... something like that. I tried it with .Class and it works well but not for Mehods.
I need a generall solution because i comunicate over dde and have a string that i can give to Plant Simulation that will be executed.
so something like print typeOf(.Models.Frame.init); // output: for example .InformationFlow.Method
Solved! Go to Solution.
02-10-2015 06:26 AM - edited 02-10-2015 06:28 AM
you need a reference to avoid the call:
ref(.Models.Frame.init).class.name
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |