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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 63
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 48
Instead of examining the return value to determine if an error occurred, use TC_GetLastError()
directly after making any other call you want to monitor status for. The following chart lists the
possible return values from TC_GetLastError()
Error number Description
0 No Error
-10 Not enough memory to complete operation
-11 Findstring parameter is empty string
-12 Source string parameter is empty string
-13 Serial Number is Invalid
-14 Attempt to set position to a negative value
-16 Attempt to set case sensitivity to value other than 0 or 1
-17 The number of characters to wrap the lines is not positive
-18 The character position is white space
-19 The character position specified is greater than the length of the source string
TC_GetLastError( ) - Returns 0 for no error or a negative number if an error occurred. Returns
the status of the last TextCruncher call made. Returns status for all calls other than
TC_GetLastError itself or TC_ErrorCodeToString.
Example:
set foundList = FindAll(source,"madras")
set err = TC_GetLastError()
if err = 0 then
--- continue normal operation
else if err = -10 then
-- Inform user about error user can
Online Help
49
Vista de pagina 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 62 63

Comentarios a estos manuales

Sin comentarios