MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Manual de usuario Pagina 28

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 63
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 27
GetLineOfCharPosition(sourceString,characterNumber) - where sourceString is the string to
search in and characterNumber is the integer character position in the string. Returns an integer
line number in sourceString of line containing the specified character position or 0 if no line
contains the character position or if there was an error. Returns 0 if the character in the specified
position is a line ending character - RETURN (13), LINEFEED (10). Converts the character
position returned by one of the Finds to a line number in the text chunk.
Example:
on showContext fieldName,theWord,contextFieldName
-- Finds the line in a field a word appears in
-- and displays the whole line of text in another
-- field
--
set charPos = FindNext(field fieldName,theWord)
if TC_GetLastError() = 0 then
set lineNum = GetLineOfCharPosition(field fieldName,charPos)
if lineNum > 0 then
put line lineNum of field fieldName into field contextFieldName
end if
end if
end
GetItemOfCharPosition(sourceString,characterNumber,itemDelimiterASCIICode) - where
sourceString is the string to search in, characterNumber is the integer character position in the
string and itemDelimiterASCIICode is the ASCII value (charToNum) of the character to use for
the item delimiter. Returns an integer item number in sourceString of item containing the
specified character position or 0 if no item contains the character position or if there was an error.
Converts the character position returned by one of the Finds to an item number in the text chunk.
Example:
on getDataFieldContainingWord dataRecord,theWord
Online Help
28
Vista de pagina 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 62 63

Comentarios a estos manuales

Sin comentarios