Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Steve Morton: "First let me thank you for making this application Free. Best deal I have ever see for what it does".
Rickey Steinke: "Folks, I wanted to drop a line and give you a fanatic thank you. I have a project due for my computer application course and without PHP Generator I never would have gotten it done with the professional results your product produced. My sincerest gratitude to each and every team member who brought this program to light".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

getCaption

Returns the caption of a certain control.

 

Signature:

function getCaption()

 

Let's see the difference between getValue() and getCaption() functions. Assume we we have a Radio group editor with the following properties:

 

 

... and the second item is selected:

 

 

The following code shows the difference between these functions:

 

var value = editors['color'].getValue(); // value == 2

var caption =  editors['color'].getCaption(); // caption == 'yellow'

 

See also: addItem, removeItem, getItemCount, clear



Prev Return to chapter overview Next