RecordSet.getColumnNames

Availability

Usage

RecordSetObject.getColumnNames()

Parameters

None.

Return value

An array of strings. The array is either the same array that you passed into the RecordSet constructor, or the equivalent array for an application server-associated RecordSet object.

Description

Method. Returns the names of all the columns of a RecordSet object as an array of strings.

Example

The following example demonstrates the getColumnNames method:

#include "NetServices.as"
var productList = new RecordSet(["ProductName", "Price", "Color"]);
var titles = productList.getColumnNames();
_root.firstColumnTitle.text = titles[0]; 
_root.secondColumnTitle.text = titles[1]; 

See also

Constructor for RecordSet

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/asDict31.htm