how can know an object is Back or Front ?

 

how can know an object is Back or Front ?

i use this code but it return 0 always!

long vv;
ObjectGetInteger(0,"FML_H1",OBJPROP_BACK,false,vv);
Print(vv);

or

Print(ObjectGetInteger(0,"FML_H1",OBJPROP_BACK,false));
 

The false parameter is only used for setting the objectstate;

ObjectSetInteger(0,"FML_H1",OBJPROP_BACK,false);

If you want to read the property;

bool state = 0; ObjectGetInteger(0,"FML_H1",OBJPROP_BACK,state);
Documentation on MQL5: Language Basics / Preprocessor / Program Properties (#property)
Documentation on MQL5: Language Basics / Preprocessor / Program Properties (#property)
  • www.mql5.com
Path to the file of an image that will be used as an icon of the EX5 program. Path specification rules are the same as for resources. The property must be specified in the main module with the MQL5 source code. The icon file must be in the ICO format. When launching a script or an Expert Advisor on the chart, the stack of at least 8 MB is...
 
Marco vd Heijden:

The false parameter is only used for setting the objectstate;

If you want to read the property;

it return FALSE always

 
Ebrahim Noroozi Sani Yadaki:

it return FALSE always

Post some code.

   bool state = 0;
   ObjectGetInteger(0,"Line",OBJPROP_BACK,state);

   if(state)
     {
      Alert("Object is BACK");
     }

   else
     {
      Alert("Object is FRONT");
     }