I'm starting the planning to code for a new tool that will capture draw trend line info.
I wrote a loop to capture the first and the last trend line draw by a user
Code: Select all
Var:
GVCount (0),
return_Val (0),
TL_Num (0),
TL_Num_Ex (0),
TL_First (0),
TL_Last (0),
List_String (""),
TL_Price_S (0),
TL_Price_E (0),
TL_Time_S (0),
TL_Time_E (0),
TL_Color (0),
Tl_Style (0);
Const:
Comma (","),
DrawManually (7);
Once begin
TL_First = TL_GetFirst(DrawManually );
Tl_Num = TL_First;
TL_Num_Ex = 0;
While TL_Num <> TL_Num_Ex begin
TL_Num_Ex = TL_NUM;
TL_NUm = TL_GetNext(Tl_Num,DrawManually);
print (TL_Num:0:0);
end;
TL_Last = TL_Num;
Print ("First: ", TL_First:0:0, " Last: ", TL_Last:0:0);
end;
- What is a proper way to loop trough all trend lines
- How Can I know that I read the last one?
Martin
Resolved: Loop until TL_Num = -2