Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Merging cells from two lines

From: john:thousand-hills at: 24-Aug-2001 23:07

I have an array that spits out from Oracle in an ASCII Tab Separated Values. I have greatly shortened it here, lines 5 and 6. MMEA LAMA GUAD GUAD SHER BATT CONG WMCA Forming an HTML file, it comes out like this: <TR><TD>MMEA</TD><TD>LAMA</TD><TD>GUAD</TD><TD>GUAD</TD></TR> <TR><TD>SHER</TD><TD>BATT</TD><TD>CONG</TD><TD>WMCA</TD></TR> Using this code: s62: pick data 62 replace/all s62 tab "</CENTER></TD><TD><CENTER>" s62: rejoin [ "<tr bordercolor=gold border=1 bgcolor=white><TD><CENTER>" s62 </CENTER></TD></tr> ] s63: pick data 63 replace/all s63 tab "</CENTER></TD><TD><CENTER>" s63: rejoin [ "<tr bordercolor=gold border=1 bgcolor=white><TD><CENTER>" s63 </CENTER></TD></tr> ] I need to merge the two lines together by words in order: <TR><TD>MMEA SHER</TD><TD>LAMA BATT</TD><TD>GUAD CONG</TD><TD>GUAD WMCA</TD></TR> Any help?