[iCustom] Error message when file does not exist

BurkhardWille
322
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?

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


Warm Regards

Burkhard

Mladen Rakic
225689
Mladen Rakic  
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)
William Roeder
25313
William Roeder  
Look at _LastError. Probably

4072

ERR_INDICATOR_CANNOT_LOAD

Cannot load custom indicator

BurkhardWille
322
BurkhardWille  
Works great. Thank you very much!