lotusscript - how to compare two rich text fields -
i want script compare content of 2 richtext field named body in form 1 , body1 in form2. have created 2 forms whcich contain richtext type field , created categerioze view , created button named compare in view compare contain of these 2 fieds , display in message.
sub click(source button) dim session notessession dim db notesdatabase dim dc notesdocumentcollection dim doc, doc1 notesdocument dim body, body1 variant dim view notesview dim rtitem notesrichtextitem set session = new notessession set db = session.currentdatabase set dc = db.unprocesseddocuments set doc = dc.getfirstdocument set doc1=dc.getnextdocument(doc) body = doc.getitemvalue( "body" ) msgbox body( 0 ), ,"richtext field of first form" body1=doc1.getitemvalue("body1") msgbox body1( 0 ) ,, "rich text field of second form" 'if body.value=body1.value msgbox"both same" 'end if msgbox"both different" end sub
you have manually. use search-functionality explained here:
http://msdn.microsoft.com/en-us/library/bb787877%28vs.85%29.aspx#re_operations
search entire contents opf box1 in box2. if match, check if match content of box2. if so, contents same.
Comments
Post a Comment