Re: structure
- Posted by Derek Parnell <ddparnell at bigpond.com> Jul 26, 2001
- 345 views
This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C11629.8E9E6520 charset="Windows-1252" The length of the 7th screen element is 3. If I do a '? length(screen)' = I get 7. Are you sure you are testing the last element and not the = first? ----- Original Message -----=20 From: gwalters at sc.rr.com=20 To: EUforum=20 Sent: Thursday, July 26, 2001 11:07 PM Subject: structure 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... This email was sent to: ddparnell at bigpond.com ------=_NextPart_000_0014_01C11629.8E9E6520 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 http-equiv=3DContent-Type content=3D"text/html; = charset=3Dwindows-1252"> <META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>The length of the 7th screen element is = 3. If I do=20 a '? length(screen)' I get 7. Are you sure you are testing the last = element and=20 not the first?</FONT></DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A title=3Dgwalters at sc.rr.com=20 href=3D"mailto:gwalters at sc.rr.com">gwalters at sc.rr.com</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A = title=3DEUforum at topica.com=20 href=3D"mailto:EUforum at topica.com">EUforum</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, July 26, 2001 = 11:07=20 PM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> structure</DIV> <A = <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> =20 screen =3D append ( screen,{1,3,"Customer Number+=20 ",1,1,2,0,5,0,6,0,10})<BR> screen =3D append (screen,{ = 10,4,"Name..:=20 ",0,1,3,-99,40,0,0,0,20})<BR> screen =3D append (screen,{ = 10,5,"Addr 1:=20 ",0,1,4,-99,25,0,0,0,30})<BR> screen =3D append (screen,{ = 10,6,"Addr 2:=20 ",0,1,5,-99,25,0,0,0,40})<BR> screen =3D append (screen,{ = 10,7,"City..:=20 ",0,1,6,-99,20,0,0,0,50})<BR> screen =3D append (screen,{ = 40,7,"State:=20 ",0,1,7,99,2,0,0,0,60})</FONT></DIV> <DIV> screen =3D append (screen,{50,7,"(y,n)"}) <----- = apparently=20 a 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> = <DIV> </DIV></FONT></DIV><PRE>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= <A = href=3D"http://topica.com/u/?b1dd66.${encoded_sub_id}">http://topica.com/= u/?b1dd66.b2mL5y</A> Or send an email To: EUforum-unsubscribe at topica.com This email was sent to: ddparnell at bigpond.com <A = ------=_NextPart_000_0014_01C11629.8E9E6520--