Re: structure
- Posted by irvm at ellijay.com
Jul 26, 2001
On Thursday 26 July 2001 09:07, gwalters at sc.rr.com wrote:
> I have found the problem. There was a short item and EU thinks the length
> of the sequence is the length of the shortest element...
No, it doesn't. Eu reports the length of screen, (again, copied and
pasted from your e-mail, as 7. That's correct, there are seven
elements,
1.Customer No,
2.Name,
3.Addr1,
4.Addr2,
5.City,
6.State,
7.(y/n)
If you ask the length of screen[1], you'll get 12, and the length of
screen[7] is 3.
Regards,
Irv
> Can someone explain the structure here. EU says screen has a length of 3..
>
> global sequence screen
> screen = {}
> screen = append ( screen,{1,3,"Customer Number+ ",1,1,2,0,5,0,6,0,10})
> screen = append (screen,{ 10,4,"Name..: ",0,1,3,-99,40,0,0,0,20})
> screen = append (screen,{ 10,5,"Addr 1: ",0,1,4,-99,25,0,0,0,30})
> screen = append (screen,{ 10,6,"Addr 2: ",0,1,5,-99,25,0,0,0,40})
> screen = append (screen,{ 10,7,"City..: ",0,1,6,-99,20,0,0,0,50})
> screen = append (screen,{ 40,7,"State: ",0,1,7,99,2,0,0,0,60})
> screen = append (screen,{50,7,"(y,n)"}) <----- apparently a short item
> like this sets the length to 3 here...why I don't know!
> EU says that:
>
> screen [1][1] is 1
> screen [1][2] is 3
> screen [1][3] is "Customer Number+"
>
> but EU says screen[1][8] is out of bounds and I would have thought it would
> be 5!!
>
> thanks for any ensight...
>
|
Not Categorized, Please Help
|
|