I have a integer variable to capture a task state - 0 = not started, 1 = idle, 2 = active, ...
I'd like to do something such as this:
Code: Select all
const task_state_verbose(16) = {
"Not Started",
"Idle",
"Active",
"Paused"
}
...
for i = 0 to _task_count
Print "Task ";i;" TaskState: ","",task_state(i);" - ";task_state_verbose(task_state(i))
next i
I am just wondering if there is such a thing as constant arrays of strings given ARMBasic has evolved quite a bit over the last 10 years.