You are here: Symbol Reference > StatTools Namespace > Classes > TMtxAnova Class > TMtxAnova Methods > TMtxAnova.WriteResultToGrid Method
Stats Master VCL
ContentsIndex
Example

In this example we write the ANOVA table to StringGrid1. This is the same as connecting ResultDest property to StringGrid1. DestGrid dimensions are adjusted automatically.

MtxANOVA1.Data.SetIt(6,2,false,[1,2,
                            2,3,
                            5,7,
                            12,1,
                            5,8,
                            3,8]);
MtxANOVA1.FmtString := '0.00'; // 2 digits
MtxANOVA1.IsAnova1 := true; // one-way ANOVA
MtxANOVA1.Recalc;
MtxANOVA1.WriteResultToGrid(StringGrid1);
MtxAnova1->Data->SetIt(6,2,false,OPENARRAY(double,(1,2,
                            2,3,
                            5,7,
                            12,1,
                            5,8,
                            3,8)));
MtxAnova1->FmtString = "0.00"; // 2 digits
MtxAnova1->IsAnova1 = true; // one-way ANOVA
MtxAnova1->Recalc();
MtxAnova1->WriteResultToGrid(StringGrid1);
Copyright (c) 1999-2025 by Dew Research. All rights reserved.