Steinberg WaveLab Elements 7 Manual Página 88

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 428
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 87
74 WaveLab Concepts
//Create an empty array
var a = new Array();
//Add some items to it
a.push("first array item");
a.push("next array item", "last array item");
//Print them out in the Log window
logWindow.printInfo(a.toString());
//Call the Array's reverse function
a.reverse();
//View the results in the Log window
logWindow.printInfo(a.toString());
String Objects
Functions
toString()
valueOf()
charAt(pos)
charCodeAt(pos)
concat([string1 [, string2 [, ...]]])
indexOf(searchString ,position)
lastIndexOf(searchString, position)
localeCompare(that)
match(regexp)
replace(searchValue, replaceValue)
search(regexp)
slice(start, end)
split(separator, limit)
substring(start, end)
toLowerCase()
toLocaleLowerCase()
toUpperCase()
toLocaleUpperCase()
Example:
//Create a string variable
var str = new String("WaveLab is a powerful editing tool");
//Make it all upper case
var capsStr = str.toUpperCase();
//View the results in the Log window
logWindow.printInfo(capsStr);
WaveLab 7
Vista de página 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 427 428

Comentários a estes Manuais

Sem comentários