From 5ac0151a65da911aa9d9522df375eacee133debd Mon Sep 17 00:00:00 2001 From: koldo Date: Mon, 8 Aug 2016 09:47:25 +0000 Subject: [PATCH] OfficeAutomation_demo_console: Added fast matrix retrieval operations. git-svn-id: svn://ultimatepp.org/upp/trunk@10157 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- .../OfficeAutomation_demo_console.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bazaar/OfficeAutomation_demo_console/OfficeAutomation_demo_console.cpp b/bazaar/OfficeAutomation_demo_console/OfficeAutomation_demo_console.cpp index 2a0114a02..bbbc2fd30 100644 --- a/bazaar/OfficeAutomation_demo_console/OfficeAutomation_demo_console.cpp +++ b/bazaar/OfficeAutomation_demo_console/OfficeAutomation_demo_console.cpp @@ -94,7 +94,11 @@ void TestSheetDetail(OfficeSheet &sheet) for (int x = 0; x < 200; ++x) data[y].Add(x*y); } - sheet.MatrixFill(1, 11, data); + sheet.MatrixSet(1, 11, data); + + data.Clear(); + sheet.MatrixGet(1, 11, 10, 10, data); + Puts(Format("Retrieved data from cell 5, 16: %s", AsString(data[5][5]))); sheet.SetValue(2, 2, "=A7*B5"); sheet.SetValue(3, 21, "Hello"); Puts("Cell(3, 21) = " + sheet.GetValue(3, 21).ToString());