Home > Contents > Index >  
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

FTValList.setVal

Adds an FTVal object to an FTValList.

This method has two variants:


FTValList.setVal

Adds the FTVAL object to the FTValList with the associated key name.

Syntax

Parameters

key
Name of the key to add to the FTValList.

val
Value to assign to the value part of the name/value pair.

Returns

Zero (0) on success, and -1 on failure.

Example

This example uses setVal to build a filtered FTValList:


FTValList.setVal

Creates an FTVAL object, using the type and data object, to add to the FTValList with the associated key name.

Syntax

Parameters

key
Name of the key to add to the FTValList.

type
Type of the value. A list of valid types follows:

data
Value to assign to the value part of the name/value pair.

Returns

Zero (0) on success, -1 on failure.

 

   Home > Contents > Index >

Oracle JAVA Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.