home *** CD-ROM | disk | FTP | other *** search
/ MASPC 1 / MASPC_1.iso / CursoWordI / ABUSCA.DXR / 00069.ls < prev    next >
Encoding:
Text File  |  1998-07-20  |  806 b   |  23 lines

  1. on ProcessT2 firstMember, source
  2.   set CurrLine to 0
  3.   set currMember to the number of member firstMember
  4.   set total to the number of lines in field source
  5.   repeat with i = 1 to total
  6.     set aux to line i of field source
  7.     if chars(aux, 1, 2) = "TT" then
  8.       if the type of member currMember = #field then
  9.         set nLin to the number of lines in field currMember
  10.         if nLin > 1 then
  11.           set the text of field currMember to line 1 to nLin - 1 of field currMember
  12.         end if
  13.       end if
  14.       set currMember to currMember + 1
  15.       set currMemberName to chars(aux, 1, 5)
  16.       set the name of member currMember to currMemberName
  17.       set the text of field currMemberName to EMPTY
  18.       next repeat
  19.     end if
  20.     put aux & numToChar(13) after field currMemberName
  21.   end repeat
  22. end
  23.