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

Home

 
4D v19
VP Get names

VP Get names 


 

VP Get names ( vpAreaName {; scope} ) -> Function result 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area form object name
scope  Number in Target scope (default=current sheet)
Function result  Collection in Existing names in the defined scope

The VP Get names command returns a collection of all defined "names" in the current sheet or in the scope designated by the scope parameter.

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

You can define where to get the names in scope using either the sheet index (counting begins at 0) or the following constants:

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

 

The returned collection contains one object per name. The following object properties can be returned:

PropertyTypeDescription
result[ ].nameTextcell or range name
result[ ].formulaTextformula
result[ ].commentTextComment associated to the name

 

 Available properties depend on the type of the named element (named cell, named range, or named formula).

Example  

 C_COLLECTION($list)
 $list:=VP Get names("ViewProArea";2) //names in 3rd sheet



See also 

VP ADD FORMULA NAME
VP ADD RANGE NAME
VP Get formula by name
VP Name

 
PROPERTIES 

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

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)