SectionCount
Description
Counts the number of regions in a chart.
Parameters
| Parameter | Description |
|---|---|
|
chart=value |
The index for the chart image on the page. |
|
ret=&variable |
The variable to store the return value. The Chart.SectionCount returns the real value (not zero-based). If you are using this variable in combination with zero-based indexes, such as a For loop, you may need to subtract 1. |
Example
This example illustrates using the SectionCount action with a loop to retrieve the text for each section.
| Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|
|
Browser |
Start_Login |
|
|
|
|
Browser |
FrameSet |
TargetContent |
|
|
|
Page |
Prompt |
QE_CHART_MENU.QE_CHART2.GBL |
urltype=default |
update |
|
Text |
Set_Value |
Name=QE_CHART_RECORD_QE_CHART_CATEGORY |
|
CAR SALES |
|
Page |
PromptOk |
|
|
|
|
Chart |
SectionCount |
chart=0 |
ret=&chart_count |
|
|
Log |
Message |
ChartCount => &chart_count |
|
|
|
Loop |
For |
&var=0 to Subtract(&chart_count|1) |
|
|
|
Chart |
GetText |
chart=0 |
idx=&var;ret=&chart_value |
|
|
Log |
Message |
ChartValue => &chart_value |
|
|
|
Loop |
Next |
|
|
|