Hello, I'm writing a function that utilizes FileWriteArray to simplify the body of my code as my program will need to utitlize this function serveral times.
I am getting the errors:
"bidArray - parameter conversion not allowed"
"bidArray - invalid array access"
The error is very likely related to the array argument in FileWriteArray and it may be related to the datatype as I'm trying to pass it as a string.
Is there a way to simply pass the name of the array I'm trying to write to file to a function?
Thank you
1.you need to set the arrayName as => arrayName[] to indicate it expects an array
2.you need to place a & before the name to indicate its a reference &arrayName[]
void writeFile(string name, string &arrayName[])
void writeFile(string name, string &arrayName[])
The array passed is a double.
The array passed is a double.
3.you need to pass the correct array type
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello, I'm writing a function that utilizes FileWriteArray to simplify the body of my code as my program will need to utitlize this function serveral times.
I am getting the errors:
"bidArray - parameter conversion not allowed"
"bidArray - invalid array access"
The error is very likely related to the array argument in FileWriteArray and it may be related to the datatype as I'm trying to pass it as a string.
Is there a way to simply pass the name of the array I'm trying to write to file to a function?
Thank you