last ...
This commit is contained in:
@@ -485,6 +485,39 @@ bool IsDrawExists(
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Find Specific Object Name ...
|
||||
string FindObjectName(
|
||||
string suggest,
|
||||
long chartId = 0,
|
||||
int subWindow = 0 //
|
||||
)
|
||||
{
|
||||
//
|
||||
string result = NULL;
|
||||
|
||||
//
|
||||
int objectsCount = ObjectsTotal(chartId, subWindow);
|
||||
if (objectsCount <= 0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
for (int i = objectsCount - 1; i >= 0; i--) {
|
||||
//
|
||||
string iObjectName = ObjectName(chartId, i, subWindow);
|
||||
bool isExists = StringFind(iObjectName, suggest) >= 0;
|
||||
if (isExists) {
|
||||
//
|
||||
result = iObjectName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Regular Draws ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user