Re: get()
- Posted by ck lester <cklester at YAHOO.COM> Aug 20, 2000
- 513 views
------=_NextPart_000_0025_01C00AAA.D642E440 charset="iso-8859-1" Asif, you need to RTFM (read the friendly manual)... include get.e object input atom value1, value2, value3, average, error_code --why so complex example?????? This is just establishing that the variables named above will hold atom values... not complex at all! [snip snip] while error_code != 0 do input = get(0) error_code = input[1] --What is this??? What is [1] end while You can figure this out by reading the information on get(). name = input[2] --What is this?? what is [2] Simple sequence subscripting. The code is setting the variable "name" to equal the second element of the sequence "input". RTFM regarding sequences. ------=_NextPart_000_0025_01C00AAA.D642E440 charset="iso-8859-1" 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=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><SPAN class=3D330582718-20082000><FONT face=3DArial color=3D#0000ff = size=3D2>Asif,=20 you need to RTFM (read the friendly manual)...</FONT></SPAN></DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px = solid; MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT = face=3DArial=20 size=3D2>include get.e</FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>object input <BR>atom value1, value2, = value3,=20 average,=20 = hy so=20 complex example??????<SPAN class=3D330582718-20082000><FONT=20 color=3D#0000ff> </FONT></SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D330582718-20082000></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D330582718-20082000><STRONG>This is=20 just establishing that the variables named above will hold atom = values... not=20 complex at all!</STRONG></SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20 class=3D330582718-20082000> </SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20 class=3D330582718-20082000><STRONG>[snip = snip]</STRONG></SPAN></FONT></DIV> <DIV><SPAN class=3D330582718-20082000></SPAN><FONT face=3DArial><FONT = size=3D2><SPAN=20 class=3D330582718-20082000><FONT=20 color=3D#0000ff> </FONT></SPAN></FONT></FONT></DIV> <DIV><FONT face=3DArial><FONT size=3D2><SPAN=20 class=3D330582718-20082000> </SPAN>while error_code !=3D 0=20 do<BR> input =3D = get(0)<BR> =20 error_code =3D input[1] --What is = this???=20 What is [1]<BR>end while<SPAN class=3D330582718-20082000><FONT=20 color=3D#0000ff> </FONT></SPAN></FONT></FONT></DIV> <DIV><FONT face=3DArial><FONT size=3D2><SPAN=20 class=3D330582718-20082000></SPAN></FONT></FONT> </DIV> <DIV><FONT face=3DArial><FONT size=3D2><SPAN=20 class=3D330582718-20082000><STRONG><FONT color=3D#0000ff>You = can figure this=20 out by reading the information on=20 get().</FONT></STRONG> </SPAN></FONT></FONT></DIV></BLOCKQUOTE> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px = solid; MARGIN-RIGHT: 0px"> <DIV><FONT face=3DArial><FONT size=3D2>name =3D = input[2] =20 --What is this?? what is [2]<SPAN=20 class=3D330582718-20082000><FONT=20 color=3D#0000ff> </FONT></SPAN></FONT></FONT></DIV> <DIV><FONT face=3DArial><FONT size=3D2><SPAN=20 class=3D330582718-20082000></SPAN></FONT></FONT> </DIV> <DIV><FONT face=3DArial><FONT size=3D2><SPAN=20 class=3D330582718-20082000><STRONG><FONT color=3D#0000ff>Simple = sequence=20 subscripting. The code is setting the variable "name" to equal the = second=20 element of the sequence "input". RTFM regarding=20 = </HTML> ------=_NextPart_000_0025_01C00AAA.D642E440--