[iCustom] Error message when file does not exist

 

Hi,

is there a way to get a return value (other than 0, 0 could be a value of the indicator), if the file does not exist, if I call the file with iCustom?

double val=iCustom(NULL,0,"SampleInddoesnotexist",13,1,0);


Warm Regards

Burkhard

 
BurkhardWille:

Hi,

is there a way to get a return value (other than 0, 0 could be a value of the indicator), if the file does not exist, if I call the file with iCustom?


Warm Regards

Burkhard

Check for ERR_INDICATOR_CANNOT_LOAD  error (code 4072 - using the GetLastError() function)
 
Look at _LastError. Probably

4072

ERR_INDICATOR_CANNOT_LOAD

Cannot load custom indicator

 
Works great. Thank you very much!
Reason: