Re: a different parse question

new topic     » goto parent     » topic index » view thread      » older message » newer message

spent memory wrote:
> 
> for i = 1 to length(Trianglearray) do
> 
>               for j = 1 to length(Trianglearray[i]) do
> 
>       >>>>    Trianglearray[i][j] = value(Trianglearray[i][j])   
> <<<<<   bad line
>                   Trianglearray[i][j] = Trianglearray[i][j][2] 
>               
>               end for
> 
> end for
> 
> --This is the error below
> 
> D:\EUPHORIA\include\get.e:46 in procedure get_ch() 
> type_check failure, ch is {48'0'} 
> 
> ... called from D:\EUPHORIA\include\get.e:306 in function value()  
>     string = {
>                {48'0'},
>                {49'1'},
>                {50'2'},
>                {48'0'},
>                {48'0'},
>                {48'0'}
>              }
> 
> im pretty sure all i need to do is strip this code down to {48,49,50,48,48,48}
> 
Yes, that's true, but rather than strip it down at this point, you need to fix
whatever is causing all the characters to individual sequences in the first
place.  So let's see the section of code where it reads in the array from the
file (I assume it is a file)...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu