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

  1. on docargades codigo
  2.   global zinstala, zejecuta, zruta, zutilactiva, zinstalac, zejecutac
  3.   set save to the itemDelimiter
  4.   set the itemDelimiter to "#"
  5.   set n to the number of items in field "contenidos"
  6.   set total to item value(codigo) + 1 of field "contenidos"
  7.   set the itemDelimiter to ">"
  8.   set the text of field "texto" to item 2 of total
  9.   set the foreColor of line 1 of field "texto" to 3
  10.   set zruta to 0
  11.   set zinstala to 0
  12.   set zejecuta to 0
  13.   set zinstalac to EMPTY
  14.   set zejecutac to EMPTY
  15.   if word 1 of item 3 of total = "RI" then
  16.     set zinstala to 1
  17.     set zinstalac to word 2 of item 3 of total
  18.   end if
  19.   if word 1 of item 4 of total = "RE" then
  20.     set zejecuta to 1
  21.     set zejecutac to word 2 of item 4 of total
  22.   end if
  23.   if word 1 of item 5 of total = "RO" then
  24.     set zruta to 1
  25.     set the text of field "ruta" to word 2 of item 5 of total
  26.   end if
  27.   set the itemDelimiter to save
  28. end
  29.