comapring seqeunces
- Posted by Paul Kerslake <paulk at UNISERVE.COM> Oct 21, 2000
- 371 views
------=_NextPart_000_0007_01C03B89.0E3226E0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there a way to compare 2 objects .like so: object pfsong,ledzepsong pfsong=3D{"money, it's a gas", "grab that cash ", "with both hands " , "and make a stash"} =20 ledzepsong=3D{"theres a lady in short", "all that glitters is gold", "and she's buying a ", "stairway to heaven....." compare(pfsong,ledzepsong) What I really looking for is to check if an object that is more than one = line long is "empty" or not, something like: if pfsong=3D0 then puts(1,"nothing in it") end if Thanksssss AuRevioior ----->Thomas --------/\=3D=3D=3D all you create and all you destroy, all that you light and evr'yone you = fight, and everything under the suin is in tune, but the sun is = ecllipsed by the moon.............. ------=_NextPart_000_0007_01C03B89.0E3226E0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Is there a way to compare = 2 objects .like=20 so:</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>object pfsong,ledzepsong</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>pfsong=3D{"money, it's a = gas",</FONT></DIV> <DIV><FONT face=3DArial=20 b that=20 <DIV><FONT face=3DArial=20 h both=20 hands " ,</FONT></DIV> <DIV><FONT face=3DArial=20 size=3D2> "and = make a=20 stash"}<BR> </FONT></DIV> <DIV><FONT face=3DArial size=3D2>ledzepsong=3D{"theres a lady in = short",</FONT></DIV> <DIV><FONT face=3DArial size=3D2> =20 "all that = glitters is=20 gold",</FONT></DIV> <DIV><FONT face=3DArial size=3D2> =20 "and she's = buying=20 a ",</FONT></DIV> <DIV><FONT face=3DArial size=3D2> =20 "stairway to=20 heaven....."</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>compare(pfsong,ledzepsong)</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>What I really looking for is to check = if an object=20 that is more than one line long is "empty" or not, something = like:</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>if pfsong=3D0 then</FONT></DIV> <DIV><FONT face=3DArial size=3D2>puts(1,"nothing in it")</FONT></DIV> <DIV><FONT face=3DArial size=3D2>end if</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanksssss</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>AuRevioior</FONT></DIV> <DIV><FONT face=3DArial size=3D2>----->Thomas</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>--------/\=3D=3D=3D</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2><EM>all you create and all you destroy, = all that=20 you light and evr'yone you fight, and everything under the suin is in = tune, but=20 the sun is ecllipsed by the = ------=_NextPart_000_0007_01C03B89.0E3226E0--