Saltar para o conteúdo principal
Versão: 20 R5 BETA

VP SET NUM VALUE

VP SET NUM VALUE ( rangeObj : Object ; numberValue : Number { ; formatPattern : Text } )

ParâmetroTipoDescrição
rangeObjObject->Objeto intervalo
numberValueNumber->Valor do número a definir
formatPatternText->Formato do valor

Descrição

The VP SET NUM VALUE command assigns a specified numeric value to a designated cell range.

Em rangeObj, passe um intervalo de células (criado, por exemplo, com VP Cell ou VP Column) cujo valor você deseja especificar. If rangeObj includes multiple cells, the value specified will be repeated in each cell.

The numberValue parameter specifies a numeric value to be assigned to the rangeObj.

The optional formatPattern defines a pattern for the numberValue parameter.

Exemplo

//Set the cell value to 2
VP SET NUM VALUE(VP Cell("ViewProArea";3;2);2)

//Set the cell value and format it in dollars
VP SET NUM VALUE(VP Cell("ViewProArea";3;2);12.356;"_($* #,##0.00_)")

Veja também

Formato de célula
VP SET VALUE