Column::SetDigits

Contents

Description

Set the digit value for the numeric display mode.

Syntax

BOOL SetDigits( int iDigits )

Parameters

iDigits
[input] the number of digits.

Return

TRUE, set the digits successfully, FALSE, unsuccessful.

Examples

EX1

// Worksheet with at least one column must exist in project
void    Column_SetDigits_Ex1()
{
    WorksheetPage wp = Project.WorksheetPages(0);
    if(!wp)
        return;
    
    Worksheet wks(wp.GetName());
    BOOL b = wks.Columns(0).SetDigits(10);
    printf("Numeric Display digit value for column %s is %u\n", wks.Columns(0).GetName(), wks.Columns(0).GetDigits());
}

Remark

Set the digit value for the numeric display mode.

See Also

Column::GetDigitMode, Column::SetDigitMode, Column::GetDigits

header to Include

origin.h