structure
- Posted by gwalters at sc.rr.com Jul 26, 2001
- 354 views
This is a multi-part message in MIME format. ------=_NextPart_000_003D_01C115B2.5D538080 charset="Windows-1252" 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... Can someone explain the structure here. EU says screen has a length of = 3.. global sequence screen screen =3D {} screen =3D append ( screen,{1,3,"Customer Number+ = ",1,1,2,0,5,0,6,0,10}) screen =3D append (screen,{ 10,4,"Name..: ",0,1,3,-99,40,0,0,0,20}) screen =3D append (screen,{ 10,5,"Addr 1: ",0,1,4,-99,25,0,0,0,30}) screen =3D append (screen,{ 10,6,"Addr 2: ",0,1,5,-99,25,0,0,0,40}) screen =3D append (screen,{ 10,7,"City..: ",0,1,6,-99,20,0,0,0,50}) screen =3D append (screen,{ 40,7,"State: ",0,1,7,99,2,0,0,0,60}) screen =3D 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... ------=_NextPart_000_003D_01C115B2.5D538080 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Dwindows-1252" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.3105.105" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>I have found the problem. There was a short item and = EU thinks=20 the length of the sequence is the length of the shortest = element...</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2> <DIV><FONT size=3D2>Can someone explain the structure here. EU = says screen=20 has a length of 3..</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>global sequence screen<BR> screen =3D = {}<BR> screen=20 =3D append ( screen,{1,3,"Customer Number+ = ",1,1,2,0,5,0,6,0,10})<BR> screen=20 =3D append (screen,{ 10,4,"Name..: ",0,1,3,-99,40,0,0,0,20})<BR> = screen =3D=20 append (screen,{ 10,5,"Addr 1: ",0,1,4,-99,25,0,0,0,30})<BR> = screen =3D=20 append (screen,{ 10,6,"Addr 2: ",0,1,5,-99,25,0,0,0,40})<BR> = screen =3D=20 append (screen,{ 10,7,"City..: ",0,1,6,-99,20,0,0,0,50})<BR> = screen =3D=20 append (screen,{ 40,7,"State: ",0,1,7,99,2,0,0,0,60})</FONT></DIV> <DIV> screen =3D append (screen,{50,7,"(y,n)"}) <----- = apparently a=20 short item like this sets the length to 3 here...why I don't know!</DIV> <DIV> </DIV> <DIV><FONT size=3D2>EU says that:</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2> screen [1][1] is 1</FONT></DIV> <DIV><FONT size=3D2> screen [1][2] is 3</FONT></DIV> <DIV><FONT size=3D2> screen [1][3] is "Customer=20 Number+"</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>but EU says screen[1][8] is out of bounds and I = would have=20 thought it would be 5!!</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>thanks for any ensight...</FONT></DIV> ------=_NextPart_000_003D_01C115B2.5D538080--