1. Ambigous error message

Hi

if length(till_list) > 0 then 
        for i = 1 to length(till_list) do 
                till_list[i][1] = strtoval(till_list[i][1]) 
                till_list[i][2] = strtoval(till_list[i][2]) 
                till_list[i][3] = strtoval(till_list[i][3]) 
                till_list[i][6] = strtoval(till_list[i][6]) 
                till_list[i][7] = strtoval(till_list[i][7]) 
                till_list[i][10] = strtoval(till_list[i][10]) 
        end for 
        --now don't need to worry about strtovalling them 
end if 
 
--can close off the month end for notes and till here, as have extracted all the data 
time_seq = nowTime 
 

produced

<0068>:: expected a variable, constant or enum, not a function 
                till_list[i][10] = strtoval(till_list[i][10]) 
 Press any key to continue... 

nowTime is a function in Datetime.e, not a declared variable. either local or global.

I spent a while searching up from that error point, until it dawned on me to look down.

Is it possible to flag that undeclared variable as the source of the error, rather than suggesting there's an error in the line above?

Chris

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu