3 //Today's exsan.h CODE
4 enum class varColsFrom {
5 vTcpIp = 1, vTcpIp0, vTcpIp1, vTcpIp2, vTcpIp3, vTcpIp4, vName, vMale, vIndex, vAge, vValue, vGrade
6 };
7
8 enum class varColsTo {
9 vIndex = 1, vName, vMale, vAge, vValue, vGrade, vTcpIp, vTcpIp0, vTcpIp1, vTcpIp2, vTcpIp3, vTcpIp4
10 };
11 varColsTo vColTo;
12 varColsFrom vColFrom;
13 CELLPTR ptr, ptr2;
14 for (unsigned short thisRow = 1; thisRow <= net->get_rows_in_page(ppString, 'w'); thisRow++) {
15 ptr = net->point_to(net, ppString, thisRow, 1, 'w');
16 for (int thisCol = vTcpIp; thisCol <= vGrade; thisCol++) {
17 vColFrom = static_cast(thisCol);
18 switch (vColFrom) {
19 case varColsFrom::vTcpIp:
20 ptr2 = net->point_to(net, ppStringOut, thisRow, (unsigned short)varColsTo::vTcpIp, 'w');
21 ptr2->set_string(ppStringOut, ptr->get_string(ppString));
22 break;
23
24 case varColsFrom::vTcpIp0:
25 ptr2 = net->point_to(net, ppStringOut, thisRow, (unsigned short)varColsTo::vTcpIp0, 'w');
26 ptr2->set_string(ppStringOut, ptr->get_string(ppString));
27 break;
30 case varColsFrom::vAge:
31 ptr2 = net->point_to(net, ppStringOut, thisRow, (unsigned short)varColsTo::vAge, 'w');
32 ptr2->set_string(ppStringOut, ptr->get_string(ppString));
33 break;
34 /// more code here for the rest of the template
35 case varColsFrom::vIndex:
36 ptr2 = net->point_to(net, ppStringOut, thisRow, (unsigned short)varColsTo::vIndex, 'w');
37 ptr2->set_string(ppStringOut, ptr->get_string(ppString));
38 break;
39 }
40 ptr = ptr->get_next_ptr();
41 }
42 }
43
44
301 Re Ordering Template From:
302 TcpIp , TcpIp0, TcpIp1, TcpIp2, TcpIp3, TcpIp4, Name, Male, Index, Age, Value, Grade
303 WORKSHEET 1 A[12, 12] STRING
304 A B C D E F G H I J K L
305 >------------------------------------<
306 1:194.73.69.98.6 194 73 69 98 6 Liam 1 1 48 35.78 C
307 2: 199.58.0.67.7 199 58 0 67 7 Noah 1 2 8 48.93 A
308 3:195.50.47.34.0 195 50 47 34 0 Oliver 1 3 63 59.46 A
309 4:196.61.94.55.8 196 61 94 55 8 Elijah 1 4 99 77.18 A
310 5:197.42.13.31.4 197 42 13 31 4 James 1 5 37 12.65 E
311 6: 197.58.1.7.2 197 58 1 7 2 William 1 6 15 80.97 C
312 7: 195.2.68.88.2 195 2 68 88 2 Benie 1 7 50 18.14 C
313 8:194.82.93.40.1 194 82 93 40 1 Lucas 1 8 15 70.94 E
314 9:198.81.35.94.5 198 81 35 94 5 Henry 1 9 80 66.71 C
315 10: 195.31.9.72.0 195 31 9 72 0 Theodor 1 10 5 66.08 E
316 11:193.68.12.65.9 193 68 12 65 9 Olivia 0 12 73 17.88 E
317 12:197.63.36.98.7 197 63 36 98 7 Emma 0 13 52 42.78 A
318 <------------------------------------>
319
320 Re Ordering Template To:
321 Index , Name, Male, Age, Value, Grade, TcpIp, TcpIp0, TcpIp1, TcpIp2, TcpIp3, TcpIp4
322 WORKSHEET 0 @[12, 12] STRING
323 A B C D E F G H I J K L
324 >------------------------------------<
325 1: 1 Liam 1 48 35.78 C 194.73.69.98.6 194 73 69 98 6
326 2: 2 Noah 1 8 48.93 A 199.58.0.67.7 199 58 0 67 7
327 3: 3 Oliver 1 63 59.46 A 195.50.47.34.0 195 50 47 34 0
328 4: 4 Elijah 1 99 77.18 A 196.61.94.55.8 196 61 94 55 8
329 5: 5 James 1 37 12.65 E 197.42.13.31.4 197 42 13 31 4
330 6: 6 William 1 15 80.97 C 197.58.1.7.2 197 58 1 7 2
331 7: 7 Benie 1 50 18.14 C 195.2.68.88.2 195 2 68 88 2
332 8: 8 Lucas 1 15 70.94 E 194.82.93.40.1 194 82 93 40 1
333 9: 9 Henry 1 80 66.71 C 198.81.35.94.5 198 81 35 94 5
334 10:10 Theodor 1 5 66.08 E 195.31.9.72.0 195 31 9 72 0
335 11:12 Olivia 0 73 17.88 E 193.68.12.65.9 193 68 12 65 9
336 12:13 Emma 0 52 42.78 A 197.63.36.98.7 197 63 36 98 7
337 <------------------------------------>
338