MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Manual do Utilizador Página 56

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 63
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 55
TEXTCRUNCHER XTRA HELP: LINGO TIPS FOR INCREASING SPEED
Operations on text chunks are much faster if you put the contents of the field or text
member into a string variable and operate on that rather than on the field or text
member itself. For example:
on oneMethod
SetPosition(0)
repeat while firstChar > 0
set firstChar = FindNext(field "someField","cat")
if char(firstChar + 3) of field "someField" = " " then
ReplaceNext(field "someField","cat","dog")
end if
end repeat
end
on fasterMethod
set temp = field "someField"
SetPosition(0)
repeat while firstChar > 0
set firstChar = FindNext(temp,"cat")
if char(firstChar + 3) of temp = " " then
ReplaceNext(temp,"cat","dog")
end if
end repeat
put temp into field "someField"
Online Help
56
Vista de página 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 62 63

Comentários a estes Manuais

Sem comentários