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

Home

 
4D v19
VP Name

VP Name 


 

VP Name ( vpAreaName ; rangeName {; scope} ) -> Function result 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area form object name
rangeName  Text in Existing range name
scope  Longint in Range location (current sheet if omitted)
Function result  Object in Range object of name

The VP Name command returns a new range object referencing a named range.

In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.

The rangeName parameter specifies an existing named cell range.

In the optional scope parameter, you can designate a specific spreadsheet where rangeName is defined. If omitted, the current spreadsheet is used by default. You can explicitly select the current spreadsheet or the entire workbook with the following constants:

 

Constant Type Value Comment
vk current sheet Longint -1 Designates current sheet of the 4D View Pro area (default)
vk workbook Longint -2 Designates the entire workbook of the 4D View Pro area.

Example  

You want to give a value to the "Total" named range.

  // name the B5 cell as Total
 VP ADD RANGE NAME(VP Cell("ViewProArea";1;4);"Total")
 $name:=VP Name("ViewProArea";" Total")
 VP SET NUM VALUE($name;285;"$#,###.00")



See also 

4D View Pro Range Object Properties
VP ADD RANGE NAME
VP All
VP Cell
VP Cells
VP Column
VP Combine ranges
VP Get names
VP REMOVE NAME
VP Row

 
PROPERTIES 

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

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)