Hi
i'm actually trying my first steps with creating an EA and i'm struggling with a simple function: how do i find the last drawn object within a window?
ObjectName(0); gives me an Object somewhere within the window but not the last one...should be quite simple but i can't figure it out
int obj_last=ObjectName(0);
string name;
string description;
name=obj_last
description = ObjectDescription(name);
string temp = "EA\n";
temp = temp + "------------------------------------------------\n"
+ " " + name + "\n"
+ " " + description + "\n"
+ "------------------------------------------------\n";
Comment(temp);
i'm actually trying my first steps with creating an EA and i'm struggling with a simple function: how do i find the last drawn object within a window?
ObjectName(0); gives me an Object somewhere within the window but not the last one...should be quite simple but i can't figure it out
int obj_last=ObjectName(0);
string name;
string description;
name=obj_last
description = ObjectDescription(name);
string temp = "EA\n";
temp = temp + "------------------------------------------------\n"
+ " " + name + "\n"
+ " " + description + "\n"
+ "------------------------------------------------\n";
Comment(temp);