Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example sets AllowColMove and AllowRowMove.

C++

// Set sheet count

spr->SetSheetCount(2);

// Set sheet to apply functions to

spr->SetSheet(1);

// Set allow move functions

spr->SetBool(SSB_ALLOWCOLMOVE, true);

spr->SetBool(SSB_ALLOWROWMOVE, true);

// The following example uses GetBool

BOOL b;

b = spr->GetBool(SSB_ALLOWCOLMOVE);

if (b == 1)

    {

        AfxMessageBox("The boolean has been set.");

    }

else if (b == 0)

    {

        AfxMessageBox("The boolean has not been set.");

    }

// The following also uses GetBool

BOOL b;

b = spr->GetBool(SSB_ALLOWROWMOVE);

if (b == 1)

    {

        AfxMessageBox("The boolean has been set.");

    }

else if (b == 0)

    {

        AfxMessageBox("The boolean has not been set.");

    }

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.