This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
VP SET FORMULA

VP SET FORMULA 


 

VP SET FORMULA ( rangeObj ; formula {; formatPattern} ) 
Parameter Type   Description
rangeObj  Object in Range object
formula  Text in Formula or 4D method
formatPattern  Text in Format of formula

The VP SET FORMULA command assigns a specified formula or 4D method to a designated cell range.

In rangeObj, pass a range of the cell(s) (created for example with VP Cell or VP Column) whose value you want to specify. If rangeObj includes multiple cells, the formula specified will be linked in each cell.

The formula parameter specifies a formula or 4D method name to be assigned to the rangeObj. If a 4D method is used, it must be allowed with the SET ALLOWED METHODS command (see Project method references).

The optional formatPattern defines a pattern for the formula. For information on patterns and formatting characters, please refer to the 4D View Pro Cell Format section.

Note: You can remove the formula in rangeObj by replacing it with an empty string ("").

 VP SET FORMULA(VP Cell("ViewProArea";5;2);"SUM($A$1:$C$10)")

To remove the formula:

 VP SET FORMULA(VP Cell("ViewProArea";5;2);"")



See also 

4D View Pro Cell Format
VP Get formula
VP SET FORMULAS
VP SET VALUE

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language
Number: 9583

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)