Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example determines which rows are selected.

C++

short index;
long ret, array[100];
    ret = 0;
    index = 0;
    while(1)
        {
        ret = m_Spread.GetMultiSelItem(ret);
        if(ret==-1)
            break;
        array[index++] = ret;
        }

Visual Basic

dim index as integer
dim ret as long
dim array(100) as long
ret = 0
index = 0
Do
ret = fpSpread1.GetMultiSelItem(ret)
If ret = -1 then
    Exit Do
End If
array(index) = ret
index = index + 1
Loop

Copyright © GrapeCity, inc. All rights reserved.