Trying to set up an array, but get "constant expression required" error with bars_qty highlighted on the last line. Any idea what's causing this?
![]()
Please Login or Register to view this content.
Trying to set up an array, but get "constant expression required" error with bars_qty highlighted on the last line. Any idea what's causing this?
![]()
Please Login or Register to view this content.
You either quit or become really good at it. There are no other choices.
Looks like you can't use a variable in a Dim statement.
See if
works instead.![]()
Please Login or Register to view this content.
Last edited by MarvinP; 04-27-2017 at 11:58 AM.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Hi,
You can only resize a dynamic array using a variable. So either use a constant thus
or a dynamic array![]()
Please Login or Register to view this content.
The initial Dim statement is optional here.![]()
Please Login or Register to view this content.
Don
Please remember to mark your thread 'Solved' when appropriate.
You're welcome and thank you both for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks