SQLite PHP Generator 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 |