1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<fpdoc-descriptions>
<package name="fcl">
<!--
====================================================================
db
====================================================================
-->
<module name="db">
<short>Database access layer</short>
<descr>
The <file>db</file> unit provides the basis for all database access
mechanisms. It introduces abstract classes, on which all database
access mechanisms are based: <link id="TDataset"/> representing a
set of records from a database, <link id="TField"/> which represents
the contents of a field in a record, <link id="TDatasource"/> which
acts as an event distributor on behalf of a dataset and <link id="TParams"/>
which can be used to parameterize queries. The databases connections
themselves are abstracted in the <link id="TDatabase"/> class.
</descr>
<!-- constant Visibility: default
Declaration: dsMaxBufferCount = MAXINT div 8 -->
<element name="dsMaxBufferCount">
<short>Maximum data buffers count for dataset</short>
</element>
<!-- constant Visibility: default
Declaration: dsMaxStringSize = 8192 -->
<element name="dsMaxStringSize">
<short>Maximum size of string fields</short>
</element>
<!-- constant Visibility: default
Declaration: YesNoChars : Array[Boolean] of Char = ('N','Y' ) -->
<element name="YesNoChars">
<short>Array of characters mapping a boolean to Y/N</short>
</element>
<!-- constant Visibility: default
Declaration: SQLDelimiterCharacters = [';',',',' ','(',')',#13,#10,#9] -->
<element name="SQLDelimiterCharacters">
<short>SQL statement delimiter token characters</short>
</element>
<!-- alias type Visibility: default
Declaration: LargeInt = Int64 -->
<element name="LargeInt">
<short>Large (64-bit) integer</short>
</element>
<!-- pointer type Visibility: default
Declaration: PLargeInt = ^LargeInt -->
<element name="PLargeInt">
<short>Pointer to Large (64-bit) integer</short>
</element>
<!-- array type Visibility: default
Declaration: TStringFieldBuffer = Array[0..dsMaxStringSize] of Char -->
<element name="TStringFieldBuffer">
<short>Type to access string field content buffers as an array of characters</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TDataSetState = (dsInactive,dsBrowse,dsEdit,dsInsert,dsSetKey,
dsCalcFields,dsFilter,dsNewValue,dsOldValue,dsCurValue,
dsBlockRead,dsInternalCalc,dsOpening) -->
<element name="TDataSetState">
<short>Current state of the dataset</short>
<descr>
<p>
<var>TDataSetState</var> describes the current state of the dataset. During
it's lifetime, the dataset's state is described by these enumerated values.
</p>
<p>
Some state are not used in the default TDataset implementation, and are only
used by certain descendents.
</p>
</descr>
<seealso>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: dsInactive -->
<element name="TDataSetState.dsInactive">
<short>The dataset is not active. No data is available.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsBrowse -->
<element name="TDataSetState.dsBrowse">
<short>The dataset is active, and the cursor can be used to navigate the data.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsEdit -->
<element name="TDataSetState.dsEdit">
<short>The dataset is in editing mode: the current record can be modified.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsInsert -->
<element name="TDataSetState.dsInsert">
<short>The dataset is in insert mode: the current record is a new record
which can be edited.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsSetKey -->
<element name="TDataSetState.dsSetKey">
<short>The dataset is calculating the primary key.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsCalcFields -->
<element name="TDataSetState.dsCalcFields">
<short>The dataset is calculating it's calculated fields.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsFilter -->
<element name="TDataSetState.dsFilter">
<short>The dataset is filtering records.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsNewValue -->
<element name="TDataSetState.dsNewValue">
<short>The dataset is showing the new values of a record.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsOldValue -->
<element name="TDataSetState.dsOldValue">
<short>The dataset is showing the old values of a record.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsCurValue -->
<element name="TDataSetState.dsCurValue">
<short>The dataset is showing the current values of a record.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsBlockRead -->
<element name="TDataSetState.dsBlockRead">
<short>The dataset is open, but no events are transferred to datasources.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsInternalCalc -->
<element name="TDataSetState.dsInternalCalc">
<short>The dataset is calculating it's internally calculated fields.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dsOpening -->
<element name="TDataSetState.dsOpening">
<short>The dataset is currently opening, but is not yet completely open.</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TDataEvent = (deFieldChange,deRecordChange,deDataSetChange,
deDataSetScroll,deLayoutChange,deUpdateRecord,
deUpdateState,deCheckBrowseMode,dePropertyChange,
deFieldListChange,deFocusControl,deParentScroll,
deConnectChange,deReconcileError,deDisabledStateChange) -->
<element name="TDataEvent">
<short>Various events that are sent to datasources</short>
<descr>
<var>TDataEvent</var> describes the various events that can be sent to
<link id="TDatasource"/> instances connected to a <link id="TDataset"/>
instance.
</descr>
<seealso>
<link id="TDatasource"/>
<link id="TDataset"/>
<link id="TDataLink"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: deFieldChange -->
<element name="TDataEvent.deFieldChange">
<short>A field value changed</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deRecordChange -->
<element name="TDataEvent.deRecordChange">
<short>The current record changed</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deDataSetChange -->
<element name="TDataEvent.deDataSetChange">
<short>The dataset property changed</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deDataSetScroll -->
<element name="TDataEvent.deDataSetScroll">
<short>The dataset scrolled to another record</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deLayoutChange -->
<element name="TDataEvent.deLayoutChange">
<short>The layout properties of one of the fields changed</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deUpdateRecord -->
<element name="TDataEvent.deUpdateRecord">
<short>The record is being updated</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deUpdateState -->
<element name="TDataEvent.deUpdateState">
<short>The dataset state is updated</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deCheckBrowseMode -->
<element name="TDataEvent.deCheckBrowseMode">
<short>The browse mode is being checked</short>
</element>
<!-- enumeration value Visibility: default
Declaration: dePropertyChange -->
<element name="TDataEvent.dePropertyChange">
<short>Unused</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deFieldListChange -->
<element name="TDataEvent.deFieldListChange">
<short>Event sent when the list of fields of a dataset changes</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deFocusControl -->
<element name="TDataEvent.deFocusControl">
<short>Event sent whenever a control connected to a field should be focused</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deParentScroll -->
<element name="TDataEvent.deParentScroll">
<short>Unused</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deConnectChange -->
<element name="TDataEvent.deConnectChange">
<short>Unused</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deReconcileError -->
<element name="TDataEvent.deReconcileError">
<short>Unused</short>
</element>
<!-- enumeration value Visibility: default
Declaration: deDisabledStateChange -->
<element name="TDataEvent.deDisabledStateChange">
<short>Unused</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TUpdateStatus = (usUnmodified,usModified,usInserted,usDeleted) -->
<element name="TUpdateStatus">
<short>Record update status</short>
<descr>
<var>TUpdateStatus</var> determines the current state of the record buffer,
if updates have not yet been applied to the database.
</descr>
<seealso>
<link id="TDataset.UpdateStatus"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: usUnmodified -->
<element name="TUpdateStatus.usUnmodified">
<short>Record is unmodified</short>
</element>
<!-- enumeration value Visibility: default
Declaration: usModified -->
<element name="TUpdateStatus.usModified">
<short>Record exists in the database but is locally modified</short>
</element>
<!-- enumeration value Visibility: default
Declaration: usInserted -->
<element name="TUpdateStatus.usInserted">
<short>Record does not yet exist in the database, but is locally inserted</short>
</element>
<!-- enumeration value Visibility: default
Declaration: usDeleted -->
<element name="TUpdateStatus.usDeleted">
<short>Record exists in the database, but is locally deleted.</short>
</element>
<!-- set type Visibility: default
Declaration: TUpdateStatusSet= Set of (usUnmodified,usModified,usInserted,usDeleted) -->
<element name="TUpdateStatusSet">
<short>Set of update states</short>
<descr>
<var>TUpdateStatusSet</var> is a set of <link id="TUpdateStatus"/> values.
</descr>
</element>
<!-- enumeration type Visibility: default
Declaration: TUpdateMode = (upWhereAll,upWhereChanged,upWhereKeyOnly) -->
<element name="TUpdateMode">
<short>Update mode</short>
<descr>
<var>TUpdateMode</var> determines how the <var>WHERE</var> clause of update queries
for SQL databases should be constructed.
</descr>
<seealso>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: upWhereAll -->
<element name="TUpdateMode.upWhereAll">
<short>Use all old field values</short>
</element>
<!-- enumeration value Visibility: default
Declaration: upWhereChanged -->
<element name="TUpdateMode.upWhereChanged">
<short>Use only old field values of modified fields</short>
</element>
<!-- enumeration value Visibility: default
Declaration: upWhereKeyOnly -->
<element name="TUpdateMode.upWhereKeyOnly">
<short>Only use key fields in the where clause.</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TResolverResponse = (rrSkip,rrAbort,rrMerge,rrApply,rrIgnore) -->
<element name="TResolverResponse">
<short>Resolver response code</short>
<descr>
<var>TResolverResponse</var> is used to indicate what should happen to a
pending change that could not be resolved. It is used in callbacks.
</descr>
</element>
<!-- enumeration value Visibility: default
Declaration: rrSkip -->
<element name="TResolverResponse.rrSkip">
<short>Skip the current update, leave it in the change log.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: rrAbort -->
<element name="TResolverResponse.rrAbort">
<short>Abort the whole update process, no error message is displayed (no
<var>EAbort</var> exception raised).</short>
</element>
<!-- enumeration value Visibility: default
Declaration: rrMerge -->
<element name="TResolverResponse.rrMerge">
<short>Merge the update with existing changes on the server.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: rrApply -->
<element name="TResolverResponse.rrApply">
<short>Replace the update with new values applied by the event handler</short>
</element>
<!-- enumeration value Visibility: default
Declaration: rrIgnore -->
<element name="TResolverResponse.rrIgnore">
<short>Ignore the error and remove update from change log</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TProviderFlag = (pfInUpdate,pfInWhere,pfInKey,pfHidden) -->
<element name="TProviderFlag">
<short>What to do with fields when applying updates</short>
<descr>
<var>TProviderFlag</var> describes how the field should be used when
applying updates from a dataset to the database. Each field of a <link
id="TDataset"/> has one or more of these flags.
</descr>
<seealso>
<link id="TProviderFlags"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: pfInUpdate -->
<element name="TProviderFlag.pfInUpdate">
<short>Changes to the field should be propagated to the database.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: pfInWhere -->
<element name="TProviderFlag.pfInWhere">
<short>Field should be used in the WHERE clause of an update statement in
case of <var>upWhereChanged</var>.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: pfInKey -->
<element name="TProviderFlag.pfInKey">
<short>Field is a key field and used in the WHERE clause of an update statement</short>
</element>
<!-- enumeration value Visibility: default
Declaration: pfHidden -->
<element name="TProviderFlag.pfHidden">
<short></short>
</element>
<!-- set type Visibility: default
Declaration: TProviderFlags= Set of (pfInUpdate,pfInWhere,pfInKey,pfHidden) -->
<element name="TProviderFlags">
<short>Set of <link id="TProviderFlag"/> flags</short>
<descr>
<var>TProviderFlags</var> is used for the <link id="TField.ProviderFlags"/>
property to describe the role of the field when applying updates to a
database.
</descr>
<seealso>
<link id="TField.ProviderFlags"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TFieldDefs
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TFieldDefs">
<short>Collection of <var>TFieldDef</var> instances.</short>
<descr>
<var>TFieldDefs</var> is used by each <var>TDataset</var> instance to keep a description of the data that it manages;
for each field in a record that makes up the underlying data, the <var>TFieldDefs</var> instance keeps an instance of <var>TFieldDef</var> that describes the field's contents.
For any internally calculated fields of the dataset, a <var>TFieldDef</var> instance is kept as well. This collection is filled by descendent classes of <var>TDataset</var> as soon as the
dataset is opened; it is cleared when the dataset closes. After the collection was populated, the dataset creates <var>TField</var> instances based on all the definitions in the collections.
If persistent fields were used, the contents of the fielddefs collection is compared to the field components that are present in the dataset. If the collection contains more field definitions than Field
components, these extra fields will not be available in the dataset.
</descr>
<seealso>
<link id="TFieldDef"/>
<link id="TDataset"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TField">
<short>Provide access to the contents of a single field in a record</short>
<descr>
<p>
<var>TField</var> is an abstract class that defines access methods for a field in a record, controlled by a <link id="TDataset"/> instance.
It provides methods and properties to access the contents of the field in the current record. Reading one of the AsXXX properties
of <var>TField</var> will access the field contents and return the contents as the desired type. Writing one of the AsXXX properties will
write a value to the buffer represented by the <var>TField</var> instance.
</p>
<p>
<var>TField</var> is an abstract class, meaning that it should never be created directly. <var>TDataset</var> instances always create one
of the descendent classes of TField, depending on the type of the underlying data.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TFieldDef"/>
<link id="TFields"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TFields
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TFields">
<short>Collection of <link id="#fcl.db.TField"/> instances</short>
<descr>
<var>TFields</var> mimics a <var>TCollection</var> class for the <link id="TDataset.Fields">Fields</link> property of <link id="TDataset"/> instance.
Since <link id="TField"/> is a descendent of <var>TComponent</var>, it cannot be an item of a collection, and must be managed by another class.
</descr>
<seealso>
<link id="TField"/>
<link id="TDataset"/>
<link id="TDataset.Fields"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDataSet
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDataSet">
<short>Base class for records-based data-access</short>
<descr>
<p><var>TDataset</var> is the main class of the <file>db</file> unit. This abstract class provides all basic functionality to access data stored in tabular format:
The data consists of records, and the data in each record is organised in several fields.</p>
<p>
<var>TDataset</var> has a buffer to cache a few records in memory, this buffer is used by <var>TDatasource</var> to create the ability to use data-aware components.</p>
<p><var>TDataset</var> is an abstract class, which provides the basic functionality to access, navigate through the data and - in case read-write access is available,
edit existing or add new records.
</p>
<p>
<var>TDataset</var> is an abstract class: it does not have the knowledge to store or load the records from whatever medium the records are stored on.
Descendants add the functionality to load and save the data. Therefor <var>TDataset</var> is never used directly, one always instantiates a descendent class.
</p>
<p>
Initially, no data is available: the dataset is inactive. The <link id="TDataset.Open">Open</link> method must be used to fetch data into memory.
After this command, the data is available in memory for browsing or editing purposes: The dataset is active (indicated by the <link id="TDataset.Active"/> property).
Likewise, the <link id="TDataset.Close">Close</link> method can be used to remove the data from memory. Any changes not yet saved to the underlying medium will be lost.
</p>
<p>
Data is expected to be in tabular format, where each row represents a record. The dataset has an idea of a cursor: this is the current position of the
data cursor in the set of rows. Only the data of the current record is available for display or editing purposes. Through the <link id="TDataset.Next">Next</link>,
<link id="TDataset.Prev">Prev</link>, <link id="TDataset.First">First</link> and <link id="TDataset.Last">Last</link> methods, it is possible to navigate through
the records. The <link id="TDataset.EOF">EOF</link> property will be <var>True</var> if the last row has been reached. Likewise, the <link id="TDataset.BOF">BOF</link>
property will return <var>True</var> if the first record in the dataset has been reached when navigating backwards. If both properties are empty, then there is no data
available. For dataset descendents that support counting the number of records, the <link id="TDataset.RecordCount">RecordCount</link> will be zero.
</p>
<p>
The <link id="TDataset.Append">Append</link> and <link id="TDataset.Insert">Insert</link> methods can be used to insert new records to the set of records.
The <link id="TDataset.Delete"/> statement is used to delete the current record, and the <link id="TDataset.Edit">Edit</link> command must be used to set the
dataset in editing mode: the contents of the current record can then be changed. Any changes made to the current record (be it a new or existing record) must be
saved by the <link id="TDataset.Post">Post</link> method, or can be undone using the <link id="TDataset.Cancel">Cancel</link> method.
</p>
<p>
The data in the various fields properties is available through the <link id="TDataset.Fields">Fields</link> array property, giving indexed access to all the
fields in a record. The contents of a field is always readable. If the dataset is in one of the editing modes, then the fields can also be written to.
</p>
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDataBase
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDataBase">
<short>Base class for connecting a FreePascal application to an external Database engine</short>
<descr>
<p>
<var>TDatabase</var> is a component whose purpose is to provide a connection to an external database engine, not to provide the database itself.
This class provides generic methods for attachment to databases and querying their contents; the details of the actual connection are handled by
database-specific components (such as SQLDb for SQL-based databases, or DBA for DBASE/FoxPro style databases).
</p>
<p>
Like <link id="TDataset"/>, TDatabase is an abstract class. It provides methods to keep track of datasets connected to the database,
and to close these datasets when the connection to the database is closed. To this end, it introduces a <link id="TDatabase.Connected">Connected</link>
boolean property, which indicates whether a connection to the database is established or not. The actual logic to establish a connection to
a database must be implemented by descendent classes.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDatabase"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDatasource
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDatasource">
<short>Component representing the link between a local (GUI) component and a dataset</short>
<descr>
<var>TDatasource</var> is a mediating component: it handles communication between any DB-Aware component (often edit controls on a form) and a <link id="TDataset"/> instance.
Any database aware component should never communicate with a dataset directly. Instead, it should communicate with a <link id="TDatasource"/> instance. The TDataset instance
will communicate with the TDatasource instance, which will notify every component attached to it. Vice versa, any component that wishes to make changes to the dataset, will
notify the TDatasource instance, which will then (if needed) notify the TDataset instance. The datasource can be disabled, in which case all communication between the
dataset and the DB-AWare components is suspended until the datasource is again enabled.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDatalink"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDetailDataLink
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDetailDataLink">
<short>Represents the link between a detail data source and a master datasource.</short>
<descr>
<var>TDetailDataLink</var> handles the communication between a detail dataset and the master datasource in a master-detail relationship between datasets.
It should never be used in an application, and should only be used by component writers that wish to provide master-detail functionality for TDataset descendents.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDatasource"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDBTransaction
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDBTransaction">
<short>Encapsulate a transaction</short>
<descr>
<var>TDBTransaction</var> encapsulates a SQL transaction. It is an abstract class, and should be used by component creators that wish to encapsulate transactions in a class.
The <var>TDBTransaction</var> class offers functionality to refer to a <link id="TDatabase"/> instance, and to keep track of <var>TDataset</var> instances which are connected
to the transaction.
</descr>
<seealso>
<link id="TDatabase"/>
<link id="TDataset"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.EDatabaseError
********************************************************************
-->
<!-- class Visibility: default -->
<element name="EDatabaseError">
<short>Base class for all database-related errors</short>
<descr>
<var>EDatabaseError</var> is the base class from which database-related exception classes should derive. It is raised by the <link id="DatabaseError"/> call.
</descr>
<seealso>
<link id="DatabaseError"/>
<link id="DatabaseErrorFmt"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.EUpdateError
********************************************************************
-->
<!-- class Visibility: default -->
<element name="EUpdateError">
<short>Error raised when updating data during a post operation.</short>
<descr>
<var>EupdateError</var> is an exception used by the TProvider database support. It should never be raised directly.
</descr>
<seealso>
<link id="EDatabaseError"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(NativeError: String;Context: String;ErrCode: Integer;
PrevError: Integer;E: Exception) -->
<element name="EUpdateError.Create">
<short>Create a new EUpdateError instance</short>
<descr>
<var>Create</var> instantiates a new <var>EUpdateError</var> object and populates the various properties with the
<var>NativeError</var>, <var>Context</var>, <var>ErrCode</var> and <var>PrevError</var> parameters. The <var>E</var>
parameter is the actual exception that occurred while the update operation was attempted. The exception object <var>E</var>
will be freed if the <var>EUpdateError</var> instance is freed.
</descr>
<seealso>
<link id="EDatabaseError"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: NativeError: String -->
<element name="EUpdateError.Create.NativeError">
<short>Native error description.</short>
</element>
<!-- argument Visibility: default
Declaration: Context: String -->
<element name="EUpdateError.Create.Context">
<short>Context in which error occurred, if applicable</short>
</element>
<!-- argument Visibility: default
Declaration: ErrCode: Integer -->
<element name="EUpdateError.Create.ErrCode">
<short>Numerical error code, if applicable</short>
</element>
<!-- argument Visibility: default
Declaration: PrevError: Integer -->
<element name="EUpdateError.Create.PrevError">
<short>Previous error number</short>
</element>
<!-- argument Visibility: default
Declaration: E: Exception -->
<element name="EUpdateError.Create.E">
<short>Actual exception object.</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="EUpdateError.Destroy">
<short>Free the EupdateError instance</short>
<descr>
<var>Destroy</var> frees the original exception object (if there was one) and then calls the inherited destructor.
</descr>
<errors>
If the original exception object was already freed, an error will occur.
</errors>
<seealso>
<link id="EUpdateError.OriginalException"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Context : String -->
<element name="EUpdateError.Context">
<short>Context in which exception occurred.</short>
<descr>
A description of the context in which the original exception was raised.
</descr>
<seealso>
<link id="EUpdateError.OriginalException"/>
<link id="EUpdateError.ErrorCode"/>
<link id="EUpdateError.PreviousError"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: ErrorCode : Integer -->
<element name="EUpdateError.ErrorCode">
<short>Numerical error code.</short>
<descr>
<var>ErrorCode</var> is a numerical error code, provided by the native data access layer, to describe the error.
It may or not be filled.
</descr>
<seealso>
<link id="EUpdateError.OriginalException"/>
<link id="EUpdateError.Context"/>
<link id="EUpdateError.PreviousError"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OriginalExcaption : Exception -->
<element name="EUpdateError.OriginalExcaption">
<short>Original exception object, if available.</short>
<descr>
<var>OriginalException</var> is the original exception object as raised by the database access layer.
It may or may not be available.
</descr>
<seealso>
<link id="EUpdateError.ErrorCode"/>
<link id="EUpdateError.Context"/>
<link id="EUpdateError.PreviousError"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: PreviousError : Integer -->
<element name="EUpdateError.PreviousError">
<short>Previous error number</short>
<descr>
<var>PreviousError</var> is used to order the errors which occurred during an update operation.
</descr>
<seealso>
<link id="EUpdateError.ErrorCode"/>
<link id="EUpdateError.Context"/>
<link id="EUpdateError.OriginalException"/>
</seealso>
</element>
<!-- "class of" type Visibility: default
Declaration: TFieldClass = Class of TField -->
<element name="TFieldClass">
<short></short>
<descr>
</descr>
<seealso>
</seealso>
</element>
<!-- enumeration type Visibility: default
Declaration: TFieldType = (ftUnknown,ftString,ftSmallint,ftInteger,ftWord,ftBoolean,
ftFloat,ftCurrency,ftBCD,ftDate,ftTime,ftDateTime,ftBytes,
ftVarBytes,ftAutoInc,ftBlob,ftMemo,ftGraphic,ftFmtMemo,
ftParadoxOle,ftDBaseOle,ftTypedBinary,ftCursor,
ftFixedChar,ftWideString,ftLargeint,ftADT,ftArray,
ftReference,ftDataSet,ftOraBlob,ftOraClob,ftVariant,
ftInterface,ftIDispatch,ftGuid,ftTimeStamp,ftFMTBcd,
ftFixedWideChar,ftWideMemo) -->
<element name="TFieldType">
<short>Field data type description</short>
<descr>
<var>TFieldType</var> indicates the type of a <link id="TField"/> underlying data, in the <link id="TField.Datatype">DataType</link> property.
</descr>
</element>
<!-- enumeration value Visibility: default
Declaration: ftUnknown -->
<element name="TFieldType.ftUnknown">
<short>Unknown data type</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftString -->
<element name="TFieldType.ftString">
<short>String data value (ansistring)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftSmallint -->
<element name="TFieldType.ftSmallint">
<short>Small integer value(1 byte, signed)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftInteger -->
<element name="TFieldType.ftInteger">
<short>Regular integer value (4 bytes, signed)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftWord -->
<element name="TFieldType.ftWord">
<short>Word-sized value(2 bytes, unsigned)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftBoolean -->
<element name="TFieldType.ftBoolean">
<short>Boolean value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftFloat -->
<element name="TFieldType.ftFloat">
<short>Floating point value (double)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftCurrency -->
<element name="TFieldType.ftCurrency">
<short>Currency value (4 decimal points)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftBCD -->
<element name="TFieldType.ftBCD">
<short>Binary Coded Decimal value (DECIMAL and NUMERIC SQL types)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftDate -->
<element name="TFieldType.ftDate">
<short>Date value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftTime -->
<element name="TFieldType.ftTime">
<short>Time value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftDateTime -->
<element name="TFieldType.ftDateTime">
<short>Date/Time (timestamp) value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftBytes -->
<element name="TFieldType.ftBytes">
<short>Array of bytes value, fixed size (unytped)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftVarBytes -->
<element name="TFieldType.ftVarBytes">
<short>Array of bytes value, variable size (untyped)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftAutoInc -->
<element name="TFieldType.ftAutoInc">
<short>Auto-increment integer value (4 bytes)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftBlob -->
<element name="TFieldType.ftBlob">
<short>Binary data value (no type, no size)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftMemo -->
<element name="TFieldType.ftMemo">
<short>Binary text data (no size)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftGraphic -->
<element name="TFieldType.ftGraphic">
<short>Graphical data value (no size)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftFmtMemo -->
<element name="TFieldType.ftFmtMemo">
<short>Formatted memo data value (no size)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftParadoxOle -->
<element name="TFieldType.ftParadoxOle">
<short>Paradox OLE field data (no size)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftDBaseOle -->
<element name="TFieldType.ftDBaseOle">
<short>Paradox OLE field data</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftTypedBinary -->
<element name="TFieldType.ftTypedBinary">
<short>Binary typed data (no size)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftCursor -->
<element name="TFieldType.ftCursor">
<short>Cursor data value (no size)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftFixedChar -->
<element name="TFieldType.ftFixedChar">
<short>Fixed character array (string)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftWideString -->
<element name="TFieldType.ftWideString">
<short>Widestring (2 bytes per character)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftLargeint -->
<element name="TFieldType.ftLargeint">
<short>Large integer value (8-byte)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftADT -->
<element name="TFieldType.ftADT">
<short>ADT value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftArray -->
<element name="TFieldType.ftArray">
<short>Array data</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftReference -->
<element name="TFieldType.ftReference">
<short>Reference data</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftDataSet -->
<element name="TFieldType.ftDataSet">
<short>Dataset data (blob)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftOraBlob -->
<element name="TFieldType.ftOraBlob">
<short>Oracle BLOB data</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftOraClob -->
<element name="TFieldType.ftOraClob">
<short>Oracle CLOB data</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftVariant -->
<element name="TFieldType.ftVariant">
<short>Variant data value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftInterface -->
<element name="TFieldType.ftInterface">
<short>interface data value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftIDispatch -->
<element name="TFieldType.ftIDispatch">
<short>Dispatch data value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftGuid -->
<element name="TFieldType.ftGuid">
<short>GUID data value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftTimeStamp -->
<element name="TFieldType.ftTimeStamp">
<short>Timestamp data value</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftFMTBcd -->
<element name="TFieldType.ftFMTBcd">
<short>Formatted BCD (Binary Coded Decimal) value.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftFixedWideChar -->
<element name="TFieldType.ftFixedWideChar">
<short>Fixed wide character date (2 bytes per character)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ftWideMemo -->
<element name="TFieldType.ftWideMemo">
<short>Widestring memo data</short>
</element>
<!-- array type Visibility: default
Declaration: TFieldMap = Array[TFieldType] of Byte -->
<element name="TFieldMap">
<short>Array type with <var>TFieldType</var> as index type.</short>
<descr>
<var>TFieldMap</var> is no longer used.
</descr>
<seealso>
<link id="TFieldType"/>
</seealso>
</element>
<!-- "type" alias type Visibility: default
Declaration: TDateTimeAlias = TDateTime -->
<element name="TDateTimeAlias">
<short>Alias for <var>TDateTime</var> type</short>
<descr>
<var>TDateTimeAlias</var> is no longer used.
</descr>
</element>
<!-- pointer type Visibility: default
Declaration: PDateTimeRec = ^TdateTimeRec -->
<element name="PDateTimeRec">
<short>Pointer to <var>TDateTimeRec</var> record</short>
<seealso>
<link id="TDateTimeRec"/>
</seealso>
</element>
<!-- record type Visibility: default
Declaration: TDateTimeRec = record
end
-->
<element name="TDateTimeRec">
<short>Date/Time record</short>
<descr>
<var>TDateTimeRec</var> was used by older <link id="TDataset"/> implementations to store date/time values. Newer implementations use the <var>TDateTime</var>.
This type should no longer be used.
</descr>
<seealso>
</seealso>
</element>
<!-- variable Visibility: default
Declaration: Date : LongInt -->
<element name="TDateTimeRec.Date">
<short>Date value</short>
</element>
<!-- variable Visibility: default
Declaration: Time : LongInt -->
<element name="TDateTimeRec.Time">
<short>Time value</short>
</element>
<!-- variable Visibility: default
Declaration: DateTime : TDateTimeAlias -->
<element name="TDateTimeRec.DateTime">
<short>Date/time value</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TFieldAttribute = (faHiddenCol,faReadonly,faRequired,faLink,faUnNamed,
faFixed) -->
<element name="TFieldAttribute">
<short>Field attributes</short>
<descr>
<var>TFieldAttribute</var> is used to denote some attributes of a field in a database. It is used in the <link id="TFieldDef.Attributes">Attributes</link>
property of <link id="TFieldDef"/>.
</descr>
<seealso>
<link id="TFieldAttributes"/>
<link id="TFieldDef.Attributes"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: faHiddenCol -->
<element name="TFieldAttribute.faHiddenCol">
<short>Field is a hidden column (used to construct a unique key)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: faReadonly -->
<element name="TFieldAttribute.faReadonly">
<short>Field is read-only</short>
</element>
<!-- enumeration value Visibility: default
Declaration: faRequired -->
<element name="TFieldAttribute.faRequired">
<short>Field is required</short>
</element>
<!-- enumeration value Visibility: default
Declaration: faLink -->
<element name="TFieldAttribute.faLink">
<short>Field is a link field for other datasets</short>
</element>
<!-- enumeration value Visibility: default
Declaration: faUnNamed -->
<element name="TFieldAttribute.faUnNamed">
<short>Field has no original name</short>
</element>
<!-- enumeration value Visibility: default
Declaration: faFixed -->
<element name="TFieldAttribute.faFixed">
<short>Fixed length field</short>
</element>
<!-- set type Visibility: default
Declaration: TFieldAttributes= Set of (faHiddenCol,faReadonly,faRequired,faLink,
faUnNamed,faFixed) -->
<element name="TFieldAttributes">
<short>Set of <var>TFieldAttribute</var> values.</short>
<descr>
<var>TFieldAttributes</var> is used in the <link id="TFieldDef.Attributes"/> property to denote additional attributes of the underlying field.
</descr>
<seealso>
<link id="TFieldDef.Attributes"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TNamedItem
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TNamedItem">
<short>Named collection item</short>
<descr>
<var>NamedItem</var> is a <link id="#rtl.classes.TCollectionItem">TCollectionItem</link> descendent which introduces a <link id="TNamedItem.Name">Name</link> property.
It automatically returns the value of the <var>Name</var> property as the value of the <link id="TNamedItem.DisplayName">DisplayName</link> property.
</descr>
<seealso>
<link id="TNamedItem.DisplayName">DisplayName</link>
<link id="TNamedItem.Name">Name</link>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DisplayName : String -->
<element name="TNamedItem.DisplayName">
<short>Display name</short>
<descr>
<var>DisplayName</var> is declared in <link id="#rtl.classes.TCollectionItem">TCollectionItem</link>, and is made public in <var>TNamedItem</var>.
The value equals the value of the <link id="TNamedItem.Name">Name</link> property.
</descr>
<seealso>
<link id="TNamedItem.Name">Name</link>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Name : String -->
<element name="TNamedItem.Name">
<short>Name of the item</short>
<descr>
<var>Name</var> is the name of the item in the collection. This property is also used as the value for the <link id="TNamedItem.DisplayName">DisplayName</link> property.
If the <var>TNamedItem</var> item is owned by a <link id="TDefCollection"/> collection, then the name must be unique, i.e. each <var>Name</var> value may appear only once in the collection.
</descr>
<seealso>
<link id="TNamedItem.DisplayName">DisplayName</link>
<link id="TDefCollection"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDefCollection
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDefCollection">
<short>Definition collection</short>
<descr>
<var>TDefCollection</var> is a parent class for the <link id="TFieldDefs"/> and <link id="TIndexDefs"/> collections: It holds a set of named
definitions on behalf of a <link id="TDataset"/> component. To this end, it introduces a <link id="TDefCollection.Dataset">dataset</link>
property, and a mechanism to notify the dataset of any updates in the collection. It is supposed to hold items of class <link id="TNamedItem"/>, so the <link id="TDefCollection.Find"/> method can find items by named.
</descr>
<errors>
</errors>
<seealso>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor create(ADataset: TDataSet;AOwner: TPersistent;
AClass: TCollectionItemClass) -->
<element name="TDefCollection.create">
<short>Instantiate a new <var>TDefCollection</var> instance.</short>
<descr>
<var>Create</var> saves the <var>ADataset</var> and <var>AOwner</var> components in local variables for later reference,
and then calls the inherited <var>Create</var> with <var>AClass</var> as a parameter.
<var>AClass</var> should at least be of type <var>TNamedItem</var>. <var>ADataset</var> is the dataset on whose behalf
the collection is managed. <var>AOwner</var> is the owner of the collection, normally this is the form or datamodule
on which the dataset is dropped.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TNamedItem"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ADataset: TDataSet -->
<element name="TDefCollection.create.ADataset">
<short>Dataset to manage definitions for</short>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TPersistent -->
<element name="TDefCollection.create.AOwner">
<short>Owner of the items in the collection.</short>
</element>
<!-- argument Visibility: default
Declaration: AClass: TCollectionItemClass -->
<element name="TDefCollection.create.AClass">
<short>Item class for Add call.</short>
</element>
<!-- function Visibility: public
Declaration: function Find(const AName: String) : TNamedItem -->
<element name="TDefCollection.Find">
<short>Find an item by name</short>
<descr>
<var>Find</var> searches for an item in the collection with name <var>AName</var> and returns the item if it is found.
If no item with the requested name is found, <var>Nil</var> is returned. The search is performed case-insensitive.
</descr>
<errors>
If no item with matching name is found, <var>Nil</var> is returned.
</errors>
<seealso>
<link id="TNamedItem.Name"/>
<link id="TDefCollection.IndexOf"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDefCollection.Find.Result">
<short>Item matching <var>AName</var></short>
</element>
<!-- argument Visibility: default
Declaration: AName: String -->
<element name="TDefCollection.Find.AName">
<short>Name to search for in collection.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure GetItemNames(List: TStrings) -->
<element name="TDefCollection.GetItemNames">
<short>Return a list of all names in the collection</short>
<descr>
<var>GetItemNames</var> fills <var>List</var> with the names of all items in the collection. It clears the list first.
</descr>
<errors>
If <var>List</var> is not a valid <var>TStrings</var> instance, an exception will occur.
</errors>
<seealso>
<link id="TNamedItem.Name"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: List: TStrings -->
<element name="TDefCollection.GetItemNames.List">
<short>List to fill with the names of the items in the collection.</short>
</element>
<!-- function Visibility: public
Declaration: function IndexOf(const AName: String) : LongInt -->
<element name="TDefCollection.IndexOf">
<short>Find location of item by name</short>
<descr>
<var>IndexOf</var> searches in the collection for an item whose
<var>Name</var> property matches <var>AName</var> and returns the index of the item if it finds one.
If no item is found, -1 is returned. The search is performed case-insensitive.
</descr>
<seealso>
<link id="TDefCollection.Find"/>
<link id="TNamedItem.Name"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDefCollection.IndexOf.Result">
<short>Index of the found item, or -1 if none was found.</short>
</element>
<!-- argument Visibility: default
Declaration: AName: String -->
<element name="TDefCollection.IndexOf.AName">
<short>Name to look for. (case insensitive)</short>
</element>
<!-- property Visibility: public
Declaration: Dataset : TDataSet -->
<element name="TDefCollection.Dataset">
<short>Dataset this collection manages definitions for.</short>
<descr>
<var>Dataset</var> is the dataset this collection manages definitions for.
It must be supplied when the collection is created and cannot change during the lifetime of the collection.
</descr>
<seealso>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Updated : Boolean -->
<element name="TDefCollection.Updated">
<short>Has one of the items been changed</short>
<descr>
<var>Changed</var> indicates whether the collection has changed: an item was added or removed, or one of the properties of the items was changed.
</descr>
<seealso>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TFieldDef
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TFieldDef">
<short>Class to describe one field in a record in a dataset</short>
<descr>
<var>TFieldDef</var> is used to describe the fields that are present in the data underlying the dataset.
For each field in the underlying field, an <var>TFieldDef</var> instance is created when the dataset is opened.
This class offers almost no methods, it is mainly a storage class, to store all relevant properties of fields in
a record (name, data type, size, required or not, etc.)
</descr>
<seealso>
<link id="TDataset.FieldDefs"/>
<link id="TFieldDefs"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor create(ACollection: TCollection); Override -->
<element name="TFieldDef.create">
<short>Constructor for <var>TFieldDef</var>.</short>
<descr>
<p>
<var>Create</var> is the constructor for the <var>TFieldDef</var> class.
</p>
<p>If a simple call is used, with a single argument <var>ACollection</var>, the inherited <var>Create</var> is called and the
Field number is set to the incremented current index.</p>
<p>If the more complicated call is used, with multiple arguments, then after the inherited <var>Create</var> call, the
<link id="TFieldDef.name">Name</link>, <link id="TFieldDef.Datatype">datatype</link>, <link id="TFieldDef.Size">size</link>,
<link id="TFieldDef.Precision">precision</link>, <link id="TFieldDef.FieldNo">FieldNo</link>, <link id="TFieldDef.Required">Required</link> and <link id="TFieldDef.CodePage">CodePage</link>
property are all set according to the passed arguments.</p>
</descr>
<errors>
If a duplicate name is passed, then an exception will occur.
</errors>
<seealso>
<link id="TFieldDef.name">Name</link>
<link id="TFieldDef.Datatype">datatype</link>
<link id="TFieldDef.Size">size</link>
<link id="TFieldDef.Precision">precision</link>
<link id="TFieldDef.FieldNo">FieldNo</link>
<link id="TFieldDef.Required">Required</link>
<link id="TFieldDef.CodePage">CodePage</link>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ACollection: TCollection -->
<element name="TFieldDef.create.ACollection">
<short>TFieldDefs instance to which to append the definition, or <var>Nil</var></short>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TFieldDefs -->
<element name="TFieldDef.Create.AOwner">
<short>Owner of the fielddef.</short>
</element>
<!-- argument Visibility: default
Declaration: AName: String -->
<element name="TFieldDef.Create.AName">
<short>Name of the field</short>
</element>
<!-- argument Visibility: default
Declaration: ADataType: TFieldType -->
<element name="TFieldDef.Create.ADataType">
<short>Data type of the field</short>
</element>
<!-- argument Visibility: default
Declaration: ASize: Integer -->
<element name="TFieldDef.Create.ASize">
<short>Storage size for the field contents, or zero for fixed-size fields</short>
</element>
<!-- argument Visibility: default
Declaration: ARequired: Boolean -->
<element name="TFieldDef.Create.ARequired">
<short>Is the fields required or not</short>
</element>
<!-- argument Visibility: default
Declaration: AFieldNo: LongInt -->
<element name="TFieldDef.Create.AFieldNo">
<short>Number of the field</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TFieldDef.Destroy">
<short>Free the TFieldDef instance</short>
<descr>
<var>Destroy</var> destroys the TFieldDef instance. It simply calls the inherited destructor.
</descr>
<seealso>
<link id="TFieldDef.Create"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Assign(APersistent: TPersistent); Override -->
<element name="TFieldDef.Assign">
<short>Assign the contents of one TFieldDef instance to another.</short>
<descr>
<var>Assign</var> assigns all published properties of <var>APersistent</var> to the current instance, if <var>APersistent</var> is an instance of class <var>TFieldDef</var>.
</descr>
<errors>
If <var>APersistent</var> is not of class <link id="TFieldDef"/>, then an exception will be raised.
</errors>
</element>
<!-- argument Visibility: default
Declaration: APersistent: TPersistent -->
<element name="TFieldDef.Assign.APersistent">
<short><var>TFieldDef</var> instance to copy data from.</short>
</element>
<!-- function Visibility: public
Declaration: function CreateField(AOwner: TComponent) : TField -->
<element name="TFieldDef.CreateField">
<short>Create <var>TField</var> instance based on definitions in current <var>TFieldDef</var> instance.</short>
<descr>
<p>
<var>CreateField</var> determines, based on the <link id="TFieldDef.Datatype">DataType</link> what <link id="TField"/> descendent it
should create, and then returns a newly created instance of this class. It sets the appropriate defaults for the <link id="TField.Size">
Size</link>, <link id="TField.FieldName">FieldName</link>, <link id="TField.FieldNo">FieldNo</link>, <link id="TField.Precision">Precision</link>,
<link id="TField.ReadOnly">ReadOnly</link> and <link id="TField.Required">Required</link> properties of the newly created instance.
It should never be necessary to use this call in an end-user program, only <var>TDataset</var> descendent classes should use this call.
</p>
<p>
The newly created field is owned by the component instance passed in the <var>AOwner</var> parameter.
</p>
<p>
The <link id="DefaultFieldClasses"/> array is used to determine which TField Descendent class should be used when creating the TField
instance, but descendents of TDataset may override the values in that array.
</p>
</descr>
<errors>
</errors>
<seealso>
<link id="DefaultFieldClasses"/>
<link id="TField"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TFieldDef.CreateField.Result">
<short>Instance of TField corresponding to the field definition</short>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TFieldDef.CreateField.AOwner">
<short>Owner for the new <var>TField</var> instance.</short>
</element>
<!-- property Visibility: public
Declaration: FieldClass : TFieldClass -->
<element name="TFieldDef.FieldClass">
<short>TField class used for this fielddef</short>
<descr>
<var>FieldClass</var> is the class of the <var>TField</var> instance that is created by the <link id="TFieldDef.CreateField">CreateField</link> class.
The return value is retrieved from the <var>TDataset</var> instance the <var>TFieldDef</var> instance is associated with. If there is no TDataset
instance available, the return value is <var>Nil</var>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TFieldDef.CreateField">CreateField</link>
<link id="TField"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: FieldNo : LongInt -->
<element name="TFieldDef.FieldNo">
<short>Field number</short>
<descr>
<var>FieldNo</var> is the number of the field in the data structure where the dataset contents comes from, for instance in a DBase file.
If the underlying data layer does not support the concept of field number, a sequential number is assigned.
</descr>
<seealso>
</seealso></element>
<!-- property Visibility: public
Declaration: InternalCalcField : Boolean -->
<element name="TFieldDef.InternalCalcField">
<short>Is this a definition of an internally calculated field ?</short>
<descr>
<var>Internalcalc</var> is <var>True</var> if the fielddef instance represents an internally calculated field: for internally calculated fields,
storage must be provided by the underlying data mechanism.
</descr>
<seealso>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Required : Boolean -->
<element name="TFieldDef.Required">
<short>Is the field required ?</short>
<descr>
<var>Required</var> is set to <var>True</var> if the field requires a value when posting data to the dataset. If no value was entered, the dataset will raise an exception when the record is posted.
The <var>Required</var> property is usually initialized based on the definition of the field in the underlying database. For SQL-based databases, a field declared as <var>NOT NULL</var> will result
in a <var>Required</var> property of <var>True</var>.
</descr>
<seealso>
</seealso>
</element>
<element name="TFieldDef.Codepage">
<short>System code page for the values in string and wide string field types</short>
<descr>
<p>
Codepage is a read-only TSystemCodePage property with the system code page used
for values in the field. The value in CodePage is assigned in the overloaded constructor
which includes a TSystemCodePage argument. CodePage is relevant for string or wide
string field types, and uses the following values:
</p>
<dl>
<dt>ftString, ftFixedChar, ftMemo</dt>
<dd>Uses the value passed in the argument. The default value is 0.</dd>
<dt>ftWideString, ftFixedWideChar, ftWideMemo</dt>
<dd>Use the value in the CP_UTF16 constant.</dd>
<dt>Other non-string field types</dt>
<dd>Uses the value 0 in Codepage.</dd>
</dl>
</descr>
<seealso>
<link id="TFieldDef.Create"/>
<link id="TFieldDef.DataType"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Attributes : TFieldAttributes -->
<element name="TFieldDef.Attributes">
<short>Additional attributes of the field.</short>
<descr>
<var>Attributes</var> contain additional attributes of the field.
It shares the <var>faRequired</var> attribute with the <var>Required</var> property.
</descr>
<seealso>
<link id="TFieldDef.Required"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DataType : TFieldType -->
<element name="TFieldDef.DataType">
<short>Data type for the field</short>
<descr>
<var>DataType</var> contains the data type of the field's contents. Based on this property,
the <var>FieldClass</var> property determines what kind of field class must be used to represent this field.
</descr>
<seealso>
<link id="TFieldDef.FieldClass"/>
<link id="TFieldDef.CreateField"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Precision : LongInt -->
<element name="TFieldDef.Precision">
<short>Precision used in BCD (Binary Coded Decimal) fields</short>
<descr>
<var>Precision</var> is the number of digits used in a BCD (Binary Coded Decimal) field. It is not the
number of digits after the decimal separator, but the total number of digits.
</descr>
<seealso>
<link id="TFieldDef.Size"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Size : Integer -->
<element name="TFieldDef.Size">
<short>Size of the buffer needed to store the data of the field</short>
<descr>
<var>Size</var> indicates the size of the buffer needed to hold data for the field.
For types with a fixed size (such as integer, word or data/time) the size can be zero: the buffer mechanism reserves automatically enough heap memory.
For types which can have various sizes (blobs, string types), the Size property tells the buffer mechanism how many bytes are needed
to hold the data for the field. For BCD fields, the size property indicates
the number of decimals after the decimal separator.
</descr>
<seealso>
<link id="TFieldDef.Precision"/>
<link id="TFieldDef.DataType"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(ADataSet: TDataSet) -->
<element name="TFieldDefs.Create">
<short>Create a new instance of <var>TFieldDefs</var></short>
<descr>
<var>Create</var> is used to create a new instance of <var>TFieldDefs</var>. The <var>ADataset</var> argument contains the dataset instance for which
the collection contains the field definitions.
</descr>
<seealso>
<link id="TFieldDef"/>
<link id="TDataset"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ADataSet: TDataSet -->
<element name="TFieldDefs.Create.ADataSet">
<short>Dataset for which to maintain field definitions.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Add(const AName: String;ADataType: TFieldType;ASize: Word;
ARequired: Boolean); Overload -->
<element name="TFieldDefs.Add">
<short>Add a new field definition to the collection.</short>
<descr>
<var>Add</var> adds a new item to the collection and fills in the <var>Name</var>, <var>DataType</var>, <var>Size</var> and <var>Required</var> properties
of the newly added item with the provided parameters.
</descr>
<errors>
If an item with name <var>AName</var> already exists in the collection, then an exception will be raised.
</errors>
<seealso>
<link id="TFieldDefs.AddFieldDef"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AName: String -->
<element name="TFieldDefs.Add.AName">
<short>Value for the <var>Name</var> property of the new item.</short>
</element>
<!-- argument Visibility: default
Declaration: ADataType: TFieldType -->
<element name="TFieldDefs.Add.ADataType">
<short>Value for the <var>DataType</var> property of the new item.</short>
</element>
<!-- argument Visibility: default
Declaration: ASize: Word -->
<element name="TFieldDefs.Add.ASize">
<short>Value for the <var>Size</var> property of the new item.</short>
</element>
<!-- argument Visibility: default
Declaration: ARequired: Boolean -->
<element name="TFieldDefs.Add.ARequired">
<short>Value for the <var>Required</var> property of the new item.</short>
</element>
<!-- function Visibility: public
Declaration: function AddFieldDef : TFieldDef -->
<element name="TFieldDefs.AddFieldDef">
<short>Add new <var>TFieldDef</var></short>
<descr>
<var>AddFieldDef</var> creates a new <var>TFieldDef</var> item and returns the instance.
</descr>
<seealso>
<link id="TFieldDefs.Add"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TFieldDefs.AddFieldDef.Result">
<short>Newly created <var>TFieldDef</var> instance.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Assign(FieldDefs: TFieldDefs); Overload -->
<element name="TFieldDefs.Assign">
<short>Copy all items from one dataset to another</short>
<descr>
<var>Assign</var> simply calls inherited <var>Assign</var> with the <var>FieldDefs</var> argument.
</descr>
<seealso>
<link id="TFieldDef.Assign"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: FieldDefs: TFieldDefs -->
<element name="TFieldDefs.Assign.FieldDefs">
<short>FieldDefs to copy items from</short>
</element>
<!-- function Visibility: public
Declaration: function Find(const AName: String) : TFieldDef -->
<element name="TFieldDefs.Find">
<short>Find item by name</short>
<descr>
<var>Find</var> simply calls the inherited <link id="TDefCollection.Find"/> to find an item with name <var>AName</var> and typecasts the result
to <var>TFieldDef</var>.
</descr>
<errors>
</errors>
<seealso>
<link id="TDefCollection.Find"/>
<link id="TNamedItem.Name"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TFieldDefs.Find.Result">
<short>TFieldDef instance with name <var>AName</var> or <var>Nil</var></short>
</element>
<!-- argument Visibility: default
Declaration: AName: String -->
<element name="TFieldDefs.Find.AName">
<short>Name to search for</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Update; Overload -->
<element name="TFieldDefs.Update">
<short>Force update of definitions</short>
<descr>
<var>Update</var> notifies the dataset that the field definitions are updated, if it was not yet notified.
</descr>
<seealso>
<link id="TDefCollection.Updated"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function MakeNameUnique(const AName: String) : String; Virtual -->
<element name="TFieldDefs.MakeNameUnique">
<short>Create a unique field name starting from a base name</short>
<descr>
<var>MakeNameUnique</var> uses <var>AName</var> to construct a name of a field that is not yet in the collection. If <var>AName</var>
is not yet in the collection, then <var>AName</var> is returned. if a field definition with field name equal to <var>AName</var>
already exists, then a new name is constructed by appending a sequence number to <var>AName</var> till the resulting name does
not appear in the list of field definitions.
</descr>
<seealso>
<link id="TFieldDefs.Find"/>
<link id="TFieldDef.Name"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TFieldDefs.MakeNameUnique.Result">
<short>Unique name, based on <var>AName</var></short>
</element>
<!-- argument Visibility: default
Declaration: AName: String -->
<element name="TFieldDefs.MakeNameUnique.AName">
<short>Start of fieldname.</short>
</element>
<!-- property Visibility: public
Declaration: HiddenFields : Boolean -->
<element name="TFieldDefs.HiddenFields">
<short>Should field instances be created for hidden fields</short>
<descr>
<var>HiddenFields</var> determines whether a field is created for fielddefs that have the <var>faHiddenCol</var> attribute set.
If set to <var>False</var> (the default) then no <var>TField</var> instances will be created for hidden fields. If it is set
to <var>True</var>, then a TField instance will be created for hidden fields.
</descr>
<seealso>
<link id="TFieldDef.Attributes"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Items[Index: LongInt]: TFieldDef; default -->
<element name="TFieldDefs.Items">
<short>Indexed access to the fielddef instances</short>
<descr>
<var>Items</var> provides zero-based indexed access to all <var>TFieldDef</var> instances in the collection.
The index must vary between 0 and <var>Count-1</var>, or an exception will be raised.
</descr>
<seealso>
<link id="TFieldDef"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Index: LongInt -->
<element name="TFieldDefs.Items.Index">
<short>Zero-based Index of field definition</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TFieldKind = (fkData,fkCalculated,fkLookup,fkInternalCalc) -->
<element name="TFieldKind">
<short>Kind of field</short>
<descr>
<var>TFieldKind</var> indicates the type of a <var>TField</var> instance. Besides <var>TField</var> instances that represent fields present in the underlying data records,
there can also be calculated or lookup fields. To distinguish between these kind of fields, <var>TFieldKind</var> is introduced.
</descr>
<seealso>
<link id="TField.FieldKind"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: fkData -->
<element name="TFieldKind.fkData">
<short>Field represents actual data in the underlying data structure.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: fkCalculated -->
<element name="TFieldKind.fkCalculated">
<short>The field is calculated on the fly.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: fkLookup -->
<element name="TFieldKind.fkLookup">
<short>The field is a lookup field.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: fkInternalCalc -->
<element name="TFieldKind.fkInternalCalc">
<short>Field is calculated but stored in an underlying buffer.</short>
</element>
<!-- set type Visibility: default
Declaration: TFieldKinds= Set of (fkData,fkCalculated,fkLookup,fkInternalCalc) -->
<element name="TFieldKinds">
<short>Set of <var>TFieldKind</var> values</short>
<descr>
<var>TFieldKinds</var> is a set of <link id="TFieldKind"/> values. It is used internally by the classes of the DB unit.
</descr>
<seealso>
<link id="TFieldKind"/>
</seealso>
</element>
<!-- procedure type Visibility: default
Declaration: TFieldNotifyEvent = procedure(Sender: TField) of object -->
<element name="TFieldNotifyEvent">
<short>Notification handler prototype</short>
<descr>
<var>TFieldNotifyEvent</var> is a prototype for the event handlers in the <link id="TField"/> class.
It's <var>Sender</var> parameter is the field instance that triggered the event.
</descr>
<seealso>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Sender: TField -->
<element name="TFieldNotifyEvent.Sender">
<short>Field that triggered the event.</short>
</element>
<!-- procedure type Visibility: default
Declaration: TFieldGetTextEvent = procedure(Sender: TField;var aText: String;
DisplayText: Boolean) of object -->
<element name="TFieldGetTextEvent">
<short>Event handler to get field content</short>
<descr>
<var>TFieldGetTextEvent</var> is the prototype for the <link id="TField.OnGetText"/> event handler. It should be used when
the text of a field requires special formatting. The event handler should return the contents of the field in formatted form
in the <var>AText</var> parameter. The <var>DisplayText</var> is <var>True</var> if the text is used for displaying purposes or
is <var>False</var> if it will be used for editing purposes.
</descr>
<seealso>
<link id="TField.OnGetText"/>
<link id="TFieldSetTextEvent"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Sender: TField -->
<element name="TFieldGetTextEvent.Sender">
<short>Field instance whose text should be returned.</short>
</element>
<!-- argument Visibility: default
Declaration: aText: String -->
<element name="TFieldGetTextEvent.aText">
<short>The result of the event handler should be returned in this parameter.</short>
</element>
<!-- argument Visibility: default
Declaration: DisplayText: Boolean -->
<element name="TFieldGetTextEvent.DisplayText">
<short>Is the result used for display purposes ?</short>
</element>
<!-- procedure type Visibility: default
Declaration: TFieldSetTextEvent = procedure(Sender: TField;const aText: String)
of object -->
<element name="TFieldSetTextEvent">
<short>Event handler to get field content</short>
<descr>
<var>TFieldSetTextEvent</var> is the prototype for an event handler used to set the contents of a field based on a user-edited text.
It should be used when the text of a field is entered with special formatting. The event handler should set the contents of the field
based on the formatted text in the <var>AText</var> parameter.
</descr>
<seealso>
<link id="TField.OnGetText"/>
<link id="TFieldGetTextEvent"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Sender: TField -->
<element name="TFieldSetTextEvent.Sender">
<short>Field which invoked the event handler</short>
</element>
<!-- argument Visibility: default
Declaration: aText: String -->
<element name="TFieldSetTextEvent.aText">
<short>User-supplied value for the field's contents</short>
</element>
<!-- pointer type Visibility: default
Declaration: TFieldRef = ^TField -->
<element name="TFieldRef">
<short>Pointer to a TField instance</short>
</element>
<!-- set type Visibility: default
Declaration: TFieldChars = Set of Char -->
<element name="TFieldChars">
<short>Set of valid characters for the field contents</short>
<descr>
<var>TFieldChars</var> is a type used in the <link id="TField.ValidChars"/> property. It's a simple set of characters.
</descr>
<seealso>
<link id="TField.ValidChars"/>
</seealso>
</element>
<!-- pointer type Visibility: default
Declaration: PLookupListRec = ^TLookupListRec -->
<element name="PLookupListRec">
<short>Pointer to <var>TLookupListRec</var> record</short>
<seealso>
<link id="TlookupListRec"/>
</seealso>
</element>
<!-- record type Visibility: default
Declaration: TLookupListRec = record
Key : Variant;
Value : Variant;
end
-->
<element name="TLookupListRec">
<short>Record to store lookup results</short>
<descr>
<var>TLookupListRec</var> is used by lookup fields to store lookup results, if the results should be cached.
Its two fields keep the key value and associated lookup value.
</descr>
<seealso>
<link id="TLookupList"/>
</seealso>
</element>
<!-- variable Visibility: default
Declaration: Key : Variant -->
<element name="TLookupListRec.Key">
<short>Key value</short>
</element>
<!-- variable Visibility: default
Declaration: Value : Variant -->
<element name="TLookupListRec.Value">
<short>Lookup value associated to <var>Key</var>.</short>
</element>
<!--
********************************************************************
#fcl.db.TLookupList
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TLookupList">
<short>Class to manage lookup list values</short>
<descr>
<var>TLookupList</var> is a list object used for storing values of lookup operations by lookup fields.
There should be no need to create an instance of <var>TLookupList</var> manually,
the <var>TField</var> instance will create an instance of <var>TlookupList</var> on demand.
</descr>
<seealso>
<link id="TField.LookupCache"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create -->
<element name="TLookupList.Create">
<short>Create a new instance of <var>TLookupList</var>.</short>
<descr>
<var>Create</var> sets up the necessary structures to manage a list of lookup values for a lookup field.
</descr>
<seealso>
<link id="TLookupList.Destroy"/>
</seealso>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TLookupList.Destroy">
<short>Free a <var>TLookupList</var> instance from memory</short>
<descr>
<var>Destroy</var> frees all resources (mostly memory) allocated by the lookup list, and calls then the inherited destructor.
</descr>
<seealso>
<link id="TLookupList.Create"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Add(const AKey: Variant;const AValue: Variant) -->
<element name="TLookupList.Add">
<short>Add a key, value pair to the list</short>
<descr>
<var>Add</var> will add the value <var>AValue</var> to the list and associate it with key <var>AKey</var>. The same key cannot be added twice.
</descr>
<seealso>
<link id="TLookupList.Clear"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AKey: Variant -->
<element name="TLookupList.Add.AKey">
<short>Lookup key</short>
</element>
<!-- argument Visibility: default
Declaration: AValue: Variant -->
<element name="TLookupList.Add.AValue">
<short>Lookup value</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Clear -->
<element name="TLookupList.Clear">
<short>Remove all key, value pairs from the list</short>
<descr>
<var>Clear</var> removes all keys and associated values from the list.
</descr>
<seealso>
<link id="TLookupList.Add"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function FirstKeyByValue(const AValue: Variant) : Variant -->
<element name="TLookupList.FirstKeyByValue">
<short>Find the first key that matches a value</short>
<descr>
<var>FirstKeyByValue</var> does a reverse lookup: it returns the first key value in the list that matches the <var>AValue</var> value. If none is found, <var>Null</var> is returned. This mechanism is quite slow, as a linear search is performed.
</descr>
<errors>
If no key is found, <var>Null</var> is returned.
</errors>
<seealso>
<link id="TLookupList.ValueOfKey"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TLookupList.FirstKeyByValue.Result">
<short>First key that has <var>AValue</var> associated with it.</short>
</element>
<!-- argument Visibility: default
Declaration: AValue: Variant -->
<element name="TLookupList.FirstKeyByValue.AValue">
<short>Value to match key with.</short>
</element>
<!-- function Visibility: public
Declaration: function ValueOfKey(const AKey: Variant) : Variant -->
<element name="TLookupList.ValueOfKey">
<short>Look up value based on a key</short>
<descr>
<var>ValueOfKey</var> does a value lookup based on a key: it returns the value in the list that matches the <var>AKey</var> key.
If none is found, <var>Null</var> is returned.
This mechanism is quite slow, as a linear search is performed.
</descr>
<seealso>
<link id="TLookupList.FirstKeyByValue"/>
<link id="TLookupList.Add"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TLookupList.ValueOfKey.Result">
<short>Resulting value or <var>Null</var></short>
</element>
<!-- argument Visibility: default
Declaration: AKey: Variant -->
<element name="TLookupList.ValueOfKey.AKey">
<short>Key to find associated value for.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure ValuesToStrings(AStrings: TStrings) -->
<element name="TLookupList.ValuesToStrings">
<short>Convert values to stringlist</short>
<descr>
<var>ValuesToStrings</var> converts the list of values to a stringlist, so they can be used e.g. in a drop-down list.
</descr>
<seealso>
<link id="TLookupList.ValueOfKey"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AStrings: TStrings -->
<element name="TLookupList.ValuesToStrings.AStrings">
<short>Stringlist to put values in.</short>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TField.Create">
<short>Create a new <var>TField</var> instance</short>
<descr>
<var>Create</var> creates a new <var>TField</var> instance and sets up initial values for the fields.
<var>TField</var> is a component, and <var>AOwner</var> will be used as the owner of the <var>TField</var> instance.
This usually will be the form or datamodule on which the dataset was placed.
There should normally be no need for a programmer to create a Tfield instance manually.
The <link id="TDataset.Open"/> method will create the necessary <var>TField</var> instances, if none had been created in the designer.
</descr>
<seealso>
<link id="TDataset.Open"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TField.Create.AOwner">
<short>Owner of the field.</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TField.Destroy">
<short>Destroy the <var>TField</var> instance</short>
<descr>
<var>Destroy</var> cleans up any structures set up by the field instance, and then calls the inherited destructor. There should be no need to call this method under normal circumstances:
the dataset instance will free any TField instances it has created when the dataset was opened.
</descr>
<seealso>
<link id="TDataset.Close"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Assign(Source: TPersistent); Override -->
<element name="TField.Assign">
<short>Copy properties from one TField instance to another</short>
<descr>
<var>Assign</var> is overridden by <var>TField</var> to copy the field value (not the field properties) from <var>Source</var> if it exists.
If <var>Source</var> is <var>Nil</var> then the value of the field is cleared.
</descr>
<errors>
If <var>Source</var> is not a <var>TField</var> instance, then an exception will be raised.
</errors>
<seealso>
<link id="TField.Value"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Source: TPersistent -->
<element name="TField.Assign.Source">
<short>Source field to copy value from.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure AssignValue(const AValue: TVarRec) -->
<element name="TField.AssignValue">
<short>Assign value of a variant record to the field.</short>
<descr>
<p>
<var>AssignValue</var> assigns the value of a "array of const" record <var>AValue</var> (of type <var>TVarRec</var>) to the field's value.
If the record contains a TPersistent instance, it will be used as argument for the <var>Assign</var> to the field.
</p>
<p>
The dataset must be in edit mode to execute this method.
</p>
</descr>
<errors>
If the <var>AValue</var> contains an unsupported value (such as a non-nil pointer) then an exception will be raised.
If the dataset is not in one of the edit modes, then executing this method will raise an <link id="EDatabaseError"/> exception.
</errors>
<seealso>
<link id="TField.Assign"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AValue: TVarRec -->
<element name="TField.AssignValue.AValue">
<short>Value to assign to the field</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Clear; Virtual -->
<element name="TField.Clear">
<short>Clear the field contents.</short>
<descr>
<p>
<var>Clear</var> clears the contents of the field. After calling this method the value of the field is <var>Null</var> and <link id="TField.IsNull">IsNull</link> returns <var>True</var>.
</p>
<p>
The dataset must be in edit mode to execute this method.
</p>
</descr>
<errors>
If the dataset is not in one of the edit modes, then executing this method will raise an <link id="EDatabaseError"/> exception.
</errors>
<seealso>
<link id="TField.IsNull"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure FocusControl -->
<element name="TField.FocusControl">
<short>Set focus to the first control connected to this field.</short>
<descr>
<var>FocusControl</var> will set focus to the first control that is connected to this field.
</descr>
<errors>
If the control cannot receive focus, then this method will raise an exception.
</errors>
<seealso>
<link id="TDataset.EnableControls"/>
<link id="TDataset.DisableControls"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function GetData(Buffer: Pointer) : Boolean; Overload -->
<element name="TField.GetData">
<short>Get the data from this field</short>
<descr>
<var>GetData</var> is used internally by <var>TField</var> to fetch the value of the data of this field into the data buffer pointed to by <var>Buffer</var>.
If it returns <var>False</var> if the field has no value (i.e. is Null). If the <var>NativeFormat</var> parameter is true, then date/time formats should use
the <var>TDateTime</var> format. It should not be necessary to use this method, instead use the various 'AsXXX' methods to access the data.
</descr>
<errors>
No validity checks are performed on <var>Buffer</var>: it should point to a valid memory area, and should be large enough to contain the value of the field.
Failure to provide a buffer that matches these criteria will result in an exception.
</errors>
<seealso>
<link id="TField.IsNull"/>
<link id="TField.SetData"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TField.GetData.Result">
<short>True if data is available.</short>
</element>
<!-- argument Visibility: default
Declaration: Buffer: Pointer -->
<element name="TField.GetData.Buffer">
<short>Buffer to store field contents in.</short>
</element>
<!-- argument Visibility: default
Declaration: NativeFormat: Boolean -->
<element name="TField.GetData.NativeFormat">
<short>Return date/time values in native (TDateTime) format.</short>
</element>
<!-- function Visibility: public
Declaration: function IsBlob : Boolean; Virtual -->
<element name="TField.IsBlob">
<short>Is the field a BLOB field (untyped data of indeterminate size).</short>
<descr>
<var>IsBlob</var> returns <var>True</var> if the field is one of the blob field types.
The <var>TField</var> implementation returns false.
Only one of the blob-type field classes override this function and let it return <var>True</var>.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="TBlobField.IsBlob"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TField.IsBlob.Result">
<short><var>True</var> if the field is a BLOB field, <var>False</var> otherwise.</short>
</element>
<!-- function Visibility: public
Declaration: function IsValidChar(InputChar: Char) : Boolean; Virtual -->
<element name="TField.IsValidChar">
<short>Check whether a character is valid input for the field</short>
<descr>
<p>
<var>IsValidChar</var> checks whether <var>InputChar</var> is a valid characters for the current field.
It does this by checking whether <var>InputChar</var> is in the set of characters specified by the
<link id="TField.ValidChars"/> property. The <var>ValidChars</var> property will be initialized to
a correct set of characters by descendent classes. For instance, a numerical field will only accept
numerical characters and the sign and decimal separator characters.
</p>
<p>
Descendent classes can override this method to provide custom checks. The <var>ValidChars</var>
property can be set to restrict the list of valid characters to a subset of what would normally
be available.
</p>
</descr>
<seealso>
<link id="TField.ValidChars"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TField.IsValidChar.Result">
<short><var>True</var> if <var>InputChar</var> is in the set <var>ValidChars</var>.</short>
</element>
<!-- argument Visibility: default
Declaration: InputChar: Char -->
<element name="TField.IsValidChar.InputChar">
<short>Character to check</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure RefreshLookupList -->
<element name="TField.RefreshLookupList">
<short>Refresh the lookup list</short>
<descr>
<var>RefreshLookupList</var> fills the lookup list for a lookup fields with all key, value pairs found in the lookup dataset.
It will open the lookup dataset if needed. The lookup list is only used if the <link id="TField.LookupCache"/> property is set to <var>True</var>.
</descr>
<errors>
If the values of the various lookup properties is not correct or the lookup dataset cannot be opened, then an exception will be raised.
</errors>
<seealso>
<link id="TField.LookupDataset">LookupDataset</link>
<link id="TField.LookupKeyFields">LookupKeyFields</link>
<link id="TField.LookupResultField">LookupResultField</link>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure SetData(Buffer: Pointer); Overload -->
<element name="TField.SetData">
<short>Save the field data</short>
<descr>
<p>
<var>SetData</var> saves the value of the field data in <var>Buffer</var> to the dataset internal buffer.
The <var>Buffer</var> pointer should point to a memory buffer containing the data for the field in the correct format.
If the <var>NativeFormat</var> parameter is true, then date/time formats should use
the <var>TDateTime</var> format.
</p>
<p>
There should normally not be any need to call <var>SetData</var> directly: it is called by the various setter methods of the AsXXX properties of <var>TField</var>.
</p>
</descr>
<errors>
No validity checks are performed on <var>Buffer</var>: it should point to a valid memory area, and should be large enough to contain the value of the field.
Failure to provide a buffer that matches these criteria will result in an exception.
</errors>
<seealso>
<link id="TField.GetData"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Buffer: Pointer -->
<element name="TField.SetData.Buffer">
<short>Buffer to copy field value from</short>
</element>
<!-- argument Visibility: default
Declaration: NativeFormat: Boolean -->
<element name="TField.SetData.NativeFormat">
<short>Is the provided data in native format</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure SetFieldType(AValue: TFieldType); Virtual -->
<element name="TField.SetFieldType">
<short>Set the field data type</short>
<descr>
<var>SetFieldType</var> does nothing, but it can be overridden by descendent classes to provide special handling when the field type is set.
</descr>
<seealso>
<link id="TField.DataType"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AValue: TFieldType -->
<element name="TField.SetFieldType.AValue">
<short>DataType for the field</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Validate(Buffer: Pointer) -->
<element name="TField.Validate">
<short>Validate the data buffer</short>
<descr>
<var>Validate</var> is called by <var>SetData</var> prior to writing the data from <var>Buffer</var> to the dataset buffer.
It will call the <link id="TField.OnValidate"/> event handler, if one is set, to allow the application programmer to
program additional checks.
</descr>
<seealso>
<link id="TField.SetData"/>
<link id="TField.OnValidate"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Buffer: Pointer -->
<element name="TField.Validate.Buffer">
<short>Buffer with the data to be validated</short>
</element>
<!-- property Visibility: public
Declaration: AsBCD : TBCD -->
<element name="TField.AsBCD">
<short>Access the field's contents as a BCD (Binary coded Decimal)</short>
<descr>
<var>AsBCD</var> can be used to read or write the contents of the field as a BCD value (Binary Coded Decimal).
If the native type of the field is not BCD, then an attempt will be made to convert the field value from the native
format to a BCD value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a BCD value, an exception may be raised.
</descr>
<seealso>
<link id="TField.AsCurrency"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsBoolean : Boolean -->
<element name="TField.AsBoolean">
<short>Access the field's contents as a Boolean value.</short>
<descr>
<var>AsBoolean</var> can be used to read or write the contents of the field as a boolean value.
If the native type of the field is not Boolean, then an attempt will be made to convert the field value from the native
format to a boolean value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a Boolean value (for instance a string value), an exception may be raised.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsInteger"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsCurrency : Currency -->
<element name="TField.AsCurrency">
<short>Access the field's contents as a Currency value.</short>
<descr>
<var>AsBoolean</var> can be used to read or write the contents of the field as a currency value.
If the native type of the field is not Boolean, then an attempt will be made to convert the field value from the native
format to a currency value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a currency-compatible value (dates or string values), an exception may be raised.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsFloat"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsDateTime : TDateTime -->
<element name="TField.AsDateTime">
<short>Access the field's contents as a TDateTime value.</short>
<descr>
<var>AsDateTime</var> can be used to read or write the contents of the field as a TDateTime value (for both date and time values).
If the native type of the field is not a date or time value, then an attempt will be made to convert the field value from the native
format to a TDateTime value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a TDateTime-compatible value (dates or string values), an exception may be raised.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsString"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsFloat : Double -->
<element name="TField.AsFloat">
<short>Access the field's contents as a floating-point (Double) value.</short>
<descr>
<var>AsFloat</var> can be used to read or write the contents of the field as a floating-point value (of type double, i.e. with double precision).
If the native type of the field is not a floating-point value, then an attempt will be made to convert the field value from the native
format to a floating-point value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a floating-point-compatible value (string values for instance), an exception may be raised.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsString"/>
<link id="TField.AsCurrency"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsLongint : LongInt -->
<element name="TField.AsLongint">
<short>Access the field's contents as a 32-bit signed integer (longint) value.</short>
<descr>
<p>
<var>AsLongint</var> can be used to read or write the contents of the field as a 32-bit signed integer value (of type longint).
If the native type of the field is not a longint value, then an attempt will be made to convert the field value from the native
format to a longint value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a 32-bit signed integer-compatible value (string values for instance), an exception may be raised.
</p>
<p>
This is an alias for the <link id="TField.AsInteger"/>.
</p>
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsString"/>
<link id="TField.AsInteger"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsLargeInt : LargeInt -->
<element name="TField.AsLargeInt">
<short>Access the field's contents as a 64-bit signed integer (longint) value.</short>
<descr>
<var>AsLargeInt</var> can be used to read or write the contents of the field as a 64-bit signed integer value (of type Int64).
If the native type of the field is not an Int64 value, then an attempt will be made to convert the field value from the native
format to an Int64 value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a 64-bit signed integer-compatible value (string values for instance), an exception may be raised.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsString"/>
<link id="TField.AsInteger"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsInteger : Integer -->
<element name="TField.AsInteger">
<short>Access the field's contents as a 32-bit signed integer (longint) value.</short>
<descr>
<var>AsInteger</var> can be used to read or write the contents of the field as a 32-bit signed integer value (of type Integer).
If the native type of the field is not an integer value, then an attempt will be made to convert the field value from the native
format to a integer value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a 32-bit signed integer-compatible value (string values for instance), an exception may be raised.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsString"/>
<link id="TField.AsLongint"/>
<link id="TField.AsInt64"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsString : String -->
<element name="TField.AsString">
<short>Access the field's contents as an AnsiString value.</short>
<descr>
<var>AsString</var> can be used to read or write the contents of the field as an AnsiString value.
If the native type of the field is not an ansistring value, then an attempt will be made to convert the field value from the native
format to a ansistring value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not an ansistring-compatible value, an exception may be raised.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsWideString"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsWideString : WideString -->
<element name="TField.AsWideString">
<short>Access the field's contents as a WideString value.</short>
<descr>
<var>AsWideString</var> can be used to read or write the contents of the field as a WideString value.
If the native type of the field is not a widestring value, then an attempt will be made to convert the field value from the native
format to a widestring value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a widestring-compatible value, an exception may be raised.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.Astring"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsVariant : variant -->
<element name="TField.AsVariant">
<short>Access the field's contents as a Variant value.</short>
<descr>
<var>AsVariant</var> can be used to read or write the contents of the field as a Variant value.
If the native type of the field is not a Variant value, then an attempt will be made to convert the field value from the native
format to a variant value when reading the field's content. Likewise, when writing the property, the value will be converted
to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field
whose native data type is not a variant-compatible value, an exception may be raised.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.Astring"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AttributeSet : String -->
<element name="TField.AttributeSet">
<short>Not used: dictionary information</short>
<descr><var>AttributeSet</var> was used in older Delphi versions to store data dictionary information for use in data-aware controls at design time.
Not used in FreePascal (or newer Delphi versions); kept for Delphi compatibility.
</descr>
<seealso>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Calculated : Boolean -->
<element name="TField.Calculated">
<short>Is the field a calculated field ?</short>
<descr>
<var>Calculated</var> is <var>True</var> if the <link id="TField.FieldKind">FieldKind</link> is <var>fkCalculated</var>.
Setting the property will result in <var>FieldKind</var> being set to <var>fkCalculated</var> (for a value of <var>True</var>)
or <var>fkData</var>. This property should be considered read-only.
</descr>
<seealso>
<link id="TField.FieldKind"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: CanModify : Boolean -->
<element name="TField.CanModify">
<short>Can the field's contents be modified.</short>
<descr>
<var>CanModify</var> is <var>True</var> if the field is not read-only and the dataset allows modification.
</descr>
<seealso>
<link id="TField.ReadOnly"/>
<link id="TDataset.CanModify"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: CurValue : Variant -->
<element name="TField.CurValue">
<short>Current value of the field</short>
<descr>
<var>CurValue</var> returns the current value of the field as a variant.
</descr>
<seealso>
<link id="TField.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataSet : TDataSet -->
<element name="TField.DataSet">
<short>Dataset this field belongs to</short>
<descr>
<var>Dataset</var> contains the dataset this field belongs to. Writing this property will add the field to the list of fields of a dataset,
after removing if from the list of fields of the dataset the field was previously assigned to. It should under normal circumstances never
be necessary to set this property, the <var>TDataset</var> code will take care of this.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDataset.Fields"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataSize : Integer -->
<element name="TField.DataSize">
<short>Size of the field's data</short>
<descr>
<var>DataSize</var> is the memory size needed to store the field's contents. This is different from the <link id="TField.Size">Size</link> property which
declares a logical size for datatypes that have a variable size (such as string fields). For BLOB fields, use the <link id="TBlobField.BlobSize"/>
property to get the size of the field's contents for the current record..
</descr>
<seealso>
<link id="TField.Size"/>
<link id="TBlobField.BlobSize"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataType : TFieldType -->
<element name="TField.DataType">
<short>The data type of the field.</short>
<descr>
<var>Datatype</var> indicates the type of data the field has. This property is initialized when the dataset is opened or when persistent fields are created for the dataset.
Instead of checking the class type of the field, it is better to check the <var>Datatype</var>, since the actual class of the TField instance may differ depending on the dataset.
</descr>
<seealso>
<link id="TField.FieldKind"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DisplayName : String -->
<element name="TField.DisplayName">
<short>User-readable fieldname</short>
<descr>
<p>
<var>DisplayName</var> is the name of the field as it will be displayed to the user e.g. in grid column headers.
By default it equals the <link id="TField.FieldName">FieldName</link> property, unless assigned another value.
</p>
<p>
The use of this property is deprecated. Use <link id="TField.Displaylabel">DisplayLabel</link> instead.
</p>
</descr>
<seealso>
<link id="Tfield.FieldName"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DisplayText : String -->
<element name="TField.DisplayText">
<short>Formatted field value</short>
<descr>
<var>DisplayText</var> returns the field's value as it should be displayed to the user, with all necessary formatting applied.
Controls that should display the value of the field should use <var>DisplayText</var> instead of the <link id="TField.AsString"/>
property, which does not take into account any formatting.
</descr>
<seealso>
<link id="TField.AsString"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: FieldNo : LongInt -->
<element name="TField.FieldNo">
<short>Number of the field in the record</short>
<descr>
<var>FieldNo</var> is the position of the field in the record. It is a 1-based index and is initialized when
the dataset is opened or when persistent fields are created for the dataset.
</descr>
<seealso>
<link id="TField.Index"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: IsIndexField : Boolean -->
<element name="TField.IsIndexField">
<short>Is the field an indexed field ?</short>
<descr>
<var>IsIndexField</var> is true if the field is an indexed field. By default this property is <var>False</var>,
descendents of <link id="TDataset"/> can change this to <var>True</var>.
</descr>
<seealso>
<link id="TField.Calculated"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: IsNull : Boolean -->
<element name="TField.IsNull">
<short>Is the field empty</short>
<descr>
<var>IsNull</var> is <var>True</var> if the field does not have a value.
If the underlying data contained a value, or a value is written to it, <var>IsNull</var> will return <var>False</var>.
After <link id="TDataset.Insert"/> is called or <link id="TField.Clear">Clear</link> is called then <var>IsNull</var>
will return <var>True</var>.
</descr>
<seealso>
<link id="TField.Clear"/>
<link id="TDataset.Insert"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Lookup : Boolean -->
<element name="TField.Lookup">
<short>Is the field a lookup field</short>
<descr>
<var>Lookup</var> is <var>True</var> if the <link id="Tfield.FieldKind">FieldKind</link> equals <var>fkLookup</var>, <var>False</var> otherwise.
Setting the <var>Lookup</var> property will switch the <var>FieldKind</var> between the <var>fkLookup</var> and <var>fkData</var>.
</descr>
<seealso>
<link id="TField.FieldKind"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: NewValue : Variant -->
<element name="TField.NewValue">
<short>The new value of the field</short>
<descr>
<var>NewValue</var> returns the new value of the field. The FPC implementation of <link id="TDataset"/> does not yet support this.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.CurValue"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Offset : Word -->
<element name="TField.Offset">
<short>Offset of the field's value in the dataset buffer</short>
<descr>
<var>Offset</var> is the location of the field's contents in the dataset memory buffer.
It is read-only and initialized by the dataset when it is opened.
</descr>
<seealso>
<link id="TField.FieldNo"/>
<link id="TField.Index"/>
<link id="TField.Datasize"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Size : Integer -->
<element name="TField.Size">
<short>Logical size of the field</short>
<descr>
<var>Size</var> is the declared size of the field for datatypes that can have variable size, such as string types, BCD types or array types.
To get the size of the storage needed to store the field's content, the <link id="TField.DataSize">DataSize</link> should be used. For blob
fields, the current size of the data is not guaranteed to be present.
</descr>
<seealso>
<link id="TField.DataSize">DataSize</link>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Text : String -->
<element name="TField.Text">
<short>Text representation of the field</short>
<descr>
<var>Text</var> can be used to retrieve or set the value of the value as a string value for editing purposes. It will trigger the <link id="TField.OnGetText"/> event handler
if a handler was specified. For display purposes, the <link id="TField.DisplayText"/> property should be used.
Controls that should display the value in a textual format should use text whenever they must display the text for editing purposes.
Inversely, when a control should save the value entered by the user, it should write the contents to the <var>Text</var> property,
not the <link id="Tfield.AsString">AsString</link> property, this will invoke the <link id="Tfield.OnSetText"/> event handler, if one is set.
</descr>
<seealso>
<link id="TField.AsString"/>
<link id="TField.DisplayText"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: ValidChars : TFieldChars -->
<element name="TField.ValidChars">
<short>Characters that are valid input for the field's content</short>
<descr>
<var>ValidChars</var> is a property that is initialized by descendent classes to contain the set of characters that can be entered in an edit control
which is used to edit the field. Numerical fields will set this to a set of numerical characters, string fields will set this to all possible characters.
It is possible to restrict the possible input by setting this property to a subset of all possible characters (for example, set it to all
uppercase letters to allow the user to enter only uppercase characters. <var>TField</var> itself does not enforce the validity of the
data when the content of the field is set, an edit control should check the validity of the user input by means of the
<link id="TField.IsValidChar">IsValidChar</link> function.
</descr>
<seealso>
<link id="TField.IsValidChar"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Value : variant -->
<element name="TField.Value">
<short>Value of the field as a variant value</short>
<descr>
<p>
<var>Value</var> can be used to read or write the value of the field as a Variant value. When setting the value, the value will be converted to the actual type of
the field as defined in the underlying data. Likewise, when reading the value property, the actual field value will be converted to a variant value. If the field
does not contain a value (when <link id="TField.IsNull">IsNull</link> returns <var>True</var>), then <var>Value</var> will contain <var>Null</var>.
</p>
<p>
It is not recommended to use the <var>Value</var> property: it should only be used when the type of the field is unknown. If the type of the field is known,
it is better to use one of the <var>AsXXX</var> properties, which will not only result in faster code, but will also avoid strange type conversions.
</p>
</descr>
<seealso>
<link id="TField.IsNull"/>
<link id="TField.Text"/>
<link id="TField.DisplayText"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OldValue : variant -->
<element name="TField.OldValue">
<short>Old value of the field</short>
<descr>
<var>OldValue</var> returns the value of the field prior to an edit operation. This feature is currently not supported in FPC.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.CurValue"/>
<link id="TField.NewValue"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: LookupList : TLookupList -->
<element name="TField.LookupList">
<short>List of lookup values</short>
<descr>
<var>LookupList</var> contains the list of key, value pairs used when caching the possible lookup values for a lookup field. The list is only valid when the <link id="TField.LookupCache">LookupCache</link>
property is set to <var>True</var>. It can be refreshed using the <link id="TField.RefreshLookupList">RefreshLookupList</link> method.
</descr>
<seealso>
<link id="TField.RefreshLookupList"/>
<link id="TField.LookupCache"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Alignment : TAlignment -->
<element name="TField.Alignment">
<short>Alignment for this field</short>
<descr>
<var>Alignment</var> contains the alignment that UI controls should observe when displaying the contents of the field.
Setting the property at the field level will make sure that all DB-Aware controls will display the contents of the field with the same alignment.
</descr>
<seealso>
<link id="TField.DisplayText"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: CustomConstraint : String -->
<element name="TField.CustomConstraint">
<short>Custom constraint for the field's value</short>
<descr>
<p>
<var>CustomConstraint</var> may contain a constraint that will be enforced when the dataset posts it's data.
It should be a SQL-like expression that results in a <var>True</var> or <var>False</var> value. Examples of
valid constraints are:
</p>
<pre>
Salary < 10000
YearsEducation < Age
</pre>
<p>
If the constraint is not satisfied when the record is posted, then an exception will be raised with the value of
<link id="TField.ConstraintErrorMessage">ConstraintErrorMessage</link> as a message.
</p>
<p>
This feature is not yet implemented in FPC.
</p>
</descr>
<seealso>
<link id="TField.ConstraintErrorMessage"/>
<link id="TField.ImportedConstraint"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: ConstraintErrorMessage : String -->
<element name="TField.ConstraintErrorMessage">
<short>Message to display if the <var>CustomConstraint</var> constraint is violated.</short>
<descr>
<p>
<var>ConstraintErrorMessage</var> is the message that should be displayed when the dataset checks the constraints and the constraint in <link id="TField.CustomConstraint"/> is violated.
</p>
<p>
This feature is not yet implemented in FPC.
</p>
</descr>
<seealso>
<link id="TField.CustomConstraint"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DefaultExpression : String -->
<element name="TField.DefaultExpression">
<short>Default value for the field</short>
<descr>
<p>
<var>DefaultValue</var> can be set to a value that should be entered in the field whenever the <link id="TDataset.Append"/> or <link id="TDataset.Insert"/> methods are executed.
It should contain a valid SQL expression that results in the correct type for the field.
</p>
<p>
This feature is not yet implemented in FPC.
</p>
</descr>
<seealso>
<link id="TDataset.Insert"/>
<link id="TDataset.Append"/>
<link id="TDataset.CustomConstraint"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DisplayLabel : String -->
<element name="TField.DisplayLabel">
<short>Name of the field for display purposes</short>
<descr>
<p>
<var>DisplayLabel</var> is the name of the field as it will be displayed to the user e.g. in grid column headers.
By default it equals the <link id="TField.FieldName">FieldName</link> property, unless assigned another value.
</p>
</descr>
<seealso>
<link id="TField.FieldName"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DisplayWidth : LongInt -->
<element name="TField.DisplayWidth">
<short>Width of the field in characters</short>
<descr>
<var>DisplayWidth</var> is the width (in characters) that should be used by controls that display the contents
of the field (such as in grids or lookup lists). It is initialized to a default value for most fields (e.g.
it equals <link id="TField.Size">Size</link> for string fields) but can be modified to obtain a more appropriate
value for the field's expected content.
</descr>
<seealso>
<link id="TField.Alignment"/>
<link id="TField.DisplayText"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: FieldKind : TFieldKind -->
<element name="TField.FieldKind">
<short>The kind of field.</short>
<descr>
<var>FieldKind</var> indicates the type of the <var>TField</var> instance. Besides <var>TField</var> instances that represent
fields present in the underlying data records, there can also be calculated or lookup fields. This property determines
what kind of field the TField instance is.
</descr>
<link id="TField.IsLookup"/>
<link id="TField.Calculated"/>
<link id="TField.DataType"/>
<seealso>
</seealso>
</element>
<!-- property Visibility: published
Declaration: FieldName : String -->
<element name="TField.FieldName">
<short>Name of the field</short>
<descr>
<var>FieldName</var> is the name of the field as it is defined in the underlying data structures (for instance the name
of the field in a SQL table, DBAse file, or the alias of the field if it was aliased in a SQL SELECT statement.
It does not always equal the <var>Name</var> property, which is the name of the <var>TField</var> component instance.
The <var>Name</var> property will generally equal the name of the dataset appended with the value of the <var>FieldName</var> property.
</descr>
<seealso>
<link id="TFieldDef.Name"/>
<link id="TField.Size"/>
<link id="TField.DataType"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: HasConstraints : Boolean -->
<element name="TField.HasConstraints">
<short>Does the field have any constraints defined</short>
<descr>
<var>HasConstraints</var> will contain <var>True</var> if one of the <link id="TField.CustomConstraint">CustomConstraint</link>
or <link id="TField.ImportedConstraint">ImportedConstraint</link> properties is set to a non-empty value.
</descr>
<seealso>
<link id="TField.CustomConstraint">CustomConstraint</link>
<link id="TField.ImportedConstraint">ImportedConstraint</link>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Index : LongInt -->
<element name="TField.Index">
<short>Index of the field in the list of fields</short>
<descr>
<var>Index</var> is the name of the field in the list of fields of a dataset.
It is, in general, the (0-based) position of the field in the underlying data structures, but this need not always be so.
The <link id="TField.FieldNo"/> property should be used for that.
</descr>
<seealso>
<link id="TField.FieldNo"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: ImportedConstraint : String -->
<element name="TField.ImportedConstraint">
<short>Constraint for the field value on the level of the underlying database</short>
<descr>
<var>ImportedConstraint</var> contains any constraints that the underlying data engine imposes on the values of a field (usually in an SQL CONSTRAINT) clause.
Whether this field is filled with appropriate data depends on the implementation of the <link id="TDataset"/> descendent.
</descr>
<seealso>
<link id="TField.CustomConstraint"/>
<link id="TDataset"/>
<link id="TField.ConstraintErrorMessage"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: KeyFields : String -->
<element name="TField.KeyFields">
<short>Key fields to use when looking up a field value.</short>
<descr>
<var>KeyFields</var> should contain a semi-colon separated list of field names from the lookupfield's dataset which will be matched to the fields
enumerated in <link id="TField.LookupKeyFields">LookupKeyFields</link> in the dataset pointed to by the <link id="Tfield.LookupDataset">LookupDataset</link> property.
</descr>
<seealso>
<link id="TField.LookupKeyFields">LookupKeyFields</link>
<link id="Tfield.LookupDataset">LookupDataset</link>
</seealso>
</element>
<!-- property Visibility: published
Declaration: LookupCache : Boolean -->
<element name="TField.LookupCache">
<short>Should lookup values be cached</short>
<descr>
<var>LookupCache</var> is by default <var>False</var>. If it is set to <var>True</var> then a list of key, value pairs will be created from the
<link id="TField.LookupKeyFields">LookupKeyFields</link> in the dataset pointed to by the <link id="Tfield.LookupDataset">LookupDataset</link> property.
The list of key, value pairs is available through the <link id="TField.LookupList"/> property.
</descr>
<seealso>
<link id="TField.LookupKeyFields">LookupKeyFields</link>
<link id="Tfield.LookupDataset">LookupDataset</link>
<link id="TField.LookupList"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: LookupDataSet : TDataSet -->
<element name="TField.LookupDataSet">
<short>Dataset with lookup values</short>
<descr>
<var>LookupDataset</var> is used by lookup fields to fetch the field's value. The <link id="TField.LookupKeyFields">LookupKeyFields</link> property is
used as a list of fields to locate a record in this dataset, and the value of the <link id="TField.LookupResultField">LookupResultField</link> field is then used as the
value of the lookup field.
</descr>
<seealso>
<link id="TField.KeyFields">KeyFields</link>
<link id="TField.LookupKeyFields">LookupKeyFields</link>
<link id="TField.LookupResultField">LookupResultField</link>
<link id="TField.LookupCache">LookupCache</link>
</seealso>
</element>
<!-- property Visibility: published
Declaration: LookupKeyFields : String -->
<element name="TField.LookupKeyFields">
<short>Names of fields on which to perform a locate</short>
<descr>
<var>LookupKeyFields</var> should contain a semi-colon separated list of field names from the dataset pointed to by the <link id="Tfield.LookupDataset">LookupDataset</link> property.
These fields will be used when locating a record corresponding to the values in the <link id="TField.KeyFields"/> property.
</descr>
<seealso>
<link id="TField.KeyFields">KeyFields</link>
<link id="TField.LookupDataset">LookupDataset</link>
<link id="TField.LookupResultField">LookupResultField</link>
<link id="TField.LookupCache">LookupCache</link>
</seealso>
</element>
<!-- property Visibility: published
Declaration: LookupResultField : String -->
<element name="TField.LookupResultField">
<short>Name of field to use as lookup value</short>
<descr>
<var>LookupResultField</var> contains the field name from a field in the dataset pointed to by the <link id="Tfield.LookupDataset">LookupDataset</link> property.
The value of this field will be used as the lookup's field value when a record is found in the lookup dataset as result for the lookup field value.
</descr>
<seealso>
<link id="TField.KeyFields">KeyFields</link>
<link id="TField.LookupDataset">LookupDataset</link>
<link id="TField.LookupKeyFields">LookupKeyFields</link>
<link id="TField.LookupCache">LookupCache</link>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Origin : String -->
<element name="TField.Origin">
<short>Original fieldname of the field.</short>
<descr>
<var>Origin</var> contains the origin of the field in the form <var>TableName.fieldName</var>.
This property is filled only if the <link id="TDataset"/> descendent or the database engine support retrieval of this property.
It can be used to automatically create update statements, together with the <link id="TField.ProviderFlags"/> property.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField.ProviderFlags"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: ProviderFlags : TProviderFlags -->
<element name="TField.ProviderFlags">
<short>Flags for provider or update support</short>
<descr>
<p>
<var>ProviderFlags</var> contains a set of flags that can be used by engines that automatically generate update SQL statements or update data packets.
The various items in the set tell the engine whether the key is a key field, should be used in the where clause of an update statement or whether - in fact - it should be updated at all.
</p>
<p>
These properties should be set by the programmer so engines such as SQLDB can create correct update SQL statements whenever they need to post changes to the database.
Note that to be able to set these properties in a designer, persistent fields must be created.
</p>
</descr>
<seealso>
<link id="TField.Origin"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: ReadOnly : Boolean -->
<element name="TField.ReadOnly">
<short>Is the field read-only</short>
<descr>
<var>ReadOnly</var> can be set to <var>True</var> to prevent controls of writing data to the field, effectively making it a read-only field.
Setting this property to <var>True</var> does not prevent the field from getting a value through code: it is just an indication for GUI
controls that the field's value is considered read-only.
</descr>
<seealso>
<link id="TFieldDef.Attributes"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Required : Boolean -->
<element name="TField.Required">
<short>Does the field require a value</short>
<descr>
<var>Required</var> determines whether the field needs a value when posting the data: when a dataset posts the changed made to a record
(new or existing), it will check whether all fields with the <var>Required</var> property have a value assigned to them. If not, an
exception will be raised. Descendents of <link id="TDataset"/> will set the property to <var>True</var> when opening the dataset,
depending on whether the field is required in the underlying data engine. For fields that are not required by the database engine,
the programmer can still set the property to <var>True</var> if the business logic requires a field.
</descr>
<seealso>
<link id="TDataset.Open"/>
<link id="TField.ReadOnly">ReadOnly</link>
<link id="TField.Visible">Visible</link>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Visible : Boolean -->
<element name="TField.Visible">
<short>Should the field be shown in grids</short>
<descr>
<var>Visible</var> can be used to hide fields from a grid when displaying data to the user.
Invisible fields will by default not be shown in the grid.
</descr>
<seealso>
<link id="TField.ReadOnly"/>
<link id="TField.Required"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: OnChange : TFieldNotifyEvent -->
<element name="TField.OnChange">
<short>Event triggered when the field's value has changed</short>
<descr>
<var>OnChange</var> is triggered whenever the field's value has been changed.
It is triggered only after the new contents have been written to the dataset buffer, so it can be used to react to changes in the field's content.
To prevent the writing of changes to the buffer, use the <link id="TField.OnValidate"/> event. It is not allowed to change the state of the dataset
or the contents of the field during the execution of this event handler: doing so may lead to infinite loops and other unexpected results.
</descr>
<seealso>
<link id="TField.OnChange"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: OnGetText : TFieldGetTextEvent -->
<element name="TField.OnGetText">
<short>Event to format the field's content</short>
<descr>
<var>OnGetText</var> is triggered whenever the <link id="TField.Text"/> or <link id="TField.DisplayText"/> properties are read.
It can be used to return a custom formatted string in the <var>AText</var> parameter which will then typically be used by a control to display the field's contents
to the user. It is not allowed to change the state of the dataset or the contents of the field during the execution of this event handler.
</descr>
<seealso>
<link id="TField.Text"/>
<link id="TField.DisplayText"/>
<link id="TField.OnSetText"/>
<link id="TFieldGetTextEvent"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: OnSetText : TFieldSetTextEvent -->
<element name="TField.OnSetText">
<short>Event to set the field's content based on a user-formatted string</short>
<descr>
<var>OnSetText</var> is called whenever the <link id="TField.Text"/> property is written. It can be used to set the actual value of the field
based on the passed <var>AText</var> parameter. Typically, this event handler will perform the inverse operation of the <link id="TField.OnGetText"/> handler, if it exists.
</descr>
<seealso>
<link id="TField.Text"/>
<link id="TField.OnGetText"/>
<link id="TFieldGetTextEvent"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: OnValidate : TFieldNotifyEvent -->
<element name="TField.OnValidate">
<short>Event to validate the value of a field before it is written to the data buffer</short>
<descr>
<var>OnValidate</var> is called prior to writing a new field value to the dataset's data buffer.
It can be used to prevent writing the new value to the buffer by raising an exception in the event handler.
Note that this event handler is always called, irrespective of the way the value of the field is set.
</descr>
<seealso>
<link id="TField.Text"/>
<link id="TField.OnGetText"/>
<link id="TField.OnSetText"/>
<link id="TField.OnChange"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TStringField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TStringField">
<short>Field class to handle ansistring fields</short>
<descr>
<var>TStringField</var> is the class used whenever a dataset has to handle a string field type (data type <var>ftString</var>).
This class overrides some of the standard <link id="TField"/> methods to handle string data,
and introduces some properties that are only pertinent for data fields of string type.
It should never be necessary to create an instance of <var>TStringField</var> manually, a field
of this class will be instantiated automatically for each string field when a dataset is opened.
</descr>
<seealso>
<link id="TField"/>
<link id="TWideStringField"/>
<link id="TDataset"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TStringField.Create">
<short>Create a new instance of the TStringField class</short>
<descr>
<var>Create</var> is used to create a new instance of the <var>TStringField</var> class. It initializes
some <link id="TField"/> properties after having called the inherited constructor.
</descr>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TStringField.Create.AOwner">
<short>Owner for the field class instance</short>
</element>
<!-- property Visibility: public
Declaration: FixedChar : Boolean -->
<element name="TStringField.FixedChar">
<short>Is the string declared with a fixed length ?</short>
<descr>
<var>FixedChar</var> is <var>True</var> if the underlying data engine has declared the field with a fixed length, as in a SQL CHAR() declaration:
the field's value will then always be padded with as many spaces as needed to obtain the declared length of the field. If it is <var>False</var>
then the declared length is simply the maximum length for the field, and no padding with spaces is performed.
</descr>
</element>
<!-- property Visibility: public
Declaration: Transliterate : Boolean -->
<element name="TStringField.Transliterate">
<short>Should the field value be transliterated when reading or writing</short>
<descr>
<var>Transliterate</var> can be set to <var>True</var> if the field's contents should be transliterated prior to copying it from or to the field's buffer.
Transliteration is done by a method of <var>TDataset</var>: <link id="TDataset.Translate"/>.
</descr>
<seealso>
<link id="TDataset.Translate"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Value : String -->
<element name="TStringField.Value">
<short>Value of the field as a string</short>
<descr>
<var>Value</var> is overridden in <var>TField</var> to return the value of the field as a string. It returns the contents of <link id="TField.AsString"/>
when read, or sets the <var>AsString</var> property when written to.
</descr>
<seealso>
<link id="TField.AsString"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Size : -->
<element name="TStringField.Size">
<short>Maximum size of the string</short>
<descr>
<var>Size</var> is made published by the <var>TStringField</var> class so it can be set in the IDE: it is the declared maximum size of the string (in characters)
and is used to calculate the size of the dataset buffer.
</descr>
<seealso>
<link id="TField.Size"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TWideStringField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TWideStringField">
<short>Field class for widestring data</short>
<descr>
<var>TWideStringField</var> is the string field class instantiated for fields of data type <var>ftWideString</var>.
This class overrides some of the standard <link id="TField"/> methods to handle widestring data,
and introduces some properties that are only pertinent for data fields of widestring type.
It should never be necessary to create an instance of <var>TWideStringField</var> manually, a field
of this class will be instantiated automatically for each widestring field when a dataset is opened.
</descr>
<seealso>
<link id="TField"/>
<link id="TStringField"/>
<link id="TDataset"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(aOwner: TComponent); Override -->
<element name="TWideStringField.Create">
<short>Create a new instance of the <var>TWideStringField</var> class.</short>
<descr>
<var>Create</var> is used to create a new instance of the <var>TWideStringField</var> class. It initializes
some <link id="TField"/> properties after having called the inherited constructor.
</descr>
</element>
<!-- argument Visibility: default
Declaration: aOwner: TComponent -->
<element name="TWideStringField.Create.aOwner">
<short>Owner of the TWideStringField class instance</short>
</element>
<!-- property Visibility: public
Declaration: Value : WideString -->
<element name="TWideStringField.Value">
<short>Value of the field as a widestring</short>
<descr>
<var>Value</var> is overridden by the <var>TWideStringField</var> to return a <var>WideString</var> value.
It is the same value as the <link id="TField.AsWideString"/> property.
</descr>
<seealso>
<link id="TField.AsWideString"/>
<link id="TField.Value"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TNumericField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TNumericField">
<short>Base class for all numerical data field classes</short>
<descr>
<p><var>TNumericField</var> is an abstract class which overrides some of the methods of <link id="TField"/> to
handle numerical data. It also introduces or publishes a couple of properties that are only relevant in
the case of numerical data, such as <link id="TNumericField.DisplayFormat"/> and <link id="TNumericField.EditFormat"/>.
</p>
<p>
Since <var>TNumericField</var> is an abstract class, it must never be instantiated directly.
Instead one of the descendent classes should be created.
</p>
</descr>
<seealso>
<link id="TField"/>
<link id="TNumericField.DisplayFormat"/>
<link id="TNumericField.EditFormat"/>
<link id="TField.Alignment"/>
<link id="TIntegerField"/>
<link id="TLargeIntField"/>
<link id="TFloatField"/>
<link id="TBCDField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TNumericField.Create">
<short>Create a new instance of <var>TNumericField</var></short>
<descr>
<var>Create</var> calls the inherited constructor and then initializes the <link id="TField.Alignment"/> property with
</descr>
<seealso>
<link id="TField.Alignment"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TNumericField.Create.AOwner">
<short>Owner of the field component</short>
</element>
<!-- property Visibility: published
Declaration: Alignment : -->
<element name="TNumericField.Alignment">
<short>Alignment of the field</short>
<descr>
<var>Alignment</var> is published by <var>TNumericField</var> with <var>taRightJustify</var> as a default value.
</descr>
<seealso>
<link id="TField.Alignment"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DisplayFormat : String -->
<element name="TNumericField.DisplayFormat">
<short>Format string for display of numerical data</short>
<descr>
<var>DisplayFormat</var> specifies a format string (such as used by the <link id="#rtl.sysutils.Format">Format</link>
and <link id="#rtl.sysutils.FormatFloat">FormatFloat</link> functions) for display purposes: the <link id="TField.DisplayText"/>
property will use this property to format the field's value. Which formatting function (and, consequently, which format can be
entered) is used depends on the descendent of the <var>TNumericField</var> class.
</descr>
<seealso>
<link id="#rtl.sysutils.Format">Format</link>
<link id="#rtl.sysutils.FormatFloat">FormatFloat</link>
<link id="TField.DisplayText"/>
<link id="TNumericField.EditFormat"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: EditFormat : String -->
<element name="TNumericField.EditFormat">
<short>Format string for editing of numerical data</short>
<descr>
<var>EditFormat</var> specifies a format string (such as used by the <link id="#rtl.sysutils.Format">Format</link>
and <link id="#rtl.sysutils.FormatFloat">FormatFloat</link> functions) for editing purposes: the <link id="TField.Text"/>
property will use this property to format the field's value. Which formatting function (and, consequently, which format can be
entered) is used depends on the descendent of the <var>TNumericField</var> class.
</descr>
<seealso>
<link id="#rtl.sysutils.Format">Format</link>
<link id="#rtl.sysutils.FormatFloat">FormatFloat</link>
<link id="TField.Text"/>
<link id="TNumericField.DisplayFormat"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TLongintField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TLongintField">
<short>Field class for 32-bit signed integer data</short>
<descr>
<p>
<var>TLongintField</var> is instantiated when a dataset must manage a field with 32-bit signed data:
the data type <var>ftInteger</var>. It overrides some methods of <link id="TField"/> to handle integer
data, and sets some of the properties to values for integer data. It also introduces some methods and
properties specific to integer data such as <link id="TLongintField.MinValue">MinValue</link> and
<link id="TLongintField.MaxValue">MaxValue</link>.
</p>
<p>
It should never be necessary to create an instance of <var>TLongintField</var> manually, a field
of this class will be instantiated automatically for each integer field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TField"/>
<link id="TLongintField.MaxValue">MaxValue</link>
<link id="TLongintField.MinValue">MinValue</link>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TLongintField.Create">
<short>Create a new instance of <var>TLongintField</var></short>
<descr>
<var>Create</var> initializes a new instance of <var>TLongintField</var>.
After calling the inherited constructor, it initializes the <link id="TLongintField.MinValue">MinValue</link>
and <link id="TLongintField.MaxValue">MaxValue</link> properties.
</descr>
<seealso>
<link id="TField"/>
<link id="TLongintField.MaxValue">MaxValue</link>
<link id="TLongintField.MinValue">MinValue</link>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TLongintField.Create.AOwner">
<short>Owner of the field component.</short>
</element>
<!-- function Visibility: public
Declaration: function CheckRange(AValue: LongInt) : Boolean -->
<element name="TLongintField.CheckRange">
<short>Check whether a valid is in the allowed range of values for the field</short>
<descr>
<var>CheckRange</var> returns <var>True</var> if <var>AValue</var> lies within the range defined by
the <link id="TLongintField.MinValue">MinValue</link> and <link id="TLongintField.MaxValue">MaxValue</link>
properties. If the value lies outside of the allowed range, then <var>False</var> is returned.
</descr>
<seealso>
<link id="TLongintField.MaxValue">MaxValue</link>
<link id="TLongintField.MinValue">MinValue</link>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TLongintField.CheckRange.Result">
<short><var>true</var> if <var>AValue</var> is in the allowed range of values.</short>
</element>
<!-- argument Visibility: default
Declaration: AValue: LongInt -->
<element name="TLongintField.CheckRange.AValue">
<short>Value to check</short>
</element>
<!-- property Visibility: public
Declaration: Value : LongInt -->
<element name="TLongintField.Value">
<short>Value of the field as longint</short>
<descr>
<var>Value</var> is redefined by <var>TLongintField</var> as a 32-bit signed integer value.
It returns the same value as the <link id="TField.AsInteger"/> property.
</descr>
<seealso>
<link id="TField.Value"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: MaxValue : LongInt -->
<element name="TLongintField.MaxValue">
<short>Maximum value for the field</short>
<descr>
<var>MaxValue</var> is the maximum value for the field.
When setting the field's value, the value may not be larger than <var>MaxValue</var>.
Any attempt to write a larger value as the field's content will result in an exception.
By default <var>MaxValue</var> equals <var>MaxInt</var>, i.e. any integer value is allowed.
</descr>
<seealso>
<link id="TLongintField.MinValue">MinValue</link>
</seealso>
</element>
<!-- property Visibility: published
Declaration: MinValue : LongInt -->
<element name="TLongintField.MinValue">
<short>Minimum value for the field</short>
<descr>
<var>MinValue</var> is the minimum value for the field.
When setting the field's value, the value may not be less than <var>MinValue</var>.
Any attempt to write a smaller value as the field's content will result in an exception.
By default <var>MinValue</var> equals <var>-MaxInt</var>, i.e. any integer value is allowed.
</descr>
<seealso>
<link id="TLongintField.MaxValue">MaxValue</link>
</seealso>
</element>
<!-- alias type Visibility: default
Declaration: TIntegerField = TLongintField -->
<element name="TIntegerField">
<short>Alias for <var>TLongintField</var></short>
<descr>
<var>TIntegerField</var> is an alias for <link id="TLongintField"/>.
</descr>
<seealso>
<link id="TLongintField"/>
<link id="TField"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TLargeintField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TLargeintField">
<short>Field class for 64-bit signed integer data</short>
<descr>
<p>
<var>TLargeIntField</var> is instantiated when a dataset must manage a field with 64-bit signed data:
the data type <var>ftLargeInt</var>. It overrides some methods of <link id="TField"/> to handle int64
data, and sets some of the properties to values for int64 data. It also introduces some methods and
properties specific to 64-bit integer data such as <link id="TLargeIntField.MinValue">MinValue</link> and
<link id="TLargeIntField.MaxValue">MaxValue</link>.
</p>
<p>
It should never be necessary to create an instance of <var>TLargeIntField</var> manually, a field
of this class will be instantiated automatically for each int64 field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TField"/>
<link id="TLargeIntField.MinValue">MinValue</link>
<link id="TLargeIntField.MaxValue">MaxValue</link>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TLargeintField.Create">
<short>Create a new instance of the <var>TLargeintField</var> class</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TLargeIntField</var> class: it calls the inherited constructor
and then initializes the various properties of <link id="Tfield"/> and <link id="TLargeIntField.MinValue">MinValue</link> and
<link id="TLargeIntField.MaxValue">MaxValue</link>.
</descr>
<seealso>
<link id="TField"/>
<link id="TLargeIntField.MinValue">MinValue</link>
<link id="TLargeIntField.MaxValue">MaxValue</link>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TLargeintField.Create.AOwner">
<short>Owner of the <var>TLargeIntField</var> component</short>
</element>
<!-- function Visibility: public
Declaration: function CheckRange(AValue: LargeInt) : Boolean -->
<element name="TLargeintField.CheckRange">
<short>Check whether a values falls within the allowed range</short>
<descr>
<var>CheckRange</var> returns <var>True</var> if <var>AValue</var> lies within the range defined by
the <link id="TLargeIntField.MinValue">MinValue</link> and <link id="TLargeIntField.MaxValue">MaxValue</link>
properties. If the value lies outside of the allowed range, then <var>False</var> is returned.
</descr>
<seealso>
<link id="TLargeIntField.MaxValue">MaxValue</link>
<link id="TLargeIntField.MinValue">MinValue</link>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TLargeintField.CheckRange.Result">
<short><var>true</var> if <var>AValue</var> is in the allowed range of values.</short>
</element>
<!-- argument Visibility: default
Declaration: AValue: LargeInt -->
<element name="TLargeintField.CheckRange.AValue">
<short>Value to check</short>
</element>
<!-- property Visibility: public
Declaration: Value : LargeInt -->
<element name="TLargeintField.Value">
<short>Field contents as a 64-bit integer value</short>
<descr>
<var>Value</var> is redefined by <var>TLargeIntField</var> as a 64-bit integer value.
It returns the same value as <link id="TField.AsLargeInt"/>.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsLargeInt"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: MaxValue : LargeInt -->
<element name="TLargeintField.MaxValue">
<short>Maximum value for the field</short>
<descr>
<p>
<var>MaxValue</var> is the maximum value for the field if set to any value different from zero.
When setting the field's value, the value may not be larger than <var>MaxValue</var>.
Any attempt to write a larger value as the field's content will result in an exception.
By default <var>MaxValue</var> equals <var>0</var>, i.e. any integer value is allowed.
</p>
<p>
If <var>MaxValue</var> is set, <link id="TLargeIntField.MinValue">MinValue</link> should also be set, because it will also be checked.
</p>
</descr>
<seealso>
<link id="TLargeIntField.MinValue"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: MinValue : LargeInt -->
<element name="TLargeintField.MinValue">
<short>Minimum value for the field</short>
<descr>
<p>
<var>MinValue</var> is the minimum value for the field.
When setting the field's value, the value may not be less than <var>MinValue</var>.
Any attempt to write a smaller value as the field's content will result in an exception.
By default <var>MinValue</var> equals <var>0</var>, i.e. any integer value is allowed.
</p>
<p>
If <var>MinValue</var> is set, <link id="TLargeIntField.MaxValue">MaxValue</link> should also be set, because it will also be checked.
</p>
</descr>
<seealso>
<link id="TLargeIntField.MaxValue"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TSmallintField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TSmallintField">
<short>Field class for smallint (16-bit signed integer) data</short>
<descr>
<p>
<var>TSmallIntField</var> is the class created when a dataset must manage 16-bit signed integer data, of datatype <var>ftSmallInt</var>.
It exposes no new properties, but simply overrides some methods to manage 16-bit signed integer data.
</p>
<p>
It should never be necessary to create an instance of <var>TSmallIntField</var> manually, a field
of this class will be instantiated automatically for each smallint field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TField"/>
<link id="TNumericField"/>
<link id="TLongintField"/>
<link id="TWordField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TSmallintField.Create">
<short>Create a new instance of the <var>TSmallintField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <link id="TSmallintField"/> class.
It calls the inherited constructor and then simply sets some of the <link id="TField"/>
properties to work with 16-bit signed integer data.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TSmallintField.Create.AOwner">
<short>Owner of the field component.</short>
</element>
<!--
********************************************************************
#fcl.db.TWordField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TWordField">
<short>Field class for word (16-bit unsigned integer) data</short>
<descr>
<p>
<var>TWordField</var> is the class created when a dataset must manage 16-bit unsigned integer data, of datatype <var>ftWord</var>.
It exposes no new properties, but simply overrides some methods to manage 16-bit unsigned integer data.
</p>
<p>
It should never be necessary to create an instance of <var>TWordField</var> manually, a field
of this class will be instantiated automatically for each word field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TField"/>
<link id="TNumericField"/>
<link id="TLongintField"/>
<link id="TSmallIntField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TWordField.Create">
<short>Create a new instance of the <var>TWordField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <link id="TWordField"/> class.
It calls the inherited constructor and then simply sets some of the <link id="TField"/>
properties to work with 16-bit unsigned integer data.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TWordField.Create.AOwner">
<short>Owner of the field instance.</short>
</element>
<!--
********************************************************************
#fcl.db.TAutoIncField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TAutoIncField">
<short>Field for auto-incremental, 32-bit signed integer data</short>
<descr>
<p>
<var>TAutoIncField</var> is the class created when a dataset must manage 32-bit signed integer data,
of datatype <var>ftAutoInc</var>: This field gets it's data automatically by the database engine.
It exposes no new properties, but simply overrides some methods to manage 32-bit signed integer data.
</p>
<p>
It should never be necessary to create an instance of <var>TAutoIncField</var> manually, a field
of this class will be instantiated automatically for each auto-incremental field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TAutoIncField.Create">
<short>Create a new instance of the <var>TAutoIncField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TAutoIncField</var> class.
It simply calls the inherited constructor and then sets up some of the <link id="TField"/> class' fields.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TAutoIncField.Create.AOwner">
<short>Owner of the newly created fields.</short>
</element>
<!--
********************************************************************
#fcl.db.TFloatField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TFloatField">
<short>Class for floating point values</short>
<descr>
<p>
<var>TFloatField</var> is the class created when a dataset must manage floating point values of double precision.
It exposes a few new properties such as <link id="TFloatField.Currency">Currency</link>,
<link id="TFloatField.MaxValue">MaxValue</link>,
<link id="TFloatField.MinValue">MinValue</link> and overrides some <link id="TField"/> methods to work with floating point data.
</p>
<p>
It should never be necessary to create an instance of <var>TFloatField</var> manually, a field
of this class will be instantiated automatically for each floating-point field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TFloatField.Currency">Currency</link>
<link id="TFloatField.MaxValue">MaxValue</link>
<link id="TFloatField.MinValue">MinValue</link>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TFloatField.Create">
<short>Create a new instance of the <var>TFloatField</var></short>
<descr>
<var>Create</var> initializes a new instance of <var>TFloatField</var>.
It calls the inherited constructor and then initializes some properties.
</descr>
<link id="TField"/>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TFloatField.Create.AOwner">
<short>Owner of the field instance</short>
</element>
<!-- function Visibility: public
Declaration: function CheckRange(AValue: Double) : Boolean -->
<element name="TFloatField.CheckRange">
<short>Check whether a value is in the allowed range of values for the field</short>
<descr>
<var>CheckRange</var> returns <var>True</var> if <var>AValue</var> lies within the range defined by
the <link id="TFloatField.MinValue">MinValue</link> and <link id="TFloatField.MaxValue">MaxValue</link>
properties. If the value lies outside of the allowed range, then <var>False</var> is returned.
</descr>
<seealso>
<link id="TFloatField.MaxValue">MaxValue</link>
<link id="TFloatField.MinValue">MinValue</link>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TFloatField.CheckRange.Result">
<short><var>true</var> if <var>AValue</var> is in the allowed range of values.</short>
</element>
<!-- argument Visibility: default
Declaration: AValue: Double -->
<element name="TFloatField.CheckRange.AValue">
<short>Value to check</short>
</element>
<!-- property Visibility: public
Declaration: Value : Double -->
<element name="TFloatField.Value">
<short>Value of the field as a double type</short>
<descr>
<var>Value</var> is redefined by <var>TFloatField</var> to return a value of type <var>Double</var>.
It returns the same value as <link id="TField.AsFloat"/>
</descr>
<seealso>
<link id="TField.AsFloat"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Currency : Boolean -->
<element name="TFloatField.Currency">
<short>Is the field a currency field.</short>
<descr>
<var>Currency</var> can be set to <var>True</var> to indicate that the field contains data representing
an amount of currency. This affects the way the <link id="TField.DisplayText"/> and <link id="TField.Text"/>
properties format the value of the field: if the <var>Currency</var> property is <var>True</var>, then these
properties will format the value as a currency value (generally appending the currency sign) and if the
<var>Currency</var> property is <var>False</var>, then they will format it as a normal floating-point value.
</descr>
<seealso>
<link id="TField.DisplayText"/>
<link id="TField.Text"/>
<link id="TNumericField.DisplayFormat"/>
<link id="TNumericField.EditFormat"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: MaxValue : Double -->
<element name="TFloatField.MaxValue">
<short>Maximum value for the field</short>
<descr>
<p>
<var>MaxValue</var> can be set to a value different from zero, it is then the maximum value for
the field if set to any value different from zero. When setting the field's value, the value may
not be larger than <var>MaxValue</var>.
Any attempt to write a larger value as the field's content will result in an exception.
By default <var>MaxValue</var> equals <var>0</var>, i.e. any floating-point value is allowed.
</p>
<p>
If <var>MaxValue</var> is set, <link id="TFloatField.MinValue">MinValue</link> should also be set, because it will also be checked.
</p>
</descr>
<seealso>
<link id="TFloatField.MinValue"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: MinValue : Double -->
<element name="TFloatField.MinValue">
<short>Minimum value for the field</short>
<descr>
<p>
<var>MinValue</var> can be set to a value different from zero, then it is the minimum value for the field.
When setting the field's value, the value may not be less than <var>MinValue</var>.
Any attempt to write a smaller value as the field's content will result in an exception.
By default <var>MinValue</var> equals <var>0</var>, i.e. any floating-point value is allowed.
</p>
<p>
If <var>MinValue</var> is set, <link id="TFloatField.MaxValue">MaxValue</link> should also be set, because it will also be checked.
</p>
</descr>
<seealso>
<link id="TFloatField.MaxValue"/>
<link id="TFloatField.CheckRange"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Precision : LongInt -->
<element name="TFloatField.Precision">
<short>Precision (number of digits) of the field in text representations</short>
<descr>
<var>Precision</var> is the maximum number of digits that should be used when the field is converted to a textual representation in <link id="TField.Displaytext"/>
or <link id="TField.Text"/>, it is used in the arguments to <link id="#rtl.sysutils.FormatFloat">FormatFloat</link>.
</descr>
<seealso>
<link id="TField.Displaytext"/>
<link id="TField.Text"/>
<link id="#rtl.sysutils.FormatFloat">FormatFloat</link>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TCurrencyField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TCurrencyField">
<short>Class for currency fields</short>
<descr>
<p>
<var>TCurrencyField</var> is the field class used by <link id="TDataset"/> when it needs to
manage currency-valued data.(<link id="TField.Datatype"/> equals <var>ftCurrency</var>).
It simply sets some <link id="Tfield"/> properties to be able to work with currency data.
</p>
<p>
It should never be necessary to create an instance of <var>TCurrencyField</var> manually, a field
of this class will be instantiated automatically for each currency field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TField"/>
<link id="TDataset"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TCurrencyField.Create">
<short>Create a new instance of a <var>TCurrencyField</var>.</short>
<descr>
<var>Create</var> initializes a new instance of <var>TCurrencyField</var>.
It calls the inherited constructor and then sets some properties (<link id="TCurrencyField.Currency"/>)
to be able to work with currency data.
</descr>
<seealso>
<link id="TField"/>
<link id="TCurrencyField.Currency"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TCurrencyField.Create.AOwner">
<short>Owner of the new field instance</short>
</element>
<!-- property Visibility: published
Declaration: Currency : -->
<element name="TCurrencyField.Currency">
<short>Is the field a currency field</short>
<descr>
<var>Currency</var> is inherited from <link id="TFloatField.Currency"/> but is initialized
to <var>True</var> by the <var>TCurrencyField</var> constructor. It can be set to <var>False</var> if the contents of the field is of type currency,
but does not represent an amount of currency.
</descr>
<seealso>
<link id="TFloatField.Currency"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TBooleanField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TBooleanField">
<short>Boolean field class type</short>
<descr>
<p>
<var>TBooleanField</var> is the field class used by <link id="TDataset"/> whenever
it needs to manage boolean data (<link id="TField.DataType"/> equals <var>ftBoolean</var>).
It overrides some properties and methods of <link id="TField"/> to be able to work with boolean data.
</p>
<p>
It should never be necessary to create an instance of <var>TBooleanField</var> manually, a field
of this class will be instantiated automatically for each boolean field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TBooleanField.Create">
<short>Create a new instance of the <var>TBooleanField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TBooleanField</var> class. It calls the inherited constructor and then sets some <link id="TField"/>
properties to configure it for working with boolean values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TBooleanField.Create.AOwner">
<short>Owner of the field instance</short>
</element>
<!-- property Visibility: public
Declaration: Value : Boolean -->
<element name="TBooleanField.Value">
<short>Value of the field as a boolean value</short>
<descr>
<var>Value</var> is redefined from <link id="TField.Value"/> by <var>TBooleanField</var> as a boolean value.
It returns the same value as the <link id="TField.AsBoolean"/> property.
</descr>
<seealso>
<link id="TField.AsBoolean"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DisplayValues : String -->
<element name="TBooleanField.DisplayValues">
<short>Textual representation of the true and false values</short>
<descr>
<p>
<var>DisplayValues</var> contains 2 strings, separated by a semicolon (;)
which are used to display the <var>True</var> and <var>False</var> values of the fields.
The first string is used for <var>True</var> values, the second value is used for <var>False</var> values.
If only one value is given, it will serve as the representation of the <var>True</var> value, the <var>False</var>
value will be represented as an empty string.
</p>
<p>
A value of <var>Yes;No</var> will result in <var>True</var> values being displayed as 'Yes', and <var>False</var> values as 'No'.
When writing the value of the field as a string, the string will
be compared (case insensitively) with the value for <var>True</var>, and if it matches, the field's value will be set to <var>True</var>.
After this it will be compared to the value for <var>False</var>, and if it matches, the field's value will be set to <var>False</var>.
If the text matches neither of the two values, an exception will be raised.
</p>
</descr>
<seealso>
<link id="TField.AsString"/>
<link id="TField.Text"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDateTimeField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDateTimeField">
<short>Field class for date/time/Datetime values</short>
<descr>
<p>
<var>TDateTimeField</var> is the class used when a dataset must manage data of type datetime. (<link id="TField.DataType"/> equals <var>ftDateTime</var>).
It also serves as base class for the <link id="TDateField"/> or <link id="TTimeField"/> classes. It overrides some of the properties and methods of the
<link id="TField"/> class to be able to work with date/time fields.
</p>
<p>
It should never be necessary to create an instance of <var>TDateTimeField</var> manually, a field
of this class will be instantiated automatically for each datetime field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TDateField"/>
<link id="TTimeField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TDateTimeField.Create">
<short>Create a new instance of a <var>TDateTimeField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TDateTimeField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with date/time values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TDateTimeField.Create.AOwner">
<short>Owner of the field instance</short>
</element>
<!-- property Visibility: public
Declaration: Value : TDateTime -->
<element name="TDateTimeField.Value">
<short>Contents of the field as a TDateTime value</short>
<descr>
<var>Value</var> is redefined from <link id="TField.Value"/> by <var>TDateTimeField</var> as a <var>TDateTime</var> value.
It returns the same value as the <link id="TField.AsDateTime"/> property.
</descr>
<seealso>
<link id="TField.AsDateTime"/>
<link id="TField.Value"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DisplayFormat : String -->
<element name="TDateTimeField.DisplayFormat">
<short>Formatting string for textual representation of the field</short>
<descr>
<var>DisplayFormat</var> can be set to a formatting string that will then be used by
the <link id="TField.DisplayText"/> property to format the value with the
<link id="#rtl.sysutils.datetimetostring">DateTimeToString</link>function.
</descr>
<seealso>
<link id="#rtl.sysutils.datetimetostring">DateTimeToString</link>
<link id="#rtl.sysutils.formatdatetime">FormatDateTime</link>
<link id="TField.DisplayText"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDateField
*******************************************************************
-->
<!-- class Visibility: default -->
<element name="TDateField">
<short>Field class for date values</short>
<descr>
<p>
<var>TDateField</var> is the class used when a dataset must manage data of type date. (<link id="TField.DataType"/> equals <var>ftDate</var>).
It initializes some of the properties of the <link id="TField"/> class to be able to work with date fields.
</p>
<p>
It should never be necessary to create an instance of <var>TDateField</var> manually, a field
of this class will be instantiated automatically for each date field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TDateTimeField"/>
<link id="TTimeField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TDateField.Create">
<short>Create a new instance of a <var>TDateField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TDateField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with date values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TDateField.Create.AOwner">
<short>Owner for the new field instance</short>
</element>
<!--
********************************************************************
#fcl.db.TTimeField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TTimeField">
<short>Field class for time values</short>
<descr>
<p>
<var>TimeField</var> is the class used when a dataset must manage data of type time. (<link id="TField.DataType"/> equals <var>ftTime</var>).
It initializes some of the properties of the <link id="TField"/> class to be able to work with time fields.
</p>
<p>
It should never be necessary to create an instance of <var>TTimeField</var> manually, a field
of this class will be instantiated automatically for each time field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TDateTimeField"/>
<link id="TDateField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TTimeField.Create">
<short>Create a new instance of a <var>TTimeField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TTimeField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with time values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TTimeField.Create.AOwner">
<short>Owner for the new field instance</short>
</element>
<!--
********************************************************************
#fcl.db.TBinaryField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TBinaryField">
<short>Field class for working with binary field data</short>
<descr>
<p>
<var>TBinaryField</var> is an abstract class, designed to handle binary data of variable size. It overrides some of the properties and methods of the
<link id="TField"/> class to be able to work with binary field data, such as retrieving the contents as a string or as a variant.
</p>
<p>
One must never create an instance of <var>TBinaryField</var> manually, it is an abstract class. Instead, a descendent class such as
<link id="TBytesField"/> or <link id="TVarBytesField"/> should be created.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TBytesField"/>
<link id="TVarBytesField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TBinaryField.Create">
<short>Create a new instance of a <var>TBinaryField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TBinaryField</var> class.
It simply calls the inherited destructor.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TBinaryField.Create.AOwner">
<short>Owner for the new field instance.</short>
</element>
<!-- property Visibility: published
Declaration: Size : -->
<element name="TBinaryField.Size">
<short>Size of the binary data</short>
<descr>
<var>Size</var> is simply redeclared published with a default value of 16.
</descr>
<seealso>
<link id="TField.Size"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TBytesField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TBytesField">
<short>Field class for fixed size byte array values</short>
<descr>
<p>
<var>TBytesField</var> is the class used when a dataset must manage data of fixed-size binary type. (<link id="TField.DataType"/> equals <var>ftBytes</var>).
It initializes some of the properties of the <link id="TField"/> class to be able to work with fixed-size byte fields.
</p>
<p>
It should never be necessary to create an instance of <var>TBytesField</var> manually, a field
of this class will be instantiated automatically for each binary data field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TVarBytesField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TBytesField.Create">
<short>Create a new instance of a <var>TBytesField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TBytesField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with binary data values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TBytesField.Create.AOwner">
<short>Owner of the new field instance</short>
</element>
<!--
********************************************************************
#fcl.db.TVarBytesField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TVarBytesField">
<short>Field class for variable size byte array values</short>
<descr>
<p>
<var>TVarBytesField</var> is the class used when a dataset must manage data of variable-size binary type. (<link id="TField.DataType"/> equals <var>ftVarBytes</var>).
It initializes some of the properties of the <link id="TField"/> class to be able to work with variable-size byte fields.
</p>
<p>
It should never be necessary to create an instance of <var>TVarBytesField</var> manually, a field
of this class will be instantiated automatically for each variable-sized binary data field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TBytesField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TVarBytesField.Create">
<short>Create a new instance of a <var>TVarBytesField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TVarBytesField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with variable-size binary data values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TVarBytesField.Create.AOwner">
<short>Owner of the new field instance</short>
</element>
<!--
********************************************************************
#fcl.db.TBCDField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TBCDField">
<short>Field class for Binary Coded Decimal (BCD) values</short>
<descr>
<p>
<var>TBCDField</var> is the class used when a dataset must manage data of Binary Coded Decimal type. (<link id="TField.DataType"/> equals <var>ftBCD</var>).
It initializes some of the properties of the <link id="TField"/> class, and overrides some of its methods to be able to work with BCD fields.
</p>
<p>
<var>TBCDField</var> assumes that the field's contents can be stored in a currency type, i.e. the maximum number of decimals
after the decimal separator that can be stored in a <var>TBCDField</var> is 4. Fields that need to store a larger amount
of decimals should be represented by a <link id="TFMTBCDField"/> instance.
</p>
<p>
It should never be necessary to create an instance of <var>TBCDField</var> manually, a field
of this class will be instantiated automatically for each BCD field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TFMTBCDField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TBCDField.Create">
<short>Create a new instance of a <var>TBCDField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TBCDField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with BCD data values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TBCDField.Create.AOwner">
<short>Owner of the new field instance</short>
</element>
<!-- function Visibility: public
Declaration: function CheckRange(AValue: Currency) : Boolean -->
<element name="TBCDField.CheckRange">
<short>Check whether a values falls within the allowed range</short>
<descr>
<var>CheckRange</var> returns <var>True</var> if <var>AValue</var> lies within the range defined by
the <link id="TBCDField.MinValue">MinValue</link> and <link id="TBCDField.MaxValue">MaxValue</link>
properties. If the value lies outside of the allowed range, then <var>False</var> is returned.
</descr>
<seealso>
<link id="TBCDField.MaxValue">MaxValue</link>
<link id="TBCDField.MinValue">MinValue</link>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TBCDField.CheckRange.Result">
<short><var>True</var> if <var>AValue</var> falls in the allowed range of values</short>
</element>
<!-- argument Visibility: default
Declaration: AValue: Currency -->
<element name="TBCDField.CheckRange.AValue">
<short>Value to check</short>
</element>
<!-- property Visibility: public
Declaration: Value : Currency -->
<element name="TBCDField.Value">
<short>Value of the field contents as a Currency type</short>
<descr>
<var>Value</var> is overridden from the <link id="TField.Value"/> property to a currency type field.
It returns the same value as the <link id="TField.AsCurrency"/> field.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsCurrency"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Precision : LongInt -->
<element name="TBCDField.Precision">
<short>Precision of the BCD field</short>
<descr>
<var>Precision</var> is the total number of decimals in the BCD value.
It is not the same as <link id="TBCDField.Size"/>, which is the number of decimals after the decimal point.
The <var>Precision</var> property should be set by the descendent classes when they initialize the field,
and should be considered read-only. Changing the value will influence the values returned by the various
<var>AsXXX</var> properties.
</descr>
<seealso>
<link id="TBCDField.Size"/>
<link id="TBCDField.Value"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Currency : Boolean -->
<element name="TBCDField.Currency">
<short>Does the field represent a currency amount</short>
<descr>
<var>Currency</var> can be set to <var>True</var> to indicate that the field contains data representing
an amount of currency. This affects the way the <link id="TField.DisplayText"/> and <link id="TField.Text"/>
properties format the value of the field: if the <var>Currency</var> property is <var>True</var>, then these
properties will format the value as a currency value (generally appending the currency sign) and if the
<var>Currency</var> property is <var>False</var>, then they will format it as a normal floating-point value.
</descr>
<seealso>
<link id="TField.DisplayText"/>
<link id="TField.Text"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: MaxValue : Currency -->
<element name="TBCDField.MaxValue">
<short>Maximum value for the field</short>
<descr>
<p>
<var>MaxValue</var> can be set to a value different from zero, it is then the maximum value for
the field if set to any value different from zero. When setting the field's value, the value may
not be larger than <var>MaxValue</var>.
Any attempt to write a larger value as the field's content will result in an exception.
By default <var>MaxValue</var> equals <var>0</var>, i.e. any floating-point value is allowed.
</p>
<p>
If <var>MaxValue</var> is set, <link id="TBCDField.MinValue">MinValue</link> should also be set, because it will also be checked.
</p>
</descr>
<seealso>
<link id="TBCDField.MinValue"/>
<link id="TBCDField.CheckRange"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: MinValue : Currency -->
<element name="TBCDField.MinValue">
<short>Minimum value for the field</short>
<descr>
<p>
<var>MinValue</var> can be set to a value different from zero, then it is the minimum value for the field.
When setting the field's value, the value may not be less than <var>MinValue</var>.
Any attempt to write a smaller value as the field's content will result in an exception.
By default <var>MinValue</var> equals <var>0</var>, i.e. any floating-point value is allowed.
</p>
<p>
If <var>MinValue</var> is set, <link id="TBCDField.MaxValue"/> should also be set, because it will also be checked.
</p>
</descr>
<seealso>
<link id="TBCDField.MaxValue"/>
<link id="TBCDField.CheckRange"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Size : -->
<element name="TBCDField.Size">
<short>Number of decimals after the decimal separator</short>
<descr>
<var>Size</var> is the number of decimals after the decimal separator.
It is not the total number of decimals, which is stored in the <link id="TBCDField.Precision"/> field.
</descr>
<seealso>
<link id="TBCDField.Precision"/>
</seealso>
</element>
<!-- enumeration type Visibility: default
Declaration: TBlobStreamMode = (bmRead,bmWrite,bmReadWrite) -->
<element name="TBlobStreamMode">
<short>Mode used when creating a blob stream</short>
<descr>
<var>TBlobStramMode</var> is used when creating a stream for reading BLOB data.
It indicates what the data will be used for: reading, writing or both.
</descr>
<seealso>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: bmRead -->
<element name="TBlobStreamMode.bmRead">
<short>Read blob data</short>
</element>
<!-- enumeration value Visibility: default
Declaration: bmWrite -->
<element name="TBlobStreamMode.bmWrite">
<short>Write blob data</short>
</element>
<!-- enumeration value Visibility: default
Declaration: bmReadWrite -->
<element name="TBlobStreamMode.bmReadWrite">
<short>Read and write blob data</short>
</element>
<!-- range type Visibility: default
Declaration: TBlobType = ..ftWideMemo -->
<element name="TBlobType">
<short>Valid BLOB fieldtypes</short>
<descr>
<var>TBlobType</var> is a subrange type, indicating the various datatypes of BLOB fields.
</descr>
<seealso>
<link id="TFieldType"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TBlobField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TBlobField">
<short>Base class for BLOB field data</short>
<descr>
<p>
<var>TBLobField</var> is the class used when a dataset must manage BLOB data. (<link id="TField.DataType"/> equals <var>ftBLOB</var>).
It initializes some of the properties of the <link id="TField"/> class, and overrides some of its methods to be able to work with BLOB fields.
It also serves as parent class for some specialized blob-like field types such as <link id="TMemoField"/>, <link id="TWideMemoField"/> or
<link id="TGraphicField"/>
</p>
<p>
It should never be necessary to create an instance of <var>TBlobField</var> manually, a field
of this class will be instantiated automatically for each BLOB field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TMemoField"/>
<link id="TWideMemoField"/>
<link id="TGraphicField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TBlobField.Create">
<short>Create a new instance of a <var>TBlobField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TBlobField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with BLOB data.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TBlobField.Create.AOwner">
<short>Owner of the new field instance</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Clear; Override -->
<element name="TBlobField.Clear">
<short>Clear the BLOB field's contents</short>
<descr>
<var>Clear</var> overrides the <var>TField</var> implementation of <link id="TField.Clear"/>.
It creates and immediately releases an empty blob stream in write mode, effectively clearing the contents of the BLOB field.
</descr>
<seealso>
<link id="TField.Clear"/>
<link id="TField.IsNull"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function IsBlob : Boolean; Override -->
<element name="TBlobField.IsBlob">
<short>Is the field a blob field</short>
<descr>
<var>IsBlob</var> is overridden by <var>TBlobField</var> to return <var>True</var>
</descr>
<seealso>
<link id="TField.IsBlob"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TBlobField.IsBlob.Result">
<short>Always <var>True</var></short>
</element>
<!-- procedure Visibility: public
Declaration: procedure LoadFromFile(const FileName: String) -->
<element name="TBlobField.LoadFromFile">
<short>Load the contents of the field from a file</short>
<descr>
<var>LoadFromFile</var> creates a file stream with <var>FileName</var>
as the name of the file to open, en then calls <link id="TBlobField.LoadFromStream">LoadFromStream</link>
to read the contents of the blob field from the file. The file is opened in read-only mode.
</descr>
<errors>
If the file does not exist or is nor available for reading, an exception will be raised.
</errors>
<seealso>
<link id="TBlobField.LoadFromStream">LoadFromStream</link>
<link id="TBlobField.SaveToFile">SaveToFile</link>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: FileName: String -->
<element name="TBlobField.LoadFromFile.FileName">
<short>Name of file to read data from</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure LoadFromStream(Stream: TStream) -->
<element name="TBlobField.LoadFromStream">
<short>Load the field's contents from stream</short>
<descr>
<var>LoadFromStream</var> can be used to load the contents of the field from a <link
id="#rtl.classes.TStream">TStream</link> descendent.
The entire data of the stream will be copied, and the stream will be positioned on the first byte of data, so it must be seekable.
</descr>
<errors>
If the stream is not seekable, an exception will be raised.
</errors>
<seealso>
<link id="TBlobField.SaveToStream">SaveToStream</link>
<link id="TBlobField.LoadFromFile">LoadFromFile</link>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Stream: TStream -->
<element name="TBlobField.LoadFromStream.Stream">
<short>Stream instance to load data from</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure SaveToFile(const FileName: String) -->
<element name="TBlobField.SaveToFile">
<short>Save field contents to a file</short>
<descr>
<var>SaveToFile</var> creates a file stream with <var>FileName</var>
as the name of the file to open, en then calls <link id="TBlobField.SaveToStream">SaveToStream</link>
to write the contents of the blob field to the file. The file is opened in write mode and is created if it does not yet exist.
</descr>
<errors>
If the file cannot be created or is not available for writing, an exception will be raised.
</errors>
<seealso>
<link id="TBlobField.LoadFromFile">LoadFromFile</link>
<link id="TBlobField.SaveToStream">SaveToStream</link>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: FileName: String -->
<element name="TBlobField.SaveToFile.FileName">
<short>Name of file to write data to</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure SaveToStream(Stream: TStream) -->
<element name="TBlobField.SaveToStream">
<short>Save the field's contents to stream</short>
<descr>
<var>SaveToStream</var> can be used to save the contents of the field to a <link id="#rtl.classes.TStream">TStream</link> descendent.
The entire data of the field will be copied. The stream must of course support writing.
</descr>
<errors>
If the stream is not writable, an exception will be raised.
</errors>
<seealso>
<link id="TBlobField.SaveToFile">SaveToFile</link>
<link id="TBlobField.LoadFromStream">LoadFromStream</link>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Stream: TStream -->
<element name="TBlobField.SaveToStream.Stream">
<short>Stream to save data to</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure SetFieldType(AValue: TFieldType); Override -->
<element name="TBlobField.SetFieldType">
<short>Set field type</short>
<descr>
<var>SetFieldType</var> is overridden by <var>TBlobField</var> to check whether a valid Blob field type is set.
If so, it calls the inherited method.
</descr>
<seealso>
<link id="TField.DataType"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AValue: TFieldType -->
<element name="TBlobField.SetFieldType.AValue">
<short>Value for the <var>DataType</var> property</short>
</element>
<!-- property Visibility: public
Declaration: BlobSize : LongInt -->
<element name="TBlobField.BlobSize">
<short>Size of the current blob</short>
<descr>
<var>BlobSize</var> is the size (in bytes) of the current contents of the field.
It will vary as the dataset's current record moves from record to record.
</descr>
<seealso>
<link id="TField.Size"/>
<link id="TField.DataSize"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Modified : Boolean -->
<element name="TBlobField.Modified">
<short>Has the field's contents been modified.</short>
<descr>
<var>Modified</var> indicates whether the field's contents have been modified for the current record.
</descr>
<seealso>
<link id="TBlobField.LoadFromStream"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Value : String -->
<element name="TBlobField.Value">
<short>Return the field's contents as a string</short>
<descr>
<var>Value</var> is redefined by <var>TBlobField</var> as a string value: getting or setting this value
will convert the BLOB data to a string, it will return the same value as the <link id="TField.AsString"/> property.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="TField.AsString"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Transliterate : Boolean -->
<element name="TBlobField.Transliterate">
<short>Should the contents of the field be transliterated</short>
<descr>
<var>Transliterate</var> indicates whether the contents of the field should be transliterated
(i.e. changed from OEM to non OEM codepage and vice versa) when reading or writing the value.
The actual transliteration must be done in the <link id="TDataset.Translate"/> method of the
dataset to which the field belongs. By default this property is <var>False</var>,
but it can be set to <var>True</var> for BLOB data which contains text in another codepage.
</descr>
<seealso>
<link id="TStringField.Transliterate"/>
<link id="TDataset.Translate"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: BlobType : TBlobType -->
<element name="TBlobField.BlobType">
<short>Type of blob</short>
<descr>
<var>BlobType</var> is an alias for <link id="TField.DataType"/>, but with a restricted set of values.
Setting <var>BlobType</var> is equivalent to setting the <link id="TField.DataType"/> property.
</descr>
<seealso>
<link id="TField.DataType"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Size : -->
<element name="TBlobField.Size">
<short>Size of the blob field</short>
<descr>
<var>Size</var> is the size of the blob in the internal memory buffer. It defaults to 0, as the BLOB data is not stored in the internal memory buffer.
To get the size of the data in the current record, use the <link id="TBlobField.BlobSize">BlobSize</link> property instead.
</descr>
<seealso>
<link id="TBlobField.BlobSize">BlobSize</link>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TMemoField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TMemoField">
<short>Base class for MEMO (text BLOB) field data</short>
<descr>
<p>
<var>TMemoField</var> is the class used when a dataset must manage memo (Text BLOB) data. (<link id="TField.DataType"/> equals <var>ftMemo</var>).
It initializes some of the properties of the <link id="TField"/> class. All methods to be able to work with memo fields have been implemented in
the <link id="TBlobField"/> parent class.
</p>
<p>
It should never be necessary to create an instance of <var>TMemoField</var> manually, a field
of this class will be instantiated automatically for each memo field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TBLOBField"/>
<link id="TWideMemoField"/>
<link id="TGraphicField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TMemoField.Create">
<short>Create a new instance of the <var>TMemoField</var> class</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TMemoField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with memo values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TMemoField.Create.AOwner">
<short>Owner of the new field instance/</short>
</element>
<!-- property Visibility: published
Declaration: Transliterate : -->
<element name="TMemoField.Transliterate">
<short>Should the contents of the field be transliterated</short>
<descr>
<var>Transliterate</var> is redefined from <link id="TBlobField.Transliterate"/> with a default value of <var>true</var>.
</descr>
<seealso>
<link id="TBlobField.Transliterate"/>
<link id="TStringField.Transliterate"/>
<link id="TDataset.Translate"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TWideMemoField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TWideMemoField">
<short>Field class for wide MEMO (widestring text BLOB) field data</short>
<descr>
<p>
<var>TWideMemoField</var> is the class used when a dataset must manage memo (Text BLOB) data. (<link id="TField.DataType"/> equals <var>ftWideMemo</var>).
It initializes some of the properties of the <link id="TField"/> class. All methods to be able to work with widestring memo fields have been implemented in
the <link id="TBlobField"/> parent class.
</p>
<p>
It should never be necessary to create an instance of <var>TWideMemoField</var> manually, a field
of this class will be instantiated automatically for each widestring memo field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TBLOBField"/>
<link id="TMemoField"/>
<link id="TGraphicField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(aOwner: TComponent); Override -->
<element name="TWideMemoField.Create">
<short>Create a new instance of the <var>TWideMemoField</var> class</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TWideMemoField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with widestring memo values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: aOwner: TComponent -->
<element name="TWideMemoField.Create.aOwner">
<short>Owner for the new field instance</short>
</element>
<!-- property Visibility: public
Declaration: Value : WideString -->
<element name="TWideMemoField.Value">
<short>Value of the field's contents as a widestring</short>
<descr>
<var>Value</var> is redefined by <var>TWideMemoField</var> as a WideString value.
Reading and writing this property is equivalent to reading and writing the <link id="TField.AsWideString"/> property.
</descr>
<seealso>
<link id="TField.Value"/>
<link id="Tfield.AsWideString"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TGraphicField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TGraphicField">
<short>Field class for graphical BLOB field data</short>
<descr>
<p>
<var>TGraphicField</var> is the class used when a dataset must manage graphical BLOB data. (<link id="TField.DataType"/> equals <var>ftGraphic</var>).
It initializes some of the properties of the <link id="TField"/> class. All methods to be able to work with graphical BLOB data have been implemented in
the <link id="TBlobField"/> parent class.
</p>
<p>
It should never be necessary to create an instance of <var>TGraphicsField</var> manually, a field
of this class will be instantiated automatically for each graphical BLOB field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TBLOBField"/>
<link id="TMemoField"/>
<link id="TWideMemoField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TGraphicField.Create">
<short>Create a new instance of the <var>TGraphicField</var> class</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TGraphicField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with graphical BLOB values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TGraphicField.Create.AOwner">
<short>Owner for the new <var>TGraphicField</var> instance</short>
</element>
<!--
********************************************************************
#fcl.db.TVariantField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TVariantField">
<short>Field class for native variant data</short>
<descr>
<p>
<var>TVariantField</var> is the class used when a dataset must manage native variant-typed data. (<link id="TField.DataType"/> equals <var>ftVariant</var>).
It initializes some of the properties of the <link id="TField"/> class and overrides some of its methods to be able to work with variant data.
</p>
<p>
It should never be necessary to create an instance of <var>TVariantField</var> manually, a field
of this class will be instantiated automatically for each variant field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TVariantField.Create">
<short>Create a new instance of the <var>TVariantField</var> class</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TVariantField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with variant values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TVariantField.Create.AOwner">
<short>Owner for the new <var>TVariantField</var> instance</short>
</element>
<!--
********************************************************************
#fcl.db.TGuidField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TGuidField">
<short>Field class for native variant data</short>
<descr>
<p>
<var>TGUIDField</var> is the class used when a dataset must manage native variant-typed data. (<link id="TField.DataType"/> equals <var>ftGUID</var>).
It initializes some of the properties of the <link id="TField"/> class and overrides some of its methods to be able to work with variant data.
It also adds a method to retrieve the field value as a native <var>TGUID</var> type.
</p>
<p>
It should never be necessary to create an instance of <var>TGUIDField</var> manually, a field
of this class will be instantiated automatically for each GUID field when a dataset is opened.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TGuidField.AsGuid"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TGuidField.Create">
<short>Create a new instance of the <var>TGUIDField</var> class</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TGUIDField</var> class.
It calls the inherited destructor, and then sets some <link id="TField"/> properties
to configure the instance for working with GUID values.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TGuidField.Create.AOwner">
<short>Owner for the new <var>TGUIDField</var> instance</short>
</element>
<!-- property Visibility: public
Declaration: AsGuid : TGUID -->
<element name="TGuidField.AsGuid">
<short>Field content as a GUID value</short>
<descr>
<var>AsGUID</var> can be used to get or set the field's content as a value of type <var>TGUID</var>.
</descr>
<seealso>
<link id="TField.AsString"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TIndexDefs
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TIndexDefs">
<short>A class to keep a list of index definitions</short>
<descr>
<var>TIndexDefs</var> is used to keep a collection of index (sort order) definitions.
It can be used by classes that provide in-memory or on-disk indexes to provide a list
of available indexes.
</descr>
<seealso>
<link id="TIndexDef"/>
<link id="TIndexDefs.Items"/>
</seealso>
</element>
<!-- enumeration type Visibility: default
Declaration: TIndexOption = (ixPrimary,ixUnique,ixDescending,ixCaseInsensitive,
ixExpression,ixNonMaintained) -->
<element name="TIndexOption">
<short>Index description flags</short>
<descr>
<var>TIndexOption</var> describes the various properties that an index can have.
It is used in the <link id="TIndexOptions"/> set type to describe all properties of an index definition as in <link id="TIndexDef"/>.
</descr>
<seealso>
<link id="TIndexOptions"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: ixPrimary -->
<element name="TIndexOption.ixPrimary">
<short>The index is the primary index for the data</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ixUnique -->
<element name="TIndexOption.ixUnique">
<short>The index is a unique index, i.e. each index value can occur only once</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ixDescending -->
<element name="TIndexOption.ixDescending">
<short>The values in the index are sorted descending.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ixCaseInsensitive -->
<element name="TIndexOption.ixCaseInsensitive">
<short>The values in the index are sorted case-insensitively</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ixExpression -->
<element name="TIndexOption.ixExpression">
<short>The values in the index are based on a calculated expression.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ixNonMaintained -->
<element name="TIndexOption.ixNonMaintained">
<short>The index is non-maintained, i.e. changing the data will not update the index.</short>
</element>
<!-- set type Visibility: default
Declaration: TIndexOptions= Set of (ixPrimary,ixUnique,ixDescending,
ixCaseInsensitive,ixExpression,ixNonMaintained) -->
<element name="TIndexOptions">
<short>Set of <var>TIndexOption</var> values</short>
<descr>
<var>TIndexOptions</var> contains the set of properties that an index can have.
It is used in the <link id="TIndexDef.Options"/> property to describe all properties of an index definition as in <link id="TIndexDef"/>.
</descr>
<seealso>
<link id="TIndexDef.Options"/>
<link id="TIndexDef"/>
<link id="TIndexOption"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TIndexDef
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TIndexDef">
<short>Index definition</short>
<descr>
<var>TIndexDef</var> describes one index in a set of indexes of a <link id="TDataset"/> instance.
The collection of indexes is described by the <link id="TIndexDefs"/> class.
It just has the necessary properties to describe an index, but does not implement any
functionality to maintain an index.
</descr>
<seealso>
<link id="TIndexDefs"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(Owner: TIndexDefs;const AName: String;
const TheFields: String;TheOptions: TIndexOptions)
; Overload -->
<element name="TIndexDef.Create">
<short>Create a new index definition</short>
<descr>
<var>Create</var> initializes a new <link id="TIndexDef"/> instance with the <var>AName</var> value as the index name,
<var>AField</var> as the fields making up the index, and <var>TheOptions</var> as the options. <var>Owner</var> should
be the <link id="TIndexDefs"/> instance to which the new <var>TIndexDef</var> can be added.
</descr>
<errors>
If an index with name <var>AName</var> already exists in the collection, an exception will be raised.
</errors>
<seealso>
<link id="TIndexDefs"/>
<link id="TIndexDef.Options"/>
<link id="TIndexDef.Fields"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Owner: TIndexDefs -->
<element name="TIndexDef.Create.Owner">
<short><var>TIndexDefs</var> Collection to which new instance must be added.</short>
</element>
<!-- argument Visibility: default
Declaration: AName: String -->
<element name="TIndexDef.Create.AName">
<short>Name for the new index. Each name may appear only once in the collection.</short>
</element>
<!-- argument Visibility: default
Declaration: TheFields: String -->
<element name="TIndexDef.Create.TheFields">
<short>Fields that make up the index</short>
</element>
<!-- argument Visibility: default
Declaration: TheOptions: TIndexOptions -->
<element name="TIndexDef.Create.TheOptions">
<short>Options for the index</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TIndexDef.Destroy">
<short>Remove the index from memory</short>
<descr>
<var>Destroy</var> calls the inherited destructor, and removes the item from memory.
</descr>
<seealso>
<link id="TIndexDef.Create"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Expression : String -->
<element name="TIndexDef.Expression">
<short>Expression that makes up the index values</short>
<descr>
<var>Expression</var> is an SQL expression based on which the index values are computed.
It is only used when <var>ixExpression</var> is in <link id="TIndexDef.Options"/>
</descr>
<seealso>
<link id="TIndexDef.Options"/>
<link id="TindexDef.Fields"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Fields : String -->
<element name="TIndexDef.Fields">
<short>Fields making up the index</short>
<descr>
<p>
<var>Fields</var> is a list of fieldnames, separated by semicolons: the fields that make up the index,
in case the index is not based on an expression. The list contains the names of all fields, regardless
of whether the sort order for a particular field is ascending or descending. The fields should be in
the right order, i.e. the first field is sorted on first, and so on.
</p>
<p>
The <link id="TIndexDef.DescFields"/> property can be used to determine the fields in the list that have
a descending sort order. The <link id="TIndexDef.CaseInsFields"/> property determines which fields are
sorted in a case-insensitive manner.
</p>
</descr>
<seealso>
<link id="TIndexDef.DescFields"/>
<link id="TIndexDef.CaseInsFields"/>
<link id="TIndexDef.Expression"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: CaseInsFields : String -->
<element name="TIndexDef.CaseInsFields">
<short>Fields in field list that are ordered case-insensitively</short>
<descr>
<var>CaseInsFields</var> is a list of fieldnames, separated by semicolons. It contains the names
of the fields in the <link id="TIndexDef.Fields">Fields</link> property which are ordered in a
case-insensitive manner. <var>CaseInsFields</var> may not contain fieldnames that do not appear in
<var>Fields</var>.
</descr>
<seealso>
<link id="TIndexDef.Fields"/>
<link id="TIndexDef.Expression"/>
<link id="TIndexDef.DescFields"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DescFields : String -->
<element name="TIndexDef.DescFields">
<short>Fields in field list that are ordered descending</short>
<descr>
<var>DescFields</var> is a list of fieldnames, separated by semicolons. It contains the names
of the fields in the <link id="TIndexDef.Fields">Fields</link> property which are ordered in a
descending manner. <var>DescFields</var> may not contain fieldnames that do not appear in
<var>Fields</var>.
</descr>
<seealso>
<link id="TIndexDef.Fields"/>
<link id="TIndexDef.Expression"/>
<link id="TIndexDef.DescFields"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Options : TIndexOptions -->
<element name="TIndexDef.Options">
<short>Index options</short>
<descr>
<p>
<var>Options</var> describes the various properties of the index.
This is usually filled by the dataset that provides the index definitions.
For datasets that provide In-memory indexes, this should be set prior to creating the index: it cannot be changed once the index is created.
</p>
<p>
See the description of <link id="TindexOption"/> for more information on the various available options.
</p>
</descr>
<seealso>
<link id="TIndexOptions"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Source : String -->
<element name="TIndexDef.Source">
<short>Source of the index</short>
<descr>
<var>Source</var> describes where the index comes from. This is a property for the convenience of the various datasets that provide indexes:
they can use it to describe the source of the index.
</descr>
<seealso>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(ADataSet: TDataSet); Virtual; Overload -->
<element name="TIndexDefs.Create">
<short>Create a new <var>TIndexDefs</var> instance</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TIndexDefs</var> class. It simply calls the inherited destructor with the appropriate item class, <link id="TIndexDef"/>.
</descr>
<seealso>
<link id="TIndexDef"/>
<link id="TIndexDefs.Destroy"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ADataSet: TDataSet -->
<element name="TIndexDefs.Create.ADataSet">
<short>Dataset for which the index definitions are stored</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TIndexDefs.Destroy">
<short>Remove the indexdefs from memory.</short>
<descr>
<var>Destroy</var> removes the indexdefs from memory. If the <var>TIndexDefs</var> instance is created by a <link id="TDataset"/> instance,
the dataset instance will also destroy it.
</descr>
<seealso>
<link id="TIndexDefs.Create"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Add(const Name: String;const Fields: String;
Options: TIndexOptions) -->
<element name="TIndexDefs.Add">
<short>Add a new index definition with given name and options</short>
<descr>
<var>Add</var> adds a new <link id="TIndexDef"/> instance to the list of indexes. It initializes the index definition properties
<var>Name</var>, <var>Fields</var> and <var>Options</var> with the values given in the parameters with the same names.
</descr>
<errors>
If an index with the same <var>Name</var> already exists in the list of indexes, an exception will be raised.
</errors>
<seealso>
<link id="TIndexDef"/>
<link id="TNamedItem.Name"/>
<link id="TIndexDef.Fields"/>
<link id="TIndexDef.Options"/>
<link id="TIndexDefs.AddIndexDef"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Name: String -->
<element name="TIndexDefs.Add.Name">
<short>Name for the new index definition</short>
</element>
<!-- argument Visibility: default
Declaration: Fields: String -->
<element name="TIndexDefs.Add.Fields">
<short>Value for the <var>Fields</var> property of the new index definition.</short>
</element>
<!-- argument Visibility: default
Declaration: Options: TIndexOptions -->
<element name="TIndexDefs.Add.Options">
<short>Value for the <var>Options</var> property of the new index definition.</short>
</element>
<!-- function Visibility: public
Declaration: function AddIndexDef : TIndexDef -->
<element name="TIndexDefs.AddIndexDef">
<short>Add a new, empty, index definition</short>
<descr>
<var>AddIndexDef</var> adds a new <link id="TIndexDef"/> instance to the list of indexes, and returns the newly created instance.
It does not initialize any of the properties of the new index definition.
</descr>
<seealso>
<link id="TIndexDefs.Add"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TIndexDefs.AddIndexDef.Result">
<short>New <var>TIndexDef</var> instance.</short>
</element>
<!-- function Visibility: public
Declaration: function Find(const IndexName: String) : TIndexDef -->
<element name="TIndexDefs.Find">
<short>Find an index by name</short>
<descr>
<var>Find</var> overloads the <link id="TDefCollection.Find"/> method to search and return a <link id="TIndexDef"/> instance based on the name.
The search is case-insensitive and raises an exception if no matching index definition was found. Note: <var>TIndexDefs.IndexOf</var> can be used instead if an exception is not desired.
</descr>
<errors>
</errors>
<seealso>
<link id="TIndexDef"/>
<link id="TDefCollection.Find"/>
<link id="TIndexDefs.FindIndexForFields"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TIndexDefs.Find.Result">
<short><var>TIndexDef</var> instance with name <var>IndexName</var> or <var>Nil</var></short>
</element>
<!-- argument Visibility: default
Declaration: IndexName: String -->
<element name="TIndexDefs.Find.IndexName">
<short>Index name to search for.</short>
</element>
<!-- function Visibility: public
Declaration: function FindIndexForFields(const Fields: String) : TIndexDef -->
<element name="TIndexDefs.FindIndexForFields">
<short>Find index definition based on field names</short>
<descr>
<var>FindIndexForFields</var> searches in the list of indexes for an index whose <link id="TIndexDef.Fields"/> property matches
the list of fields in <var>Fields</var>. If it finds an index definition, then it returns the found instance.
</descr>
<errors>
If no matching definition is found, an exception is raised.
This is different from other Find functionality, where Find usually returns Nil if nothing is found.
</errors>
<seealso>
<link id="TIndexDef"/>
<link id="TIndexDefs.Find"/>
<link id="TIndexDefs.GetindexForFields"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TIndexDefs.FindIndexForFields.Result">
<short><var>TIndexDef</var> instance with fieldlist matching <var>Fields</var></short>
</element>
<!-- argument Visibility: default
Declaration: Fields: String -->
<element name="TIndexDefs.FindIndexForFields.Fields">
<short>Fieldlist to look for</short>
</element>
<!-- function Visibility: public
Declaration: function GetIndexForFields(const Fields: String;
CaseInsensitive: Boolean) : TIndexDef -->
<element name="TIndexDefs.GetIndexForFields">
<short>Get index definition based on field names</short>
<descr>
<var>GetIndexForFields</var> searches in the list of indexes for an index whose <link id="TIndexDef.Fields"/> property matches
the list of fields in <var>Fields</var>. If <var>CaseInsenstitive</var> is <var>True</var> it only searches for case-sensitive
indexes. If it finds an index definition, then it returns the found instance. If it does not find a matching definition,
<var>Nil</var> is returned.
</descr>
<seealso>
<link id="TIndexDef"/>
<link id="TIndexDefs.Find"/>
<link id="TIndexDefs.FindIndexForFields"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TIndexDefs.GetIndexForFields.Result">
<short><var>TIndexDef</var> instance with fieldlist matching <var>Fields</var> or <var>Nil</var></short>
</element>
<!-- argument Visibility: default
Declaration: Fields: String -->
<element name="TIndexDefs.GetIndexForFields.Fields">
<short>Fieldlist to look for</short>
</element>
<!-- argument Visibility: default
Declaration: CaseInsensitive: Boolean -->
<element name="TIndexDefs.GetIndexForFields.CaseInsensitive">
<short>Look only for a case-insensitive index</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Update; Virtual; Overload -->
<element name="TIndexDefs.Update">
<short>Called whenever one of the items changes</short>
<descr>
<var>Update</var> can be called to have the dataset update its index definitions.
</descr>
</element>
<!-- property Visibility: public
Declaration: Items[Index: Integer]: TIndexDef; default -->
<element name="TIndexDefs.Items">
<short>Indexed access to the index definitions</short>
<descr>
<var>Items</var> is redefined by <var>TIndexDefs</var> using <var>TIndexDef</var> as the type for the elements. It is the default property of the <var>TIndexDefs</var> class.
</descr>
<seealso>
<link id="TIndexDef"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Index: Integer -->
<element name="TIndexDefs.Items.Index">
<short>Numerical, zero-based index.</short>
</element>
<!--
********************************************************************
#fcl.db.TCheckConstraint
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TCheckConstraint">
<short>Record-level constraint definition</short>
<descr>
<var>TCheckConstraint</var> can be used to store the definition of a record-level constraint.
It does not enforce the constraint, it only stores the constraint's definition. The constraint
can come from several sources: an imported constraints from the database, usually stored in the
<link id="TCheckConstraint.ImportedConstraint"/> property , or a constraint
enforced by the user on a particular dataset instance stored in <link id="TCheckConstraint.CustomConstraint"/>
</descr>
<errors>
</errors>
<seealso>
<link id="TCheckConstraints"/>
<link id="TCheckConstraint.ImportedConstraint"/>
<link id="TCheckConstraint.CustomConstraint"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Assign(Source: TPersistent); Override -->
<element name="TCheckConstraint.Assign">
<short>Assign one constraint to another</short>
<descr>
<var>Assign</var> is overridden by <var>TCheckConstraint</var> to copy all published
properties if <var>Source</var> is also a <var>TCheckConstraint</var> instance.
</descr>
<errors>
If <var>Source</var> is not an instance of <var>TCheckConstraint</var>, an exception may be thrown.
</errors>
<seealso>
<link id="TCheckConstraint.ImportedConstraint"/>
<link id="TCheckConstraint.CustomConstraint"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Source: TPersistent -->
<element name="TCheckConstraint.Assign.Source">
<short>Instance to copy properties from.</short>
</element>
<!-- property Visibility: published
Declaration: CustomConstraint : String -->
<element name="TCheckConstraint.CustomConstraint">
<short>User-defined constraint</short>
<descr>
<var>CustomConstraint</var> is an SQL expression with an additional user-defined constraint.
The expression should be enforced by a <link id="TDataset"/> descendent when data is posted to
the dataset. If the constraint is violated, then the dataset should raise an exception, with
message as specified in <link id="TCheckConstraint.ErrorMessage"/>
</descr>
<seealso>
<link id="TCheckConstraint.ErrorMessage"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: ErrorMessage : String -->
<element name="TCheckConstraint.ErrorMessage">
<short>Message to display when the constraint is violated</short>
<descr>
<var>ErrorMessage</var> is used as the message when the dataset instance raises an exception if the constraint is violated.
</descr>
<seealso>
<link id="TCheckConstraint.CustomConstraint"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: FromDictionary : Boolean -->
<element name="TCheckConstraint.FromDictionary">
<short>True if the constraint is imported from a datadictionary</short>
<descr>
<var>FromDictionary</var> indicates whether a constraint is imported from a data dictionary.
This can be set by <link id="TDataset"/> descendents to indicate the source of the constraint,
but is otherwise ignored.
</descr>
<seealso>
<link id="TCheckConstraint.ImportedConstraint"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: ImportedConstraint : String -->
<element name="TCheckConstraint.ImportedConstraint">
<short>Constraint imported from the database engine</short>
<descr>
<var>ImportedConstraint</var> is a constraint imported from the database engine: it will not be
enforced locally by the <link id="TDataset"/> descendent.
</descr>
<seealso>
<link id="TCheckConstraint.CustomConstraint"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TCheckConstraints
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TCheckConstraints">
<short>Set of record-level constraints</short>
<descr>
<var>TCheckConstraints</var> is a <var>TCollection</var> descendent which keeps a collection of <link id="TCheckConstraint"/> items.
It overrides the <link id="TCheckConstraints.Add">Add</link> method to return a <var>TCheckConstraint</var> instance.
</descr>
<seealso>
<link id="TCheckConstraint"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TPersistent) -->
<element name="TCheckConstraints.Create">
<short>Create a new instance of the <var>TCheckConstraints</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TCheckConstraints</var> class.
The <var>AOwner</var> argument is usually the <link id="TDataset"/> instance for which the
data is managed. It is kept for future reference. After storing the owner, the inherited
constructor is called with the <link id="TCheckConstraint"/> class pointer.
</descr>
<seealso>
<link id="TCheckConstraint"/>
<link id="TDataset"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TPersistent -->
<element name="TCheckConstraints.Create.AOwner">
<short>Owner for the collection</short>
</element>
<!-- function Visibility: public
Declaration: function Add : TCheckConstraint -->
<element name="TCheckConstraints.Add">
<short>Add new <var>TCheckConstraint</var> item to the collection</short>
<descr>
<var>Add</var> is overridden by <var>TCheckConstraint</var> to add a new <link id="TCheckConstraint"/> instance to the collection. it returns the newly added instance.
</descr>
<seealso>
<link id="TCheckConstraint"/>
<link id="#rtl.classes.TCollection.Add"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TCheckConstraints.Add.Result">
<short>The newly added <var>TCheckConstraint</var> instance</short>
</element>
<!-- property Visibility: public
Declaration: Items[Index: LongInt]: TCheckConstraint; default -->
<element name="TCheckConstraints.Items">
<short>Indexed access to the items in the collection</short>
<descr>
<var>Items</var> is overridden by <var>TCheckConstraints</var> to provide type-safe access to the items in the collection.
The <var>index</var> is zero-based, so it runs from 0 to <var>Count-1</var>.
</descr>
<seealso>
<link id="#rtl.classes.TCollection.Items"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Index: LongInt -->
<element name="TCheckConstraints.Items.Index">
<short>Zero-based index to the list of items</short>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(ADataset: TDataSet) -->
<element name="Tfields.Create">
<short>Create a new instance of <var>TFields</var></short>
<descr>
<var>Create</var> initializes a new instance of <var>TFields</var>.
It stores the <var>ADataset</var> parameter, so it can be retrieved at any time in the <link id="TFields.Dataset"/> property,
and initializes an internal list object to store the list of fields.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TFields.Dataset"/>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ADataset: TDataSet -->
<element name="Tfields.Create.ADataset">
<short>Dataset for which fields must be managed.</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="Tfields.Destroy">
<short>Free the <var>TFields</var> instance</short>
<descr>
<var>Destroy</var> frees the field instances that it manages on behalf of the <link id="TFields.Dataset">Dataset</link>.
After that it cleans up the internal structures and then calls the inherited destructor.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TField"/>
<link id="TFields.Clear"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Add(Field: TField) -->
<element name="Tfields.Add">
<short>Add a new field to the list</short>
<descr>
<var>Add</var> must be used to add a new <link id="TField"/> instance to the list of fields.
After a <var>TField</var> instance is added to the list, the <var>TFields</var> instance will
free the field instance if it is cleared.
</descr>
<seealso>
<link id="TField"/>
<link id="TFields.Clear"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="Tfields.Add.Field">
<short>TField instance to add to the list of fields.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure CheckFieldName(const Value: String) -->
<element name="Tfields.CheckFieldName">
<short>Check field name for duplicate entries</short>
<descr>
<var>CheckFieldName</var> checks whether a field with name equal to <var>Value</var> (case insensitive)
already appears in the list of fields (using <link id="TFields.Find"/>).
If it does, then an <link id="EDatabaseError"/> exception is raised.
</descr>
<seealso>
<link id="TField.FieldName"/>
<link id="TFields.Find"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Value: String -->
<element name="Tfields.CheckFieldName.Value">
<short>Field name to check</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure CheckFieldNames(const Value: String) -->
<element name="Tfields.CheckFieldNames">
<short>Check a list of field names for duplicate entries</short>
<descr>
<var>CheckFieldNames</var> splits <var>Value</var> in a list of fieldnames, using semicolon as a separator.
For each of the fieldnames obtained in this way, it calls <link id="TFields.CheckFieldName">CheckFieldName</link>.
</descr>
<errors>
Spaces are not discarded, so leaving a space after of before a fieldname will not find the fieldname, and will
yield a false negative result.
</errors>
<seealso>
<link id="TField.FieldName"/>
<link id="TFields.CheckFieldName"/>
<link id="TFields.Find"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Value: String -->
<element name="Tfields.CheckFieldNames.Value">
<short>List of field names to check</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Clear -->
<element name="Tfields.Clear">
<short>Clear the list of fields</short>
<descr>
<var>Clear</var> removes all <link id="TField"/> var instances from the list.
All field instances are freed after they have been removed from the list.
</descr>
<seealso>
<link id="TField"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function FindField(const Value: String) : TField -->
<element name="Tfields.FindField">
<short>Find a field based on its name</short>
<descr>
<var>FindField</var> searches the list of fields and returns the field instance whose
<link id="TField.FieldName">FieldName</link> property matches <var>Value</var>.
The search is performed case-insensitively.
If no field instance is found, then <var>Nil</var> is returned.
</descr>
<seealso>
<link id="TFields.FieldByName"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="Tfields.FindField.Result">
<short>Field instance with <var>FieldName</var> matching <var>Value</var></short>
</element>
<!-- argument Visibility: default
Declaration: Value: String -->
<element name="Tfields.FindField.Value">
<short>Fieldname to search for</short>
</element>
<!-- function Visibility: public
Declaration: function FieldByName(const Value: String) : TField -->
<element name="Tfields.FieldByName">
<short>Find a field based on its name</short>
<descr>
<var>Fieldbyname</var> searches the list of fields and returns the field instance whose
<link id="TField.FieldName">FieldName</link> property matches <var>Value</var>.
The search is performed case-insensitively.
</descr>
<errors>
If no field instance is found, then an exception is raised. If this behaviour is undesired, use
<link id="TField.FindField"/>, where <var>Nil</var> is returned if no match is found.
</errors>
<seealso>
<link id="TFields.FindField"/>
<link id="TFields.FieldName"/>
<link id="Tfields.FieldByNumber"/>
<link id="TFields.IndexOf"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="Tfields.FieldByName.Result">
<short>Field instance with <var>FieldName</var> matching <var>Value</var></short>
</element>
<!-- argument Visibility: default
Declaration: Value: String -->
<element name="Tfields.FieldByName.Value">
<short>Fieldname to search for</short>
</element>
<!-- function Visibility: public
Declaration: function FieldByNumber(FieldNo: Integer) : TField -->
<element name="Tfields.FieldByNumber">
<short>Search field based on its fieldnumber</short>
<descr>
<var>FieldByNumber</var> searches for the field whose <link id="TField.FieldNo"/> property matches the <var>FieldNo</var> parameter.
If no such field is found, <var>Nil</var> is returned.
</descr>
<seealso>
<link id="TFields.FieldByName"/>
<link id="TFields.FindField"/>
<link id="TFields.IndexOf"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="Tfields.FieldByNumber.Result">
<short>Field instance with matching <var>FieldNo</var> property.</short>
</element>
<!-- argument Visibility: default
Declaration: FieldNo: Integer -->
<element name="Tfields.FieldByNumber.FieldNo">
<short>Field number to search for</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure GetFieldNames(Values: TStrings) -->
<element name="Tfields.GetFieldNames">
<short>Get the list of fieldnames</short>
<descr>
<var>GetFieldNames</var> fills <var>Values</var> with the fieldnames of all the fields in the list,
each item in the list contains 1 fieldname. The list is cleared prior to filling it.
</descr>
<seealso>
<link id="TField.FieldName"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Values: TStrings -->
<element name="Tfields.GetFieldNames.Values">
<short>List to store fieldnames in</short>
</element>
<!-- function Visibility: public
Declaration: function IndexOf(Field: TField) : LongInt -->
<element name="Tfields.IndexOf">
<short>Return the index of a field instance</short>
<descr>
<var>IndexOf</var> scans the list of fields and returns the index of the field instance in the list (it compares actual field instances, not field names).
If the field does not appear in the list, -1 is returned.
</descr>
<seealso>
<link id="TFields.FieldByName"/>
<link id="TFields.FieldByNumber"/>
<link id="TFields.FindField"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="Tfields.IndexOf.Result">
<short>Index of <var>Field</var> in the list</short>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="Tfields.IndexOf.Field">
<short>Field instance to search for.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Remove(Value: TField) -->
<element name="Tfields.Remove">
<short>Remove an instance from the list</short>
<descr>
<var>Remove</var> removes the field <var>Value</var> from the list. It does not free the field after it was removed.
If the field is not in the list, then nothing happens.
</descr>
<seealso>
<link id="TFields.Clear"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Value: TField -->
<element name="Tfields.Remove.Value">
<short>Field to remove from the list.</short>
</element>
<!-- property Visibility: public
Declaration: Count : Integer -->
<element name="Tfields.Count">
<short>Number of fields in the list</short>
<descr>
<var>Count</var> is the number of fields in the fieldlist. The items in the <link id="TFields.Fields">Fields</link> property are numbered from 0 to <var>Count-1</var>.
</descr>
<seealso>
<link id="TFields.fields"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Dataset : TDataSet -->
<element name="Tfields.Dataset">
<short>Dataset the fields belong to</short>
<descr>
<var>Dataset</var> is the dataset instance that owns the fieldlist. It is set when the <link id="TFields"/> instance is created.
This property is purely for informational purposes. When adding fields to the list, no check is performed whether the field's
<var>Dataset</var> property matches this dataset.
</descr>
<seealso>
<link id="TFields.Create"/>
<link id="TField.Dataset"/>
<link id="TDataset"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Fields[Index: Integer]: TField; default -->
<element name="Tfields.Fields">
<short>Indexed access to the fields in the list</short>
<descr>
<var>Fields</var> is the default property of the <var>TFields</var> class.
It provides indexed access to the fields in the list: the index runs from 0 to <var>Count-1</var>.
</descr>
<errors>
Providing an index outside the allowed range will result in an <var>EListError</var> exception.
</errors>
<seealso>
<link id="TFields.FieldByName"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Index: Integer -->
<element name="Tfields.Fields.Index">
<short>Zero based index in the list.</short>
</element>
<!-- alias type Visibility: default
Declaration: TBookmark = Pointer -->
<element name="TBookmark">
<short>Bookmark type (deprecated)</short>
<descr>
<var>TBookMark</var> is the type used by the <link id="TDataset.SetBookMark"/> method.
It is an opaque type, and should not be used any more, it is superseded by the <link id="TBookmarkStr"/> type.
</descr>
<seealso>
<link id="TBookmarkStr"/>
</seealso>
</element>
<!-- alias type Visibility: default
Declaration: TBookmarkStr = String -->
<element name="TBookmarkStr">
<short>Bookmark type</short>
<descr>
<var>TBookmarkStr</var> is the type used by the <link id="TDataset.Bookmark"/> property.
It can be used as a string, but should in fact be considered an opaque type.
</descr>
<seealso>
<link id="TDataset.Bookmark"/>
</seealso>
</element>
<!-- pointer type Visibility: default
Declaration: PBookmarkFlag = ^TBookmarkFlag -->
<element name="PBookmarkFlag">
<short>Pointer to <var>TBookmarkflag</var> type</short>
<descr>
<var>PBookmarkFlag</var> is a convenience type, defined for internal use in <link id="TDataset"/> or one of it's descendents.
</descr>
<seealso>
<link id="TBookmarkFlag"/>
</seealso>
</element>
<!-- enumeration type Visibility: default
Declaration: TBookmarkFlag = (bfCurrent,bfBOF,bfEOF,bfInserted) -->
<element name="TBookmarkFlag">
<short>Bookmark flags</short>
<descr>
<var>TBookmarkFlag</var> is used internally by <link id="TDataset"/> and it's descendent types to mark the internal
memory buffers. It should not be used in end-user applications.
</descr>
<seealso>
<link id="PBookmarkFlag"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: bfCurrent -->
<element name="TBookmarkFlag.bfCurrent">
<short>Buffer used for the current record</short>
</element>
<!-- enumeration value Visibility: default
Declaration: bfBOF -->
<element name="TBookmarkFlag.bfBOF">
<short>First record in the dataset.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: bfEOF -->
<element name="TBookmarkFlag.bfEOF">
<short>Last record in the dataset</short>
</element>
<!-- enumeration value Visibility: default
Declaration: bfInserted -->
<element name="TBookmarkFlag.bfInserted">
<short>Buffer used for insert</short>
</element>
<!-- pointer type Visibility: default
Declaration: PBufferList = ^TBufferList -->
<element name="PBufferList">
<short>Pointer to <var>TBufferlist</var> type</short>
<descr>
<var>PBufferList</var> is a pointer to a structure of type <link id="TBufferList"/>.
It is an internal type, and should not be used in end-user code.
</descr>
<seealso>
<link id="TBufferList"/>
</seealso>
</element>
<!-- array type Visibility: default
Declaration: TBufferList = Array[0..dsMaxBufferCount-1] of PChar -->
<element name="TBufferList">
<short>Array of PChar records</short>
<descr>
<var>TBufferList</var> is used internally by the <link id="TDataset"/> class to manage the memory buffers for the data.
It should not be necessary to use this type in end-user applications.
</descr>
</element>
<!-- enumeration type Visibility: default
Declaration: TGetMode = (gmCurrent,gmNext,gmPrior) -->
<element name="TGetMode">
<short>Get new buffer mode</short>
<descr>
<var>TGetMode</var> is used internally by <link id="TDataset"/> when it needs to fetch more data for its buffers (using <var>GetRecord</var>).
It tells the descendent dataset what operation must be performed.
</descr>
<seealso>
<link id="TDataset.Next"/>
<link id="TDataset.Prior"/>
<link id="TGetResult"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: gmCurrent -->
<element name="TGetMode.gmCurrent">
<short>Retrieve the current record</short>
</element>
<!-- enumeration value Visibility: default
Declaration: gmNext -->
<element name="TGetMode.gmNext">
<short>Retrieve the next record.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: gmPrior -->
<element name="TGetMode.gmPrior">
<short>Retrieve the previous record.</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TGetResult = (grOK,grBOF,grEOF,grError) -->
<element name="TGetResult">
<short>result of the <var>GetRecord</var> operation.</short>
<descr>
<var>TGetResult</var> is used by descendents of <link id="TDataset"/> when they have to
communicate the result of the <var>GetRecord</var> operation back to the <var>TDataset</var> record.
</descr>
<seealso>
<link id="TGetMode"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: grOK -->
<element name="TGetResult.grOK">
<short>The operation was completed successfully</short>
</element>
<!-- enumeration value Visibility: default
Declaration: grBOF -->
<element name="TGetResult.grBOF">
<short>The beginning of the recordset is reached</short>
</element>
<!-- enumeration value Visibility: default
Declaration: grEOF -->
<element name="TGetResult.grEOF">
<short>The end of the recordset is reached.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: grError -->
<element name="TGetResult.grError">
<short>An error occurred</short>
</element>
<!-- set type Visibility: default
Declaration: TResyncMode= Set of (rmExact,rmCenter) -->
<element name="TResyncMode">
<short>Internal flag for resynchronisation</short>
<descr>
<var>TResyncMode</var> is used internally by various <link id="TDataset"/> navigation and data manipulation
methods such as the <link id="TDataset.Refresh"/> method when they need to reset the cursor position in the dataset's buffer.
</descr>
<seealso>
<link id="TDataset"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: rmExact -->
<element name="TResyncMode.rmExact">
<short>Reposition at exact the same location in the buffer</short>
</element>
<!-- enumeration value Visibility: default
Declaration: rmCenter -->
<element name="TResyncMode.rmCenter">
<short>Try to position the cursor in the middle of the buffer</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TDataAction = (daFail,daAbort,daRetry) -->
<element name="TDataAction">
<short>Action to take when a data manipulation operation has failed.</short>
<descr>
<var>TDataAction</var> is used by the <link id="TDataSetErrorEvent"/> event handler prototype.
The parameter <var>Action</var> of this event handler is of <var>TDataAction</var> type, and should
indicate what action must be taken by the dataset.
</descr>
<seealso>
<link id="TDataSetErrorEvent"/>
<link id="TDataset.OnEditError"/>
<link id="TDataset.OnPosterror"/>
<link id="TDataset.OnDeleteError"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: daFail -->
<element name="TDataAction.daFail">
<short>The operation should fail (an exception will be raised)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: daAbort -->
<element name="TDataAction.daAbort">
<short>The operation should be aborted (edits are undone, and an EAbort exception is raised)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: daRetry -->
<element name="TDataAction.daRetry">
<short>Retry the operation.</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TUpdateAction = (uaFail,uaAbort,uaSkip,uaRetry,uaApplied) -->
<element name="TUpdateAction">
<short>Action to perform when an update operation fails</short>
<descr>
<var>TUpdateAction</var> indicates what action must be taken in case the applying of updates on the underlying database fails.
This type is not used in the <link id="TDataset"/> class, but is defined on behalf of <var>TDataset</var> descendents that
implement caching of updates: It indicates what should be done when the (delayed) applying of the updates fails.
This event occurs long after the actual post or delete operation.
</descr>
<seealso>
<link id="TDataAction"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: uaFail -->
<element name="TUpdateAction.uaFail">
<short>Update operation should fail</short>
</element>
<!-- enumeration value Visibility: default
Declaration: uaAbort -->
<element name="TUpdateAction.uaAbort">
<short>The whole update operation should abort</short>
</element>
<!-- enumeration value Visibility: default
Declaration: uaSkip -->
<element name="TUpdateAction.uaSkip">
<short>The update of the current record should be skipped. (but not discarded)</short>
</element>
<!-- enumeration value Visibility: default
Declaration: uaRetry -->
<element name="TUpdateAction.uaRetry">
<short>Retry the update operation</short>
</element>
<!-- enumeration value Visibility: default
Declaration: uaApplied -->
<element name="TUpdateAction.uaApplied">
<short>Consider the update as applied</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TUpdateKind = (ukModify,ukInsert,ukDelete) -->
<element name="TUpdateKind">
<short>Kind of update operation</short>
<descr>
<var>TUpdateKind</var> indicates what kind of update operation is in progress when applying updates.
</descr>
<seealso>
<link id="TUpdateAction"/>
<link id="TDataAction"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: ukModify -->
<element name="TUpdateKind.ukModify">
<short>Modify an existing record in the database.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ukInsert -->
<element name="TUpdateKind.ukInsert">
<short>insert a new record in the database.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ukDelete -->
<element name="TUpdateKind.ukDelete">
<short>Delete a record in the database.</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TLocateOption = (loCaseInsensitive,loPartialKey) -->
<element name="TLocateOption">
<short>Available options when locating a record in a dataset</short>
<descr>
<p>
<var>TLocateOption</var> is used in the <link id="TDataset.Locate"/> call to enumerate the possible
options available when locating a record in the dataset.
</p>
<p>
For string-type fields, this option indicates that fields starting with the search value are considered a match.
For other fields (e.g. integer, date/time), this option is ignored and only equal field values are considered a match.
</p>
</descr>
<seealso>
<link id="TDataset.Locate"/>
<link id="TLocateOptions"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: loCaseInsensitive -->
<element name="TLocateOption.loCaseInsensitive">
<short>Perform a case-insensitive search</short>
</element>
<!-- enumeration value Visibility: default
Declaration: loPartialKey -->
<element name="TLocateOption.loPartialKey">
<short>Accept partial key matches for string fields</short>
</element>
<!-- set type Visibility: default
Declaration: TLocateOptions= Set of (loCaseInsensitive,loPartialKey) -->
<element name="TLocateOptions">
<short>Options to use when locating a record in a dataset</short>
<descr>
<var>TLocateOptions</var> is used in the <link id="TDataset.Locate"/> call: It should contain the actual
options to use when locating a record in the dataset.
</descr>
<seealso>
<link id="TDataset.Locate"/>
<link id="TLocateOption"/>
</seealso>
</element>
<!-- procedure type Visibility: default
Declaration: TDataOperation = procedure of object -->
<element name="TDataOperation">
<short>Internal callback type</short>
<descr>
<var>TDataOperation</var> is a prototype handler used internally in <var>TDataset</var>. It can be changed
at any time, so it should not be used in end-user code.
</descr>
<seealso>
<link id="TDatasetNotifyEvent"/>
</seealso>
</element>
<!-- procedure type Visibility: default
Declaration: TDataSetNotifyEvent = procedure(DataSet: TDataSet) of object -->
<element name="TDataSetNotifyEvent">
<short>Event handler prototype for dataset events</short>
<descr>
<var>TDatasetNotifyEVent</var> is used in most of the <link id="TDataset"/> event handlers. It differs from the more general
<var>TNotifyEvent</var> (defined in the <file>Classes</file> unit) in that the <var>Sender</var> parameter of the latter is
replaced with the <var>Dataset</var> parameter. This avoids typecasts, the available TDataset methods can be used directly.
</descr>
<seealso>
<link id="TDataset"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: DataSet: TDataSet -->
<element name="TDataSetNotifyEvent.DataSet">
<short>Dataset which triggered the event</short>
</element>
<!-- procedure type Visibility: default
Declaration: TDataSetErrorEvent = procedure(DataSet: TDataSet;E: EDatabaseError;
var DataAction: TDataAction) of object -->
<element name="TDataSetErrorEvent">
<short>Error handling callback</short>
<descr>
<var>TDatasetErrorEvent</var> is used by the <link id="TDataset.OnEditError"/>, <link id="TDataset.OnPostError"/>
and <link id="TDataset.OnDeleteError"/> event handlers to allow the programmer to specify what should be done if
an update operation fails with an exception: The <var>Dataset</var> parameter indicates what dataset triggered
the event, the <var>E</var> parameter contains the exception object. The <var>DataAction</var> must be set by the
event handler, and based on it's return value, the dataset instance will take appropriate action. The default
value is <var>daFail</var>, i.e. the exception will be raised again. For a list of available return values,
see <link id="TDataAction"/>.
</descr>
<seealso>
<link id="TDataAction"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: DataSet: TDataSet -->
<element name="TDataSetErrorEvent.DataSet">
<short>Dataset that triggered the event</short>
</element>
<!-- argument Visibility: default
Declaration: E: EDatabaseError -->
<element name="TDataSetErrorEvent.E">
<short>Exception object that caused the operation to fail.</short>
</element>
<!-- argument Visibility: default
Declaration: DataAction: TDataAction -->
<element name="TDataSetErrorEvent.DataAction">
<short>Action to take upon return of the event handler.</short>
</element>
<!-- enumeration type Visibility: default
Declaration: TFilterOption = (foCaseInsensitive,foNoPartialCompare) -->
<element name="TFilterOption">
<short>Available filter options.</short>
<descr>
<var>TFilterOption</var> enumerates the various options available when filtering a dataset.
The <link id="TFilterOptions"/> set is used in the <link id="TDataset.FilterOptions"/> property
to indicate which of the options should be used when filtering the data.
</descr>
<seealso>
<link id="TFilterOptions"/>
<link id="TDataset.FilterOptions"/>
<link id="TDataset.Filter"/>
<link id="TDataset.Filtered"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: foCaseInsensitive -->
<element name="TFilterOption.foCaseInsensitive">
<short>Filter case insensitively.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: foNoPartialCompare -->
<element name="TFilterOption.foNoPartialCompare">
<short>Do not compare values partially, always compare completely.</short>
</element>
<!-- set type Visibility: default
Declaration: TFilterOptions= Set of (foCaseInsensitive,foNoPartialCompare) -->
<element name="TFilterOptions">
<short>Set of filter options to use.</short>
<descr>
<var>TFilterOption</var> is the set of filter options to use when filtering a dataset.
This set type is used in the <link id="TDataset.FilterOptions"/> property. The available
values are described in the <link id="TFilterOption"/> type.
</descr>
<seealso>
<link id="TDataset.FilterOptions"/>
<link id="TFilterOption"/>
</seealso>
</element>
<!-- procedure type Visibility: default
Declaration: TFilterRecordEvent = procedure(DataSet: TDataSet;var Accept: Boolean)
of object -->
<element name="TFilterRecordEvent">
<short>Record filtering event handler prototype</short>
<descr>
<var>TFilterRecordEvent</var> is the prototype for the <link id="TDataset.OnFilterRecord"/> event handler.
The <var>Dataset</var> parameter indicates which dataset triggered the event, and the <var>Accept</var>
parameter must be set to <var>true</var> if the current record should be shown, <var>False</var> should
be used when the record should be hidden.
</descr>
<seealso>
<link id="TDataset.OnFilterRecord"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: DataSet: TDataSet -->
<element name="TFilterRecordEvent.DataSet">
<short>Dataset that triggered the event</short>
</element>
<!-- argument Visibility: default
Declaration: Accept: Boolean -->
<element name="TFilterRecordEvent.Accept">
<short>Set to indicate whether the current record should be shown or not.</short>
</element>
<!-- "class of" type Visibility: default
Declaration: TDatasetClass = Class of TDataSet -->
<element name="TDatasetClass">
<short>Class type for the <var>TDataset</var> class</short>
<descr>
<var>TDatasetClass</var> is the class type for the <link id="TDataset"/> class.
It is currently unused in the <file>DB</file> unit and is defined for the benefit of other units.
</descr>
<seealso>
<link id="TDataset"/>
</seealso>
</element>
<!-- pointer type Visibility: default
Declaration: TBufferArray = ^pchar -->
<element name="TBufferArray">
<short>Pointer to an array of buffers</short>
<descr>
<var>TBufferArray</var> is an internally used type. It can change in future implementations,
and should not be used in application code.
</descr>
<seealso>
<link id="TDataset"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Index: LongInt -->
<element name="TDataSet.Buffers.Index">
<short>Index in the buffers property</short>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TDataSet.Create">
<short>Create a new <var>TDataset</var> instance</short>
<descr>
<var>Create</var> initializes a new <link id="TDataset"/> instance. It calls the inherited constructor, and then
initializes the internal structures needed to manage the dataset (fielddefs, fieldlist, constraints etc.).
</descr>
<seealso>
<link id="TDataset.Destroy"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TDataSet.Create.AOwner">
<short>Owner of the new dataset instance.</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TDataSet.Destroy">
<short>Free a <var>TDataset</var> instance</short>
<descr>
<var>Destroy</var> removes a <var>TDataset</var> instance from memory. It closes the dataset if it was open,
clears all internal structures and then calls he inherited destructor.
</descr>
<errors>
An exception may occur during the close operation, in that case, the dataset will not be removed from memory.
</errors>
<seealso>
<link id="TDataset.Close"/>
<link id="TDataset.Create"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function ActiveBuffer : PChar -->
<element name="TDataSet.ActiveBuffer">
<short>Currently active memory buffer</short>
<descr>
<var>ActiveBuffer</var> points to the currently active memory buffer. It should not be used in application code.
</descr>
<seealso>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.ActiveBuffer.Result">
<short>Pointer to buffer used to display current contents</short>
</element>
<!-- function Visibility: public
Declaration: function GetFieldData(Field: TField;Buffer: Pointer) : Boolean; Virtual
; Overload -->
<element name="TDataSet.GetFieldData">
<short>Get the data for a field</short>
<descr>
<var>GetFieldData</var> should copy the data for field <var>Field</var> from the internal dataset memory buffer
into the memory pointed to by <var>Buffer</var>.
This function is not intended for use by end-user applications, and should be used only in descendent classes, where it
can be overridden. The function should return <var>True</var> if data was available and has been copied, or <var>False</var>
if no data was available (in which case the field has value <var>Null</var>). The <var>NativeFormat</var> determines whether
the data should be in native format (e.g. whether the date/time values should be in <var>TDateTime</var> format).
</descr>
<errors>
No checks are performed on the validity of the memory buffer
</errors>
<seealso>
<link id="TField.DisplayText"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.GetFieldData.Result">
<short>True if data was available, false if no data was available.</short>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="TDataSet.GetFieldData.Field">
<short>Field for which the data should be fetched</short>
</element>
<!-- argument Visibility: default
Declaration: Buffer: Pointer -->
<element name="TDataSet.GetFieldData.Buffer">
<short>Buffer in which the data should be copied</short>
</element>
<!-- argument Visibility: default
Declaration: NativeFormat: Boolean -->
<element name="TDataSet.GetFieldData.NativeFormat">
<short>Should the data be in native format</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure SetFieldData(Field: TField;Buffer: Pointer); Virtual
; Overload -->
<element name="TDataSet.SetFieldData">
<short>Store the data for a field</short>
<descr>
<var>SetFieldData</var> should copy the data from field <var>Field</var>, stored in the memory pointed to by <var>Buffer</var>
to the dataset memory buffer for the current record.
This function is not intended for use by end-user applications, and should be used only in descendent classes, where it
can be overridden. The <var>NativeFormat</var> determines whether the data is in native format (e.g. whether the date/time
values are in <var>TDateTime</var> format).
</descr>
<seealso>
<link id="TField.DisplayText"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="TDataSet.SetFieldData.Field">
<short>Field to copy data for</short>
</element>
<!-- argument Visibility: default
Declaration: Buffer: Pointer -->
<element name="TDataSet.SetFieldData.Buffer">
<short></short>
</element>
<!-- argument Visibility: default
Declaration: NativeFormat: Boolean -->
<element name="TDataSet.SetFieldData.NativeFormat">
<short>Is the data in native format</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Append -->
<element name="TDataSet.Append">
<short>Append a new record to the data</short>
<descr>
<var>Append</var> appends a new record at the end of the dataset. It is functionally equal to the <link id="TDataset.Insert"/> call,
but the cursor is positioned at the end of the dataset prior to performing the insert operation. The same events occur as when the
<var>Insert</var> call is made.
</descr>
<seealso>
<link id="TDataset.Insert"/>
<link id="TDataset.Edit"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure AppendRecord(const Values: Array of const) -->
<element name="TDataSet.AppendRecord">
<short>Append a new record to the dataset and fill with data</short>
<descr>
<var>AppendRecord</var> first calls <var>Append</var> to add a new record to the dataset. It then copies the values in <var>Values</var>
to the various fields (using <link id="TDataset.SetFields"/>) and attempts to post the record using <link id="TDataset.Post"/>.
If all went well, the result is that the values in <var>Values</var> have been added as a new record to the dataset.
</descr>
<errors>
Various errors may occur (not supplying a value for all required fields, invalid values) and may cause an exception.
This may leave the dataset in editing mode.
</errors>
<seealso>
<link id="TDataset.Append"/>
<link id="TDataset.SetFields"/>
<link id="TDataset.Post"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Values: Array of const -->
<element name="TDataSet.AppendRecord.Values">
<short>Values for all fields, in correct order</short>
</element>
<!-- function Visibility: public
Declaration: function BookmarkValid(ABookmark: TBookmark) : Boolean; Virtual -->
<element name="TDataSet.BookmarkValid">
<short>Test whether <var>ABookMark</var> is a valid bookmark.</short>
<descr>
<var>BookmarkValid</var> returns <var>True</var> if <var>ABookMark</var> is a valid bookmark for the dataset.
Various operations can render a bookmark invalid: changing the sort order, closing and re-opening the dataset.
<var>BookmarkValid</var> always returns <var>False</var> in <var>TDataset</var>.
Descendent classes must override this method to do an actual test.
</descr>
<errors>
If the bookmark is a completely arbitrary pointer, an exception may be raised.
</errors>
<seealso>
<link id="TDataset.GetBookmark"/>
<link id="TDataset.SetBookmark"/>
<link id="TDataset.FreeBookmark"/>
<link id="TDataset.BookmarkAvailable"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.BookmarkValid.Result">
<short><var>True</var> if <var>ABookmark</var> is a valid bookmark.</short>
</element>
<!-- argument Visibility: default
Declaration: ABookmark: TBookmark -->
<element name="TDataSet.BookmarkValid.ABookmark">
<short>Bookmark pointer to test</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Cancel; Virtual -->
<element name="TDataSet.Cancel">
<short>Cancel the current editing operation</short>
<descr>
<p>
<var>Cancel</var> cancels the current editing operation and sets the dataset again in browse mode.
This operation triggers the <link id="TDataset.BeforeCancel"/> and <link id="TDataset.AfterCancel"/> events.
If the dataset was sin insert mode, then the <link id="TDataset.BeforeScroll"/> and <link id="TDataset.AfterScroll"/>
events are triggered after and respectively before the <var>BeforeCancel</var> and <var>AfterCancel</var> events.
</p>
<p>
If the dataset was not in one of the editing modes when <var>Cancel</var> is called,
then nothing will happen.
</p>
</descr>
<errors>
</errors>
<seealso>
<link id="TDataset.State"/>
<link id="TDataset.Append"/>
<link id="TDataset.Insert"/>
<link id="TDataset.Edit"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure CheckBrowseMode -->
<element name="TDataSet.CheckBrowseMode">
<short>Check whether the dataset is in browse mode.</short>
<descr>
<var>CheckBrowseMode</var> will force the dataset to browse mode (<var>State=dsBrowse</var>)
if it is active. If it is not active, an <link id="EDatabaseError"/> exception is raised.
If it is active, but in an edit state, then <link
id="TDataset.UpdateRecord"/> is called, and if the <link
id="TDataset.Modified"/> property is true, a <link id="TDataset.Post"/> is
performed, else <link id="TDataset.Cancel"/> is called.
</descr>
<seealso>
<link id="TDataset.State"/>
<link id="TDataset.Post"/>
<link id="TDataset.Cancel"/>
<link id="TDataset.UpdateRecord"/>
<link id="TDataset.Modified"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure ClearFields -->
<element name="TDataSet.ClearFields">
<short>Clear the values of all fields</short>
<descr>
<var>ClearFields</var> clears the values of all fields.
</descr>
<errors>
If the dataset is not in editing mode (<var>State in dsEditmodes</var>), then an <link id="EDatabaseError"/> exception will be raised.
</errors>
<seealso>
<link id="TDataset.State"/>
<link id="TField.Clear"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Close -->
<element name="TDataSet.Close">
<short>Close the dataset</short>
<descr>
<var>Close</var> closes the dataset if it is open (<var>Active=True</var>). This action triggers the <link id="TDataset.BeforeClose"/>
and <link id="TDataset.AfterClose"/> events. If the dataset is not active, nothing happens.
</descr>
<errors>
If an exception occurs during the closing of the dataset, the <var>AfterClose</var> event will not be triggered.
</errors>
<seealso>
<link id="TDataset.Active"/>
<link id="TDataset.Open"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function ControlsDisabled : Boolean -->
<element name="TDataSet.ControlsDisabled">
<short>Check whether the controls are disabled</short>
<descr>
<var>ControlsDisabled</var> returns <var>True</var> if the controls are disabled, i.e. no events are propagated to the controls connected to this dataset.
The <link id="TDataset.DisableControls"/> call can be used to disable sending of data events to the controls.
The sending can be re-enabled with <link id="TDataset.EnableControls"/>.
This mechanism has a counting mechanism: in order to enable sending of events to the controls, <var>EnableControls</var> must be called as much as <var>DisableControls</var> was called.
The <var>ControlsDisabled</var> function will return true as long as the internal counter is not zero.
</descr>
<seealso>
<link id="TDataset.DisableControls"/>
<link id="TDataset.EnableControls"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.ControlsDisabled.Result">
<short><var>True</var> if no events are sent to the controls</short>
</element>
<!-- function Visibility: public
Declaration: function CompareBookmarks(Bookmark1: TBookmark;Bookmark2: TBookmark)
: LongInt; Virtual -->
<element name="TDataSet.CompareBookmarks">
<short>Compare two bookmarks</short>
<descr>
<var>CompareBookmarks</var> can be used to compare the relative positions of 2 bookmarks. It returns a negative value if <var>Bookmark1</var>
is located before <var>Bookmark2</var>, zero if they refer to the same record, and a positive value if the second bookmark appears before the first bookmark.
This function must be overridden by descendent classes of TDataset. The implementation in TDataset always returns zero.
</descr>
<errors>
No checks are performed on the validity of the bookmarks.
</errors>
<seealso>
<link id="TDataset.BookmarkValid"/>
<link id="TDataset.GetBookmark"/>
<link id="TDataset.SetBookmark"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.CompareBookmarks.Result">
<short>result of the compare operation</short>
</element>
<!-- argument Visibility: default
Declaration: Bookmark1: TBookmark -->
<element name="TDataSet.CompareBookmarks.Bookmark1">
<short>First bookmark</short>
</element>
<!-- argument Visibility: default
Declaration: Bookmark2: TBookmark -->
<element name="TDataSet.CompareBookmarks.Bookmark2">
<short>Second bookmark.</short>
</element>
<!-- function Visibility: public
Declaration: function CreateBlobStream(Field: TField;Mode: TBlobStreamMode) : TStream
; Virtual -->
<element name="TDataSet.CreateBlobStream">
<short>Create blob stream</short>
<descr>
<var>CreateBlobStream</var> is not intended for use by application programmers.
It creates a stream object which can be used to read or write data from a blob field.
Instead, application programmers should use the <link id="TBlobField.LoadFromStream"/> and
<link id="TBlobField.SaveToStream"/> methods when reading and writing data from/to BLOB fields.
Which operation must be performed on the stream is indicated in the <var>Mode</var> parameter,
and the <var>Field</var> parameter contains the field whose data should be read.
The caller is responsible for freeing the stream created by this function.
</descr>
<seealso>
<link id="TBlobField.LoadFromStream"/>
<link id="TBlobField.SaveToStream"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.CreateBlobStream.Result">
<short>Stream with (for) blob data</short>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="TDataSet.CreateBlobStream.Field">
<short>BLOB Field for which data should be fetched/written</short>
</element>
<!-- argument Visibility: default
Declaration: Mode: TBlobStreamMode -->
<element name="TDataSet.CreateBlobStream.Mode">
<short>Mode: read or write</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure CursorPosChanged -->
<element name="TDataSet.CursorPosChanged">
<short>Indicate a change in cursor position</short>
<descr>
<var>CursorPosChanged</var> is not intended for internal use only, and serves to indicate that the current cursor position has changed.
(it clears the internal cursor position).
</descr>
</element>
<!-- procedure Visibility: public
Declaration: procedure DataConvert(aField: TField;aSource: Pointer;aDest: Pointer;
aToNative: Boolean); Virtual -->
<element name="TDataSet.DataConvert">
<short>Convert data from/to native format</short>
<descr>
<p>
<var>DataConvert</var> converts the data from field <var>AField</var> in buffer <var>ASource</var> to native format and puts the result in <var>ADest</var>.
If the <var>aToNative</var> parameter equals <var>False</var>, then the data is converted from native format to non-native format.
Currently, only date/time/datetime and BCD fields are converted from/to native data.
This means the routine handles conversion between <var>TDateTime</var> (the native format) and <var>TDateTimeRec</var>, and between TBCD and currency (the native format)
for BCD fields.
</p>
<p>
<var>DataConvert</var> is used internally by <var>TDataset</var> and descendent classes. There should be no need to use this routine in application code.
</p>
</descr>
<errors>
No checking on the validity of the buffer pointers is performed. If an invalid pointer is passed, an exception may be raised.
</errors>
<seealso>
<link id="TDataset.GetFieldData"/>
<link id="TDataset.SetFieldData"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: aField: TField -->
<element name="TDataSet.DataConvert.aField">
<short>Field for which data should be converted.</short>
</element>
<!-- argument Visibility: default
Declaration: aSource: Pointer -->
<element name="TDataSet.DataConvert.aSource">
<short>Pointer to memory area with source data</short>
</element>
<!-- argument Visibility: default
Declaration: aDest: Pointer -->
<element name="TDataSet.DataConvert.aDest">
<short>Pointer to memory area for target data</short>
</element>
<!-- argument Visibility: default
Declaration: aToNative: Boolean -->
<element name="TDataSet.DataConvert.aToNative">
<short><var>True</var> if the conversion should happen to native format.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Delete -->
<element name="TDataSet.Delete">
<short>Delete the current record.</short>
<descr>
<var>Delete</var> will delete the current record.
This action will trigger the <link id="TDataset.BeforeDelete"/>, <link id="TDataset.BeforeScroll"/>, <link id="TDataset.AfterDelete"/> and <link id="TDataset.AfterScroll"/> events.
If the dataset was in edit mode, the edits will be canceled before the delete operation starts.
</descr>
<errors>
If the dataset is empty or read-only, then an <link id="EDatabaseError"/> exception will be raised.
</errors>
<seealso>
<link id="TDataset.Cancel"/>
<link id="TDataset.BeforeDelete"/>
<link id="TDataset.BeforeScroll"/>
<link id="TDataset.AfterDelete"/>
<link id="TDataset.AfterScroll"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure DisableControls -->
<element name="TDataSet.DisableControls">
<short>Disable event propagation of controls</short>
<descr>
<p>
<var>DisableControls</var> tells the dataset to stop sending data-related events to the controls. This can be used before starting operations that will
cause the current record to change a lot, or before any other lengthy operation that may cause a lot of events to be sent to the controls that
show data from the dataset: each event will cause the control to update itself, which is a time-consuming operation that may also cause a
lot of flicker on the screen.
</p>
<p>
The sending of events to the controls can be re-enabled with <link id="Tdataset.EnableControls"/>.
Note that for each call to <var>DisableControls</var>, a matching call to <var>EnableControls</var> must be made:
an internal count is kept and only when the count reaches zero, the controls are again notified of changes to the dataset.
It is therefore essential that the call to <var>EnableControls</var> is put in a <var>Finally</var> block:
</p>
<code>
MyDataset.DisableControls;
Try
// Do some intensive stuff
Finally
MyDataset.EnableControls
end;
</code>
<p>
</p>
</descr>
<errors>
Failure to call enablecontrols will prevent the controls from receiving updates. The state can be checked with <link id="TDataset.ControlsDisabled"/>.
</errors>
<seealso>
<link id="TDataset.EnableControls"/>
<link id="TDataset.ControlsDisabled"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Edit -->
<element name="TDataSet.Edit">
<short>Set the dataset in editing mode.</short>
<descr>
<var>Edit</var> will set the dataset in edit mode: the contents of the current record can then be changed. This action will call the <link id="TDataset.BeforeEdit"/>
and <link id="TDataset.AfterEdit"/> events. If the dataset was already in insert or edit mode, nothing will happen (the events will also not be triggered).
If the dataset is empty, this action will execute <link id="TDataset.Append"/> instead.
</descr>
<errors>
If the dataset is read-only or not opened, then an <link id="EDatabaseError"/> exception will be raised.
</errors>
<seealso>
<link id="TDataset.State"/>
<link id="TDataset.EOF"/>
<link id="TDataset.BOF"/>
<link id="TDataset.Append"/>
<link id="TDataset.BeforeEdit"/>
<link id="TDataset.AfterEdit"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure EnableControls -->
<element name="TDataSet.EnableControls">
<short>Enable event propagation of controls</short>
<descr><p>
<var>EnableControls</var> tells the dataset to resume sending data-related events to the controls. This must be used after a call to
<link id="TDataset.DisableControls"/> to re-enable updating of controls.
</p>
<p>
Note that for each call to <var>DisableControls</var>, a matching call to <var>EnableControls</var> must be made:
an internal count is kept and only when the count reaches zero, the controls are again notified of changes to the dataset.
It is therefore essential that the call to <var>EnableControls</var> is put in a <var>Finally</var> block:
</p>
<code>
MyDataset.DisableControls;
Try
// Do some intensive stuff
Finally
MyDataset.EnableControls
end;
</code>
</descr>
<errors>
Failure to call enablecontrols will prevent the controls from receiving updates. The state can be checked with <link id="TDataset.ControlsDisabled"/>.
</errors>
<seealso>
<link id="TDataset.DisableControls"/>
<link id="TDataset.ControlsDisabled"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function FieldByName(const FieldName: String) : TField -->
<element name="TDataSet.FieldByName">
<short>Search a field by name</short>
<descr>
<var>FieldByName</var> is a shortcut for <link id="TFields.FieldByname">Fields.FieldByName</link>: it searches for the field
with fieldname equalling <var>FieldName</var>. The case is performed case-insensitive. The matching field instance is returned.
</descr>
<errors>
If the field is not found, an <link id="EDatabaseError"/> exception will be raised.
</errors>
<seealso>
<link id="TFields.FieldByname"/>
<link id="TDataset.FindField"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.FieldByName.Result">
<short>Field instance matching <var>FieldName</var></short>
</element>
<!-- argument Visibility: default
Declaration: FieldName: String -->
<element name="TDataSet.FieldByName.FieldName">
<short>Fieldname to look for.</short>
</element>
<!-- function Visibility: public
Declaration: function FindField(const FieldName: String) : TField -->
<element name="TDataSet.FindField">
<short>Find a field by name</short>
<descr>
<var>FindField</var> is a shortcut for <link id="TFields.FindField">Fields.FindField</link>: it searches for the field
with fieldname equalling <var>FieldName</var>. The case is performed case-insensitive. The matching field instance is
returned, and if no match is found, <var>Nil</var> is returned.
</descr>
<seealso>
<link id="TDataset.FieldByname"/>
<link id="TFields.FindField"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.FindField.Result">
<short>Field instance matching <var>FieldName</var></short>
</element>
<!-- argument Visibility: default
Declaration: FieldName: String -->
<element name="TDataSet.FindField.FieldName">
<short>Fieldname to look for.</short>
</element>
<!-- function Visibility: public
Declaration: function FindFirst : Boolean -->
<element name="TDataSet.FindFirst">
<short>Find the first active record (deprecated)</short>
<descr>
<p>
<var>FindFirst</var> positions the cursor on the first record (taking into account filtering), and returns <var>True</var> if the cursor position was changed.
This method must be implemented by descendents of <var>TDataset</var>: The implementation in <var>TDataset</var> always returns
<var>False</var>, indicating that the position was not changed.
</p>
<p>
This method is deprecated, use <link id="TDataset.First"/> instead.
</p>
</descr>
<seealso>
<link id="TDataset.First"/>
<link id="TDataset.FindLast"/>
<link id="TDataset.FindNext"/>
<link id="TDataset.FindPrior"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.FindFirst.Result">
<short><var>True</var> if the cursor position was changed.</short>
</element>
<!-- function Visibility: public
Declaration: function FindLast : Boolean -->
<element name="TDataSet.FindLast">
<short>Find the last active record (deprecated)</short>
<descr>
<p>
<var>FindLast</var> positions the cursor on the last record (taking into account filtering), and returns <var>True</var> if the cursor position was changed.
This method must be implemented by descendents of <var>TDataset</var>: The implementation in <var>TDataset</var> always returns
<var>False</var>, indicating that the position was not changed.
</p>
<p>
This method is deprecated, use <link id="TDataset.Last"/> instead.
</p>
</descr>
<seealso>
<link id="TDataset.Last"/>
<link id="TDataset.FindFirst"/>
<link id="TDataset.FindNext"/>
<link id="TDataset.FindPrior"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.FindLast.Result">
<short><var>True</var> if the cursor position was changed.</short>
</element>
<!-- function Visibility: public
Declaration: function FindNext : Boolean -->
<element name="TDataSet.FindNext">
<short>Find the next active record (deprecated)</short>
<descr>
<p>
<var>FindLast</var> positions the cursor on the next record (taking into account filtering), and returns <var>True</var> if the cursor position was changed.
This method must be implemented by descendents of <var>TDataset</var>: The implementation in <var>TDataset</var> always returns
<var>False</var>, indicating that the position was not changed.
</p>
<p>
This method is deprecated, use <link id="TDataset.Next"/> instead.
</p>
</descr>
<seealso>
<link id="TDataset.Next"/>
<link id="TDataset.FindFirst"/>
<link id="TDataset.FindLast"/>
<link id="TDataset.FindPrior"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.FindNext.Result">
<short><var>True</var> if the cursor position was changed.</short>
</element>
<!-- function Visibility: public
Declaration: function FindPrior : Boolean -->
<element name="TDataSet.FindPrior">
<short>Find the previous active record (deprecated)</short>
<descr>
<p>
<var>FindPrior</var> positions the cursor on the previous record (taking into account filtering), and returns <var>True</var> if the cursor position was changed.
This method must be implemented by descendents of <var>TDataset</var>: The implementation in <var>TDataset</var> always returns
<var>False</var>, indicating that the position was not changed.
</p>
<p>
This method is deprecated, use <link id="TDataset.Prior"/> instead.
</p>
</descr>
<seealso>
<link id="TDataset.Prior"/>
<link id="TDataset.FindFirst"/>
<link id="TDataset.FindLast"/>
<link id="TDataset.FindPrior"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.FindPrior.Result">
<short><var>True</var> if the cursor position was changed.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure First -->
<element name="TDataSet.First">
<short>Position the dataset on the first record.</short>
<descr>
<var>First</var> positions the dataset on the first record. This action will trigger the <link id="TDataset.BeforeScroll"/> and <link id="TDataset.AfterScroll"/> events.
After the action is completed, the <link id="TDataset.BOF"/> property will be <var>True</var>.
</descr>
<errors>
If the dataset is unidirectional or is closed, an <link id="EDatabaseError"/> exception will be raised.
</errors>
<seealso>
<link id="TDataset.Prior"/>
<link id="TDataset.Last"/>
<link id="TDataset.Next"/>
<link id="TDataset.BOF"/>
<link id="TDataset.BeforeScroll"/>
<link id="TDataset.AfterScroll"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure FreeBookmark(ABookmark: TBookmark); Virtual -->
<element name="TDataSet.FreeBookmark">
<short>Free a bookmark obtained with <var>GetBookmark</var> (deprecated)</short>
<descr>
<var>FreeBookmark</var> must be used to free a bookmark obtained by <link id="TDataset.GetBookmark"/>.
It should not be used on bookmarks obtained with the <link id="TDataset.Bookmark"/> property.
Both <var>GetBookmark</var> and <var>FreeBookmark</var> are deprecated.
Use the <var>Bookmark</var> property instead: it uses a string type,
which is automatically disposed of when the string variable goes out of scope.
</descr>
<seealso>
<link id="TDataset.GetBookmark"/>
<link id="TDataset.Bookmark"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ABookmark: TBookmark -->
<element name="TDataSet.FreeBookmark.ABookmark">
<short>Bookmark to free.</short>
</element>
<!-- function Visibility: public
Declaration: function GetBookmark : TBookmark; Virtual -->
<element name="TDataSet.GetBookmark">
<short>Get a bookmark pointer (deprecated)</short>
<descr>
<p>
<var>GetBookmark</var> gets a bookmark pointer to the current cursor location.
The <link id="TDataset.SetBookmark"/> call can be used to return to the current record in the dataset.
After use, the bookmark must be disposed of with the <link id="TDataset.FreeBookmark"/> call.
The bookmark will be <var>Nil</var> if the dataset is empty or not active.
</p>
<p>
This call is deprecated. Use the <link id="TDataset.Bookmark"/> property instead to get a bookmark.
</p>
</descr>
<seealso>
<link id="TDataset.SetBookmark"/>
<link id="TDataset.FreeBookmark"/>
<link id="TDataset.Bookmark"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.GetBookmark.Result">
<short>Bookmark for current location or <var>Nil</var></short>
</element>
<!-- function Visibility: public
Declaration: function GetCurrentRecord(Buffer: PChar) : Boolean; Virtual -->
<element name="TDataSet.GetCurrentRecord">
<short>Copy the data for the current record in a memory buffer</short>
<descr>
<var>GetCurrentRecord</var> can be overridden by <var>TDataset</var> descendents to copy the data for the current record to <var>Buffer</var>.
<var>Buffer</var>must point to a memory area, large enough to contain the data for the record. If the data is copied successfully to the buffer, the function returns <var>True</var>.
The <var>TDataset</var> implementation is empty, and returns <var>False</var>.
</descr>
<seealso>
<link id="TDataset.ActiveBuffer"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.GetCurrentRecord.Result">
<short><var>True</var> if the data for the current record has been copied successfully.</short>
</element>
<!-- argument Visibility: default
Declaration: Buffer: PChar -->
<element name="TDataSet.GetCurrentRecord.Buffer">
<short>Buffer to which record data must be copied.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure GetFieldList(List: TList;const FieldNames: String) -->
<element name="TDataSet.GetFieldList">
<short>Return field instances in a list</short>
<descr>
<var>GetfieldList</var> parses <var>FieldNames</var> for names of fields, and returns the field instances that match the names in <var>list</var>.
<var>FieldNames</var> must be a list of field names, separated by semicolons. The list is cleared prior to filling with the requested field instances.
</descr>
<errors>
If <var>FieldNames</var> contains a name of a field that does not exist in the dataset, then an <link id="EDatabaseError"/> exception will
be raised.
</errors>
<seealso>
<link id="TDataset.GetFieldNames"/>
<link id="TDataset.FieldByName"/>
<link id="TDataset.FindField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: List: TList -->
<element name="TDataSet.GetFieldList.List">
<short>List in which to return field instances</short>
</element>
<!-- argument Visibility: default
Declaration: FieldNames: String -->
<element name="TDataSet.GetFieldList.FieldNames">
<short>Semicolon-separated list of fieldnames</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure GetFieldNames(List: TStrings) -->
<element name="TDataSet.GetFieldNames">
<short>Return a list of all available field names</short>
<descr>
<var>GetFieldNames</var> returns in <var>List</var> the names of all available fields, one field per item in the list. The dataset must be open for this function to work correctly.
</descr>
<seealso>
<link id="TDataset.GetFieldNameList"/>
<link id="TDataset.FieldByName"/>
<link id="TDataset.FindField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: List: TStrings -->
<element name="TDataSet.GetFieldNames.List">
<short>List in which to return field names</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure GotoBookmark(ABookmark: TBookmark) -->
<element name="TDataSet.GotoBookmark">
<short>Jump to bookmark</short>
<descr>
<p>
<var>GotoBookmark</var> positions the dataset to the bookmark position indicated by <var>ABookMark</var>. <var>ABookmark</var> is a bookmark obtained by the <link id="TDataset.GetBookmark"/>
function.
</p>
<p>
This function is deprecated, use the <link id="TDataset.Bookmark"/> property instead.
</p>
</descr>
<errors>
if <var>ABookmark</var> does not contain a valid bookmark, then an exception may be raised.
</errors>
<seealso>
<link id="TDataset.Bookmark"/>
<link id="TDataset.GetBookmark"/>
<link id="TDataset.FreeBookmark"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ABookmark: TBookmark -->
<element name="TDataSet.GotoBookmark.ABookmark">
<short>Bookmark to position the dataset on</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Insert -->
<element name="TDataSet.Insert">
<short>Insert a new record at the current position.</short>
<descr>
<var>Insert</var> will insert a new record at the current position.
When this function is called, any pending modifications (when the dataset already is in insert or edit mode) will be posted.
After that, the <link id="TDataset.BeforeInsert">BeforeInsert</link>, <link id="TDataset.BeforeScroll">BeforeScroll</link>,
<link id="TDataset.OnNewrecord">OnNewRecord</link>, <link id="TDataset.AfterInsert">AfterInsert</link> and <link id="TDataset.AfterScroll">AfterScroll</link>
events are triggered in the order indicated here. The dataset is in the <var>dsInsert</var> state after this method is called, and the contents of the various
fields can be set. To write the new record to the underlying database <link id="TDataset.Post"/> must be called.
</descr>
<errors>
If the dataset is read-only, calling <var>Insert</var> will result in an <link id="EDatabaseError"/>.
</errors>
<seealso>
<link id="TDataset.BeforeInsert">BeforeInsert</link>
<link id="TDataset.BeforeScroll">BeforeScroll</link>
<link id="TDataset.OnNewrecord">OnNewRecord</link>
<link id="TDataset.AfterInsert">AfterInsert</link>
<link id="TDataset.AfterScroll">AfterScroll</link>
<link id="TDataset.Post"/>
<link id="TDataset.Append"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure InsertRecord(const Values: Array of const) -->
<element name="TDataSet.InsertRecord">
<short>Insert a new record with given values.</short>
<descr>
<var>InsertRecord</var> is not yet implemented in Free Pascal. It does nothing.
</descr>
<errors>
</errors>
<seealso>
<link id="TDataset.Insert"/>
<link id="TDataset.SetFieldValues"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Values: Array of const -->
<element name="TDataSet.InsertRecord.Values">
<short>Values to apply</short>
</element>
<!-- function Visibility: public
Declaration: function IsEmpty : Boolean -->
<element name="TDataSet.IsEmpty">
<short>Check if the dataset contains no data</short>
<descr>
<var>IsEmpty</var> returns <var>True</var> if the dataset is empty, i.e. if <link id="TDataset.EOF">EOF</link> and <link id="TDataset.BOF"/> are both <var>True</var>, and the dataset is not in insert mode.
</descr>
<seealso>
<link id="TDataset.EOF"/>
<link id="TDataset.BOF"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.IsEmpty.Result">
<short><var>True</var> if the dataset has no data available.</short>
</element>
<!-- function Visibility: public
Declaration: function IsLinkedTo(ADataSource: TDatasource) : Boolean -->
<element name="TDataSet.IsLinkedTo">
<short>Check whether a datasource is linked to the dataset</short>
<descr>
<var>IsLinkedTo</var> returns <var>True</var> if <var>ADatasource</var> is linked to this dataset, either directly (the <link id="TDatasource.Dataset">ADatasource.Dataset"</link>
points to the current dataset instance, or indirectly.
</descr>
<seealso>
<link id="TDatasource.Dataset"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.IsLinkedTo.Result">
<short>True if <var>ADatasource</var> is linked to the dataset.</short>
</element>
<!-- argument Visibility: default
Declaration: ADataSource: TDatasource -->
<element name="TDataSet.IsLinkedTo.ADataSource">
<short><var>TDatasource</var> instance to check.</short>
</element>
<!-- function Visibility: public
Declaration: function IsSequenced : Boolean; Virtual -->
<element name="TDataSet.IsSequenced">
<short>Is the data sequenced</short>
<descr>
<var>IsSequenced</var> indicates whether it is safe to use the <link id="TDataset.RecNo"/> property to navigate in the records of the data.
By default, this property is set to <var>True</var>, but <var>TDataset</var> descendents may set this property to <var>False</var> (for instance,
unidirectional datasets), in which case <var>RecNo</var> should not be used to navigate through the data.
</descr>
<seealso>
<link id="TDataset.RecNo"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.IsSequenced.Result">
<short><var>True</var> if <var>RecNo</var> can be used for navigation.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Last -->
<element name="TDataSet.Last">
<short>Navigate forward to the last record</short>
<descr>
<p>
<var>Last</var> puts the cursor at the last record in the dataset, fetching more records from the underlying database if needed.
It is equivalent to moving to the last record and calling <link id="TDataset.Next"/>.
After a call to <var>Last</var>, the <link id="TDataset.EOF"/> property will be <var>True</var>.
</p>
<p>
Calling this method will
trigger the <link id="TDataset.BeforeScroll"/> and <link id="TDataset.AfterScroll"/> events.
</p>
</descr>
<seealso>
<link id="TDataset.First"/>
<link id="TDataset.Next"/>
<link id="TDataset.EOF"/>
<link id="TDataset.BeforeScroll"/>
<link id="TDataset.AfterScroll"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function Locate(const keyfields: String;const keyvalues: Variant;
options: TLocateOptions) : Boolean; Virtual -->
<element name="TDataSet.Locate">
<short>Locate a record based on some key values</short>
<descr>
<p>
<var>Locate</var> attempts to locate a record in the dataset. There are 2 possible cases when using <var>Locate</var>.
</p>
<ol>
<li><var>Keyvalues</var> is a single value. In that case, <var>KeyFields</var> is the name of the field whose value must be matched to the value in <var>KeyValues</var></li>
<li><var>Keyvalues</var> is a variant array. In that case, <var>KeyFields</var> must contain a list of names of fields (separated by semicolons) whose values must be matched to the values in the <var>KeyValues</var> array</li>
</ol>
<p>
The matching always happens according to the <var>Options</var> parameter. For a description of the possible values, see <link id="TLocateOption"/>.
</p>
<p>
If a record is found that matches the criteria, then the <var>locate</var> operation positions the cursor on this record, and returns <var>True</var>.
If no record is found to match the criteria, <var>False</var> is returned, and the position of the cursor is unchanged.
</p>
<p>
The implementation in <var>TDataset</var> always returns <var>False</var>.
It is up to <var>TDataset</var> descendents to implement this method and return an appropriate value.
</p>
</descr>
<seealso>
<link id="TDataset.Find"/>
<link id="TDataset.Lookup"/>
<link id="TLocateOption"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.Locate.Result">
<short><var>True</var> if a record matching <var>KeyValues</var> is found.</short>
</element>
<!-- argument Visibility: default
Declaration: keyfields: String -->
<element name="TDataSet.Locate.keyfields">
<short>List of fields, separated by semicolons</short>
</element>
<!-- argument Visibility: default
Declaration: keyvalues: Variant -->
<element name="TDataSet.Locate.keyvalues">
<short>Single value or array of values.</short>
</element>
<!-- argument Visibility: default
Declaration: options: TLocateOptions -->
<element name="TDataSet.Locate.options">
<short>Options to take into account when searching for the record.</short>
</element>
<!-- function Visibility: public
Declaration: function Lookup(const KeyFields: String;const KeyValues: Variant;
const ResultFields: String) : Variant; Virtual -->
<element name="TDataSet.Lookup">
<short>Search for a record and return matching values.</short>
<descr>
<var>Lookup</var> always returns <var>Null</var> in <var>TDataset</var>. Descendents of <var>TDataset</var> can override this method
to call <link id="TDataset.Locate"/> to locate the record with fields <var>KeyFields</var> matching <var>KeyValues</var> and then to
return the values of the fields in <var>ResultFields</var>. If <var>ResultFields</var> contains more than one fieldname (separated
by semicolons), then the function returns an array. If there is only 1 fieldname, the value is returned directly.
</descr>
<errors>
If the dataset is unidirectional, then a <link id="EDatabaseError"/> exception will be raised.
</errors>
<seealso>
<link id="TDataset.Locate"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.Lookup.Result">
<short>Value(s) of <var>ResultFields</var>.</short>
</element>
<!-- argument Visibility: default
Declaration: KeyFields: String -->
<element name="TDataSet.Lookup.KeyFields">
<short>Semicolon-separated list of fieldnames to locate record.</short>
</element>
<!-- argument Visibility: default
Declaration: KeyValues: Variant -->
<element name="TDataSet.Lookup.KeyValues">
<short>Values for keyfields to locate record with.</short>
</element>
<!-- argument Visibility: default
Declaration: ResultFields: String -->
<element name="TDataSet.Lookup.ResultFields">
<short>Semicolon-separated list of fieldnames whose values must be returned.</short>
</element>
<!-- function Visibility: public
Declaration: function MoveBy(Distance: LongInt) : LongInt -->
<element name="TDataSet.MoveBy">
<short>Move the cursor position</short>
<descr>
<var>MoveBy</var> moves the current record pointer with <var>Distance</var> positions. <var>Distance</var> may be a positive number,
in which case the cursor is moved forward, or a negative number, in which case the cursor is moved backward. The move operation will stop
as soon as the beginning or end of the data is reached. The <link id="TDataset.BeforeScroll"/> and <link id="TDataset.AfterScroll"/> events
are triggered (once) when this method is called. The function returns the distance which was actually moved by the cursor.
</descr>
<errors>
A negative distance will result in an <link id="EDatabaseError"/> exception on unidirectional datasets.
</errors>
<seealso>
<link id="TDataset.RecNo"/>
<link id="TDataset.BeforeScroll"/>
<link id="TDataset.AfterScroll"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.MoveBy.Result">
<short>Number of positions the cursor actually moved</short>
</element>
<!-- argument Visibility: default
Declaration: Distance: LongInt -->
<element name="TDataSet.MoveBy.Distance">
<short>Number of positions the cursor should be moved</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Next -->
<element name="TDataSet.Next">
<short>Go to the next record in the dataset.</short>
<descr>
<var>Next</var> positions the cursor on the next record in the dataset. It is equivalent to a <var>MoveBy(1)</var> operation.
Calling this method triggers the <link id="TDataset.BeforeScroll"/> and <link id="TDataset.AfterScroll"/> events.
If the dataset is located on the last known record (<link id="TDataset.EOF">EOF</link> is true), then no action is performed, and the events are not triggered.
</descr>
<errors>
Calling this method on a closed dataset will result in an <link id="EDatabaseError"/> exception.
</errors>
<seealso>
<link id="TDataset.MoveBy"/>
<link id="TDataset.Prior"/>
<link id="TDataset.Last"/>
<link id="TDataset.BeforeScroll"/>
<link id="TDataset.AfterScroll"/>
<link id="TDataset.EOF"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Open -->
<element name="TDataSet.Open">
<short>Activate the dataset: Fetch data into memory.</short>
<descr>
<p>
<var>Open</var> must be used to make the <var>TDataset</var> Active. It does nothing if the dataset is already active.
<var>Open</var> initializes the <var>TDataset</var> and brings the dataset in a browsable state:
</p>
<p>Effectively the following happens:
</p>
<ol>
<li>The BeforeOpen event is triggered.</li>
<li>The descendents <var>InternalOpen</var> method is called to actually fetch data and initialize fielddefs and field instances.</li>
<li><link id="TDataset.BOF">BOF</link>is set to <var>True</var></li>
<li>Internal buffers are allocated and filled with data</li>
<li>If the dataset is empty, <link id="TDataset.EOF">EOF</link> is set to true</li>
<li><link id="TDataset.State">State</link> is set to <var>dsBrowse</var></li>
<li>The <link id="TDataset.AfterOpen">AfterOpen</link> event is triggered</li>
</ol>
</descr>
<errors>
If the descendent class cannot fetch the data, or the data does not match the field definitions present in the dataset,
then an exception will be raised.
</errors>
<seealso>
<link id="TDataset.Active"/>
<link id="TDataset.State"/>
<link id="TDataset.BOF"/>
<link id="TDataset.EOF"/>
<link id="TDataset.BeforeOpen"/>
<link id="TDataset.AfterOpen"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Post; Virtual -->
<element name="TDataSet.Post">
<short>Post pending edits to the database.</short>
<descr>
<var>Post</var> attempts to save pending edits when the dataset is in one of the edit modes:
that is, after a <link id="TDataset.Insert">Insert</link>, <link id="Tdataset.Append">Append</link> or <link id="TDataset.Edit"/> operation.
The changes will be committed to memory - and usually immediately to the underlying database as well. Prior to saving the data to memory,
it will check some constraints: in <var>TDataset</var>, the presence of a value for all required fields is checked. if for a required
field no value is present, an exception will be raised.
A call to <var>Post</var> results in the triggering of the <link id="TDataset.BeforePost">BeforePost</link>, <link id="TDataset.AfterPost">AfterPost</link> events.
After the call to <var>Past</var>, the <link id="TDataset.State">State</link> of the dataset is again <var>dsBrowse</var>, i.e. the dataset is again in browse mode.
</descr>
<errors>
Invoking the <var>post</var> method when the dataset is not in one of the editing modes (<link id="dsEditModes"/>) will result in an <link id="EdatabaseError"/> exception.
If an exception occurs during the save operation, the <link id="Tdataset.OnPostError">OnPostError</link> event is triggered to handle the error.
</errors>
<seealso>
<link id="TDataset.Insert">Insert</link>
<link id="Tdataset.Append">Append</link>
<link id="TDataset.Edit">Edit</link>
<link id="Tdataset.OnPostError">OnPostError</link>
<link id="TDataset.BeforePost">BeforePost</link>
<link id="TDataset.AfterPost">AfterPost</link>
<link id="TDataset.State">State</link>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Prior -->
<element name="TDataSet.Prior">
<short>Go to the previous record</short>
<descr>
<var>Prior</var> moves the cursor to the previous record. It is equivalent to a <var>MoveBy(-1)</var> operation.
Calling this method triggers the <link id="TDataset.BeforeScroll"/> and <link id="TDataset.AfterScroll"/> events.
If the dataset is located on the first record, (<link id="TDataset.BOF">BOF</link> is true) then no action is performed, and the events are not triggered.
</descr>
<errors>
Calling this method on a closed dataset will result in an <link id="EDatabaseError"/> exception.
</errors>
<seealso>
<link id="TDataset.MoveBy"/>
<link id="TDataset.Next"/>
<link id="TDataset.First"/>
<link id="TDataset.BeforeScroll"/>
<link id="TDataset.AfterScroll"/>
<link id="TDataset.BOF"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Refresh -->
<element name="TDataSet.Refresh">
<short>Refresh the records in the dataset</short>
<descr>
<var>Refresh</var> posts any pending edits, and refetches the data in the dataset from the underlying database, and attempts to reposition the cursor
on the same record as it was. This operation is not supported by all datasets, and should be used with care. The repositioning may not always succeed,
in which case the cursor will be positioned on the first record in the dataset. This is in particular true for unidirectional datasets.
Calling <var>Refresh</var> results in the triggering of the <link id="TDataset.BeforeRefresh">BeforeRefresh</link> and <link id="TDataset.AfterRefresh">AfterRefresh</link> events.
</descr>
<errors>
Refreshing may fail if the underlying dataset descendent does not support it.
</errors>
<seealso>
<link id="TDataset.Close"/>
<link id="TDataset.Open"/>
<link id="TDataset.BeforeRefresh">BeforeRefresh</link>
<link id="TDataset.AfterRefresh">AfterRefresh</link>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Resync(Mode: TResyncMode); Virtual -->
<element name="TDataSet.Resync">
<short>Resynchronize the data buffer</short>
<descr>
<var>Resync</var> refetches the records around the cursor position. It should not be used by application code, instead <link id="TDataset.Refresh"/> should be used.
The <var>Resync</var> parameter indicates how the buffers should be refreshed.
</descr>
<seealso>
<link id="TDataset.Refresh"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Mode: TResyncMode -->
<element name="TDataSet.Resync.Mode">
<short>How to refresh the buffers.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure SetFields(const Values: Array of const) -->
<element name="TDataSet.SetFields">
<short>Set a number of field values at once</short>
<descr>
<var>SetFields</var> sets the values of the fields with the corresponding values in the array.
It starts with the first field in the <link id="TDataset.Fields"/> property, and works it's way down the array.
</descr>
<errors>
If the dataset is not in edit mode, then an <link id="EDatabaseError"/> exception will be raised.
If there are more values than fields, an <var>EListError</var> exception will be raised.
</errors>
<seealso>
<link id="TDataset.Fields"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Values: Array of const -->
<element name="TDataSet.SetFields.Values">
<short>Values to save in fields</short>
</element>
<!-- function Visibility: public
Declaration: function Translate(Src: PChar;Dest: PChar;ToOem: Boolean) : Integer
; Virtual -->
<element name="TDataSet.Translate">
<short>Transliterate a buffer</short>
<descr>
<var>Translate</var> is called for all string fields for which the <link id="TStringField.Transliterate"/>
property is set to <var>True</var>. The <var>toOEM</var> parameter is set to <var>True</var> if the transliteration
must happen from the used codepage to the codepage used for storage, and if it is set to <var>False</var> then the
transliteration must happen from the native codepage to the storage codepage.
This call must be overridden by descendents of <var>TDataset</var> to provide the
necessary transliteration: <var>TDataset</var> just copies the contents of the <var>Src</var> buffer to the
<var>Dest</var> buffer. The result must be the number of bytes copied to the destination buffer.
</descr>
<errors>
No checks are performed on the bufffers.
</errors>
<seealso>
<link id="TStringField.Transliterate"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.Translate.Result">
<short>Number of written bytes.</short>
</element>
<!-- argument Visibility: default
Declaration: Src: PChar -->
<element name="TDataSet.Translate.Src">
<short>Source buffer</short>
</element>
<!-- argument Visibility: default
Declaration: Dest: PChar -->
<element name="TDataSet.Translate.Dest">
<short>Destination buffer</short>
</element>
<!-- argument Visibility: default
Declaration: ToOem: Boolean -->
<element name="TDataSet.Translate.ToOem">
<short>Should translation happen from native to OEM codepage or vice versa ?</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure UpdateCursorPos -->
<element name="TDataSet.UpdateCursorPos">
<short>Update cursor position</short>
<descr>
<var>UpdateCursorPos</var> should not be used in application code. It is used to ensure that the logical cursor position is the correct (physical) position.
</descr>
<seealso>
<link id="TDataset.Refresh"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure UpdateRecord -->
<element name="TDataSet.UpdateRecord">
<short>Indicate that the record contents have changed</short>
<descr>
<var>UpdateRecord</var> notifies controls that the contents of the current record have changed. It triggers the event.
This should never be called by application code, and is intended only for descendents of <var>TDataset</var>.
</descr>
<seealso>
<link id="TDataset.OnUpdateRecord">OnUpdateRecord</link>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function UpdateStatus : TUpdateStatus; Virtual -->
<element name="TDataSet.UpdateStatus">
<short>Get the update status for the current record</short>
<descr>
<var>UpdateStatus</var> always returns <var>usUnModified</var> in the <var>TDataset</var> implementation. Descendent classes
should override this method to indicate the status for the current record in case they support cached updates: the function should
return the status of the current record: has the record been locally inserted, modified or deleted, or none of these.
<var>UpdateStatus</var> is not used in <var>TDataset</var> itself, but is provided so applications have a unique API to work with
datasets that have support for cached updates.
</descr>
<seealso>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSet.UpdateStatus.Result">
<short>Status of the current record</short>
</element>
<!-- property Visibility: public
Declaration: BOF : Boolean -->
<element name="TDataSet.BOF">
<short>Is the cursor at the beginning of the data (on the first record)</short>
<descr>
<var>BOF</var> returns <var>True</var> if the first record is the first record in the dataset, <var>False</var> otherwise.
It will always be <var>True</var> if the dataset is just opened, or after a call to <link id="TDataset.First"/>.
As soon as <link id="TDataset.Next"/> is called, <var>BOF</var> will no longer be true.
</descr>
<seealso>
<link id="TDataset.EOF"/>
<link id="TDataset.Next"/>
<link id="TDataset.First"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Bookmark : TBookmarkStr -->
<element name="TDataSet.Bookmark">
<short>Get or set the current cursor position</short>
<descr>
<p>
<var>Bookmark</var> can be read to obtain a bookmark to the current position in the dataset.
The obtained value can be used to return to current position at a later stage.
Writing the <var>Bookmark</var> property with a value previously obtained like this,
will reposition the dataset on the same position as it was when the property was read.
</p>
<p>
This is often used when scanning all records, like this:
</p>
<code>
Var
B : TBookmarkStr;
begin
With MyDataset do
begin
B:=Bookmark;
DisableControls;
try
First;
While Not EOF do
begin
DoSomething;
Next;
end;
finally
EnableControls;
Bookmark:=B;
end;
end;
</code>
<p>
At the end of this code, the dataset will be positioned on the same record as when the code
was started. The <link id="TDataset.DisableControls"/> and <link id="TDataset.EnableControls"/> calls
prevent the controls from receiving update notifications as the dataset scrolls through the records, thus
reducing flicker on the screen.
</p>
<p>
Note that bookmarks become invalid as soon as the dataset closes. A call to refresh may also destroy the bookmarks.
</p>
</descr>
<seealso>
<link id="TDataset.DisableControls"/>
<link id="TDataset.EnableControls"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: CanModify : Boolean -->
<element name="TDataSet.CanModify">
<short>Can the data in the dataset be modified</short>
<descr>
<var>CanModifiy</var> indicates whether the dataset allows editing. <var>Unidirectional</var> datasets do not allow
editing. Descendent datasets can impose additional conditions under which the data can not be modified (read-only
datasets, for instance). If the <var>CanModify</var> property is <var>False</var>, then the edit, append or insert methods will fail.
</descr>
<seealso>
<link id="TDataset.Insert"/>
<link id="TDataset.Append"/>
<link id="TDataset.Delete"/>
<link id="Tdataset.Edit"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataSource : TDatasource -->
<element name="TDataSet.DataSource">
<short>Datasource this dataset is connected to.</short>
<descr>
<var>Datasource</var> is the datasource this dataset is connected to, and from which it can get values for parameters.
In <var>TDataset</var>, the <var>Datasource</var> property is not used, and is always <var>Nil</var>. It is up to descendent classes that
actually support a datasource to implement getter and setter routines for the <var>Datasource</var> property.
</descr>
<seealso>
<link id="TDatasource"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DefaultFields : Boolean -->
<element name="TDataSet.DefaultFields">
<short>Is the dataset using persistent fields or not.</short>
<descr>
<p>
<var>DefaultFields</var> is <var>True</var> if the fields were generated dynamically when the dataset was opened.
If it is <var>False</var> then the field instances are persistent, i;e. they were created at design time with the fields editor.
If <var>DefaultFields</var> is <var>True</var>, then for each item in the <link id="TDataset.FieldDefs"/> property, a field
instance is created. These fields instances are freed again when the dataset is closed.
</p>
<p>
If <var>DefaultFields</var> is <var>False</var>, then there may be less field instances than there are items in the <var>FieldDefs</var> property.
This can be the case for instance when opening a DBF file at runtime which has more fields than the file used at design time.
</p>
</descr>
<seealso>
<link id="TDataset.FieldDefs"/>
<link id="TDataset.Fields"/>
<link id="TField"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: EOF : Boolean -->
<element name="TDataSet.EOF">
<short>Indicates whether the last record has been reached.</short>
<descr>
<p>
<var>EOF</var> is <var>True</var> if the cursor is on the last record in the dataset, and no more records are available. It is also <var>True</var> for an empty dataset.
The <var>EOF</var> property will be set to <var>True</var> in the following cases:
</p>
<ol>
<li>The cursor is on the last record, and the <link id="TDataset.Next"/> method is called.</li>
<li>The <link id="TDataset.Last"/> method is called (which is equivalent to moving to the last record and calling <link id="TDataset.Next"/>).</li>
<li>The dataset is empty when opened.</li>
</ol>
<p>
In all other cases, <var>EOF</var> is <var>False</var>. Note: when the cursor is on the last-but-one record, and <var>Next</var> is called (moving the cursor to the last record), <var>EOF</var> will not yet
be <var>True</var>. Only if both the cursor is on the last record <b>and</b> <var>Next</var> is called, will <var>EOF</var> become <var>True</var>.
</p>
<p>
This means that the following loop will stop after the last record was visited:
</p>
<code>
With MyDataset do
While not EOF do
begin
DoSomething;
Next;
end;
</code>
</descr>
<seealso>
<link id="TDataset.BOF"/>
<link id="TDataset.Next"/>
<link id="TDataset.Last"/>
<link id="TDataset.IsEmpty"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: FieldCount : LongInt -->
<element name="TDataSet.FieldCount">
<short>Number of fields</short>
<descr>
<var>FieldCount</var> is the same as <link id="TFields.Count">Fields.Count</link>, i.e. the number of fields.
For a dataset with persistent fields (when <link id="TDataset.DefaultFields">DefaultFields</link> is <var>False</var>)
then this number will be always the same every time the dataset is opened. For a dataset with dynamically created fields,
the number of fields may be different each time the dataset is opened.
</descr>
<seealso>
<link id="TFields"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: FieldDefs : TFieldDefs -->
<element name="TDataSet.FieldDefs">
<short>Definitions of available fields in the underlying database</short>
<descr>
<var>FieldDefs</var> is filled by the <var>TDataset</var> descendent when the dataset is opened. It represents the fields as they
are returned by the particular database when the data is initially fetched from the engine. If the dataset uses dynamically created
fields (when <link id="TDataset.DefaultFields">DefaultFields</link> is <var>True</var>), then for each item in this list, a field i
instance will be created with default properties available in the field definition.
If the dataset uses persistent fields, then the fields in the field list will be checked against the items in the <var>FieldDefs</var> property.
If no matching item is found for a persistent field, then an exception will be raised. Items that exist in the fielddefs property but for which
there is no matching field instance, are ignored.
</descr>
<seealso>
<link id="TDataset.Open"/>
<link id="TDataset.DefaultFields"/>
<link id="TDataset.Fields"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Found : Boolean -->
<element name="TDataSet.Found">
<short>Check success of one of the <var>Find</var> methods</short>
<descr>
<var>Found</var> is <var>True</var> if the last of one of the <link id="TDataset.FindFirst"/>,<link id="TDataset.FindLast"/>,<link id="TDataset.FindNext"/>
or <link id="TDataset.FindPrior"/> operations was successful.
</descr>
<seealso>
<link id="TDataset.FindFirst"/>
<link id="TDataset.FindLast"/>
<link id="TDataset.FindNext"/>
<link id="TDataset.FindPrior"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Modified : Boolean -->
<element name="TDataSet.Modified">
<short>Was the current record modified ?</short>
<descr>
<var>Modified</var> is <var>True</var> if the current record was modified after a call to <link id="Tdataset.Edit"/> or <link id="Tdataset.Insert"/>.
It becomes <var>True</var> if a value was written to one of the fields of the dataset.
</descr>
<seealso>
<link id="Tdataset.Edit"/>
<link id="TDataset.Insert"/>
<link id="TDataset.Append"/>
<link id="TDataset.Cancel"/>
<link id="TDataset.Post"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: IsUniDirectional : Boolean -->
<element name="TDataSet.IsUniDirectional">
<short>Is the dataset unidirectional (i.e. forward scrolling only)</short>
<descr>
<p>
<var>IsUniDirectional</var> is <var>True</var> if the dataset is unidirectional. By default it is <var>False</var>, i.e. scrolling backwards is allowed.
If the dataset is unidirectional, then any attempt to scroll backwards (using one of <link id="TDataset.Prior"/> or <link id="TDataset.Last"/>),
random positioning of the cursor, editing or filtering will result in an <link id="EDatabaseError"/>.
Unidirectional datasets are also not suitable for display in a grid, as they have only 1 record in memory at any given time: they are only useful for
performing an action on all records:
</p>
<code>
With MyDataset do
While not EOF do
begin
DoSomething;
Next;
end;
</code>
</descr>
<seealso>
<link id="TDataset.Prior"/>
<link id="TDataset.Next"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: RecordCount : LongInt -->
<element name="TDataSet.RecordCount">
<short>Number of records in the dataset</short>
<descr>
<p>
<var>RecordCount</var> is the number of records in the dataset. This number is not necessarily equal to the number of records returned by a query.
For optimization purposes, a <var>TDataset</var> descendent may choose not to fetch all records from the database when the dataset is opened.
If this is the case, then the <var>RecordCount</var> will only reflect the number of records that have actually been fetched at the current time,
and therefor the value will change as more records are fetched from the database.
</p>
<p>
Only when <var>Last</var> has been called (and the dataset has been forced to fetch all records returned by the database), will the value of
<var>RecordCount</var> be equal to the number of records returned by the query.
</p>
<p>
In general, datasets based on in-memory data or flat files, will return the correct number of records in <var>RecordCount</var>.
</p>
</descr>
<seealso>
<link id="TDataset.RecNo"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: RecNo : LongInt -->
<element name="TDataSet.RecNo">
<short>Current record number</short>
<descr>
<p>
<var>RecNo</var> returns the current position in the dataset. It can be written to set the cursor to the indicated position.
This property must be implemented by <var>TDataset</var> descendents, for <var>TDataset</var> the property always returns -1.
</p>
<p>
This property should not be used if exact positioning is required. it is inherently unreliable.
</p>
</descr>
<seealso>
<link id="TDataset.RecordCount"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: RecordSize : Word -->
<element name="TDataSet.RecordSize">
<short>Size of the record in memory</short>
<descr>
<var>RecordSize</var> is the total size of the memory buffer used for the records.
This property returns always 0 in the <var>TDataset</var> implementation.
Descendent classes should implement this property.
Note that this property does not necessarily reflect the actual data size for the records.
that may be more or less, depending on how the <var>TDataset</var> descendent manages it's data.
</descr>
<seealso>
<link id="TField.Datasize"/>
<link id="TDataset.RecordCount"/>
<link id="TDataset.RecNo"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: State : TDataSetState -->
<element name="TDataSet.State">
<short>Current operational state of the dataset</short>
<descr>
<p>
<var>State</var> determines the current operational state of the dataset. During it's lifetime,
the dataset is in one of many states, depending on which operation is currently in progress:
</p>
<ul>
<li>If a dataset is closed, the <var>State</var> is <var>dsInactive</var>.</li>
<li>As soon as it is opened, it is in <var>dsBrowse</var> mode, and remains in this state while changing the cursor position.</li>
<li>If the <var>Edit</var> or <var>Insert</var> or <var>Append</var> methods is called,
the <var>State</var> changes to <var>dsEdit</var> or <var>dsInsert</var>, respectively.</li>
<li>
As soon as edits have been posted or cancelled, the state is again <var>dsBrowse</var>.
</li>
<li>Closing the dataset sets the state again to <var>dsInactive</var>.
</li>
</ul>
<p>
There are some other states, mainly connected to internal operations, but which can become visible in some of the
dataset's events.
</p>
</descr>
<seealso>
<link id="TDataset.Active"/>
<link id="TDataset.Edit"/>
<link id="TDataset.Insert"/>
<link id="TDataset.Append"/>
<link id="TDataset.Post"/>
<link id="TDataset.Cancel"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Fields : Tfields -->
<element name="TDataSet.Fields">
<short>Indexed access to the fields of the dataset.</short>
<descr>
<var>Fields</var> provides access to the fields of the dataset. It is of type <link id="TFields"/> and therefore
gives indexed access to the fields, but also allows other operations such as searching for fields based on their
names or getting a list of fieldnames.
</descr>
<seealso>
<link id="TFieldDefs"/>
<link id="TField"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: FieldValues[fieldname: String]: Variant; default -->
<element name="TDataSet.FieldValues">
<short>Access to field values based on the field names.</short>
<descr>
<p>
<var>FieldValues</var> provides array-like access to the values of the fields, based on the names of the fields.
The value is read or written as a variant type. It is equivalent to the following:
</p>
<code>
FieldByName(FieldName).AsVariant
</code>
<p>
It can be read as well as written.
</p>
</descr>
<seealso>
<link id="TFields.FieldByName"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: fieldname: String -->
<element name="TDataSet.FieldValues.fieldname">
<short>Name of the field for which the value must be read or written.</short>
</element>
<!-- property Visibility: public
Declaration: Filter : String -->
<element name="TDataSet.Filter">
<short>Filter to apply to the data in memory.</short>
<descr>
<p>
<var>Filter</var> is not implemented by <var>TDataset</var>.
It is up to descendent classes to implement actual filtering: the filtering happens on in-memory data, and is not applied on the database level.
(in particular: setting the filter property will in no way influence the WHERE clause of an SQL-based dataset).
</p>
<p>
In general, the <var>filter</var> property accepts a SQL-like syntax usually encountered in the WHERE clause of an SQL SELECT statement.
</p>
<p>
The filter is only applied if the <var>Filtered</var> property is set to <var>True</var>.
If the <var>Filtered</var> property is <var>False</var>, the <var>Filter</var> property is ignored.
</p>
</descr>
<seealso>
<link id="TDataset.Filtered"/>
<link id="TDataset.FilterOptions"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Filtered : Boolean -->
<element name="TDataSet.Filtered">
<short>Is the filter active or not.</short>
<descr>
<var>Filtered</var> determines whether the filter condition in <link id="TDataset.Filter"/> is applied or not.
The filter is only applied if the <var>Filtered</var> property is set to <var>True</var>.
If the <var>Filtered</var> property is <var>False</var>, the <var>Filter</var> property is ignored.
</descr>
<seealso>
<link id="TDataset.Filter"/>
<link id="TDataset.FilterOptions"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: FilterOptions : TFilterOptions -->
<element name="TDataSet.FilterOptions">
<short>Options to apply when filtering</short>
<descr>
<var>FilterOptions</var> determines what options should be taken into account when applying the filter
in <link id="TDataset.Filter"/>, such as case-sensitivity or whether to treat an asterisk as a wildcard:
By default, an asterisk (*) at the end of a literal string in the filter expression is treated as a wildcard.
When <var>FilterOptions</var> does not include <var>foNoPartialCompare</var>, strings that have an asterisk
at the end, indicate a partial string match. In that case, the asterisk matches any number of characters.
If <var>foNoPartialCompare</var> is included in the options, the asterisk is regarded as a regular character.
</descr>
<seealso>
<link id="TDataset.Filter"/>
<link id="TDataset.FilterOptions"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Active : Boolean -->
<element name="TDataSet.Active">
<short>Is the dataset open or closed.</short>
<descr>
<var>Active</var> is <var>True</var> if the dataset is open, and <var>False</var> if it is closed (<link id="TDataset.State"/> is then <var>dsInactive</var>).
Setting the <var>Active</var> property to <var>True</var> is equivalent to calling <link id="TDataset.Open"/>,
setting it to <var>False</var> is equivalent to calling <link id="TDataset.Close"/>
</descr>
<seealso>
<link id="TDataset.State"/>
<link id="TDataset.Open"/>
<link id="TDataset.Close"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AutoCalcFields : Boolean -->
<element name="TDataSet.AutoCalcFields">
<short>How often should the value of calculated fields be calculated</short>
<descr>
<p>
<var>AutoCalcFields</var> is by default <var>true</var>, meaning that the values of calculated fields will be computed in the following cases:
</p>
<ul>
<li>When the dataset is opened</li>
<li>When the dataset is put in edit mode</li>
<li>When a data field changed</li>
</ul>
<p>
When <var>AutoCalcFields</var> is <var>False</var>, then the calculated fields are called whenever
</p>
<ul>
<li>The dataset is opened</li>
<li>The dataset is put in edit mode</li>
</ul>
<p>
Both proper calculated fields and lookup fields are computed. Calculated fields are computed through the <link id="TDataset.OnCalcFields"/> event.
</p>
</descr>
<seealso>
<link id="TField.FieldKind"/>
<link id="TDataset.OnCalcFields"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BeforeOpen : TDataSetNotifyEvent -->
<element name="TDataSet.BeforeOpen">
<short>Event triggered before the dataset is opened.</short>
<descr>
<var>BeforeOpen</var> is triggered before the dataset is opened. No actions have been performed yet when this event is called,
and the dataset is still in <var>dsInactive</var> state.
It can be used to set parameters and options that influence the opening process. If an exception is raised during the event
handler, the dataset remains closed.
</descr>
<seealso>
<link id="TDataset.AfterOpen"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AfterOpen : TDataSetNotifyEvent -->
<element name="TDataSet.AfterOpen">
<short>Event triggered after the dataset is opened.</short>
<descr>
<var>AfterOpen</var> is triggered after the dataset is opened. The dataset has fetched its data and is in <var>dsBrowse</var> state when
this event is triggered. If the dataset is not empty, then a <link id="TDataset.AfterScroll"/> event will be triggered immediately after the
<var>AfterOpen</var> event. If an exception is raised during the event handler, the dataset remains open, but the <var>AfterScroll</var>
event will not be triggered.
</descr>
<seealso>
<link id="TDataset.AfterOpen"/>
<link id="TDataset.State"/>
<link id="TDataset.AfterScroll"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BeforeClose : TDataSetNotifyEvent -->
<element name="TDataSet.BeforeClose">
<short>Event triggered before the dataset is closed.</short>
<descr>
<var>BeforeClose</var> is triggered before the dataset is closed. No actions have been performed yet when this event is called,
and the dataset is still in <var>dsBrowse</var> state or one of the editing states.
It can be used to prevent closing of the dataset, for instance if there are pending changes not yet committed to the database.
If an exception is raised during the event handler, the dataset remains opened.
</descr>
<seealso>
<link id="TDataset.AfterClose"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AfterClose : TDataSetNotifyEvent -->
<element name="TDataSet.AfterClose">
<short>Event triggered after the dataset is closed</short>
<descr>
<var>AfterOpen</var> is triggered after the dataset is opened. The dataset has discarded its data and has cleaned up it's internal
memory structures. It is in <var>dsInactive</var> state when this event is triggered.
</descr>
<seealso>
<link id="TDataset.BeforeClose"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BeforeInsert : TDataSetNotifyEvent -->
<element name="TDataSet.BeforeInsert">
<short>Event triggered before the dataset is put in insert mode.</short>
<descr>
<var>BeforeInsert</var> is triggered at the start of the <link id="TDataset.Append"/> or <link id="TDataset.Insert"/> methods.
The dataset is still in <var>dsBrowse</var> state when this event is triggered. If an exception is raised in the <var>BeforeInsert</var>
event handler, then the dataset will remain in <var>dsBrowse</var> state, and the append or insert operation is cancelled.
</descr>
<seealso>
<link id="TDataset.AfterInsert"/>
<link id="TDataset.Append"/>
<link id="TDataset.Insert"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AfterInsert : TDataSetNotifyEvent -->
<element name="TDataSet.AfterInsert">
<short>Event triggered after the dataset is put in insert mode.</short>
<descr>
<var>AfterInsert</var> is triggered after the dataset has finished putting the dataset in <var>dsInsert</var> state and it has
initialized the new record buffer. This event can be used e.g. to set initial field values.
After the <var>Afterinsert</var> event, the <link id="TDataset.AfterScroll"/> event is still triggered.
Raising an exception in the <var>AfterInsert</var> event, will prevent the <var>AfterScroll</var> event
from being triggered, but does not undo the insert or append operation.
</descr>
<seealso>
<link id="TDataset.BeforeInsert"/>
<link id="TDataset.AfterScroll"/>
<link id="TDataset.Append"/>
<link id="TDataset.Insert"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BeforeEdit : TDataSetNotifyEvent -->
<element name="TDataSet.BeforeEdit">
<short>Event triggered before the dataset is put in edit mode.</short>
<descr>
<var>BeforeEdit</var> is the triggered at the start of the <link id="TDataset.Edit"/> method.
The dataset is still in <var>dsBrowse</var> state when this event is triggered. If an exception is raised in the <var>BeforeEdit</var>
event handler, then the dataset will remain in <var>dsBrowse</var> state, and the edit operation is cancelled.
</descr>
<seealso>
<link id="TDataset.AfterEdit"/>
<link id="TDataset.Edit"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AfterEdit : TDataSetNotifyEvent -->
<element name="TDataSet.AfterEdit">
<short>Event triggered after the dataset is put in edit mode.</short>
<descr>
<var>AfterEdit</var> is triggered after the dataset has finished putting the dataset in <var>dsEdit</var> state and it has
initialized the edit buffer for the record. Raising an exception in the <var>AfterEdit</var> event does not undo the edit
operation.
</descr>
<seealso>
<link id="TDataset.BeforeEdit"/>
<link id="TDataset.Edit"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BeforePost : TDataSetNotifyEvent -->
<element name="TDataSet.BeforePost">
<short>Event called before changes are posted to the underlying database</short>
<descr>
<var>BeforePost</var> is triggered at the start of the <link id="TDataset.Post"/> method,
when the dataset is still in one of the edit states (<var>dsEdit</var>,<var>dsInsert</var>).
If the dataset was not in an edit state when <var>Post</var> is called, the <var>BeforePost</var> event is not triggered.
This event can be used to supply values for required fields that have no value yet (the <var>Post</var> operation performs
the check on required fields only after this event), or it can be used to abort the post operation: if an exception is
raised during the <var>BeforePost</var> operation, the posting operation is cancelled, and the dataset remains in the
editing state it was in before the post operation.
</descr>
<seealso>
<link id="TDataset.post"/>
<link id="TDataset.AfterPost"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AfterPost : TDataSetNotifyEvent -->
<element name="TDataSet.AfterPost">
<short>Event called after changes have been posted to the underlying database</short>
<descr>
<var>AfterPost</var> is triggered when the <link id="TDataset.Post"/> operation was successfully completed, and the dataset is again in <var>dsBrowse</var> state.
If an error occurred during the post operation, then the <var>AfterPost</var> event is not called, but the <link id="TDataset.OnPostError"/> event is triggered
instead.
</descr>
<seealso>
<link id="TDataset.BeforePost"/>
<link id="TDataset.Post"/>
<link id="TDataset.State"/>
<link id="TDataset.OnPostError"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BeforeCancel : TDataSetNotifyEvent -->
<element name="TDataSet.BeforeCancel">
<short>Event triggered before a Cancel operation.</short>
<descr>
<var>BeforeCancel</var> is triggered at the start of the <link id="TDataset.Cancel"/> operation, when the state is still one of the editing states
(<var>dsEdit</var>,<var>dsInsert</var>). The event handler can be used to abort the cancel operation: if an exception
is raised during the event handler, then the cancel operation stops.
If the dataset was not in one of the editing states when the <var>Cancel</var> method was called, then the event is not triggered.
</descr>
<seealso>
<link id="TDataset.AfterCancel"/>
<link id="TDataset.Cancel"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AfterCancel : TDataSetNotifyEvent -->
<element name="TDataSet.AfterCancel">
<short>Event triggered after a Cancel operation.</short>
<descr>
<var>AfterCancel</var> is triggered when the <link id="TDataset.Cancel"/> operation was successfully completed, and the dataset is again in <var>dsBrowse</var> state.
</descr>
<seealso>
<link id="TDataset.BeforeCancel"/>
<link id="TDataset.Cancel"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BeforeDelete : TDataSetNotifyEvent -->
<element name="TDataSet.BeforeDelete">
<short>Event triggered before a Delete operation.</short>
<descr>
<var>BeforeDelete</var> is triggered at the start of the <link id="TDataset.Delete"/> operation, when the dataset is still in <var>dsBrowse</var> state.
The event handler can be used to abort the delete operation: if an exception is raised during the event handler, then the delete operation stops.
The event is followed by a <link id="TDataset.BeforeScroll"/> event. If the dataset was in insert mode when the <var>Delete</var> method was called, then
the event will not be called, as <link id="TDataset.Cancel"/> is called instead.
</descr>
<seealso>
<link id="TDataset.AfterDelete"/>
<link id="TDataset.Delete"/>
<link id="TDataset.BeforeScroll"/>
<link id="TDataset.Cancel"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AfterDelete : TDataSetNotifyEvent -->
<element name="TDataSet.AfterDelete">
<short>Event triggered after a successful Delete operation.</short>
<descr><var>AfterDelete</var> is triggered after the successful completion of the <link id="TDataset.Delete"/> operation,
when the dataset is again in <var>dsBrowse</var> state. The event is followed by a <link id="TDataset.AfterScroll"/> event.
</descr>
<seealso>
<link id="TDataset.BeforeDelete"/>
<link id="TDataset.Delete"/>
<link id="TDataset.AfterScroll"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BeforeScroll : TDataSetNotifyEvent -->
<element name="TDataSet.BeforeScroll">
<short>Event triggered before the cursor changes position.</short>
<descr>
<var>BeforeScroll</var> is triggered before the cursor changes position. This can happen with one of the navigation methods:
<link id="TDataset.Next"/>, <link id="TDataset.Prior"/>, <link id="TDataset.First"/>, <link id="TDataset.Last"/>, but also
with two of the editing operations:<link id="TDataset.Insert"/> and <link id="TDataset.Delete"/>. Raising an exception in this
event handler aborts the operation in progress.
</descr>
<seealso>
<link id="TDataset.AfterScroll"/>
<link id="TDataset.Next"/>
<link id="TDataset.Prior"/>
<link id="TDataset.First"/>
<link id="TDataset.Last"/>
<link id="TDataset.Insert"/>
<link id="TDataset.Delete"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AfterScroll : TDataSetNotifyEvent -->
<element name="TDataSet.AfterScroll">
<short>Event triggered after the cursor has changed position.</short>
<descr>
<var>AfterScroll</var> is triggered after the cursor has changed position. This can happen with one of the navigation methods:
<link id="TDataset.Next"/>, <link id="TDataset.Prior"/>, <link id="TDataset.First"/>, <link id="TDataset.Last"/>, but also
with two of the editing operations:<link id="TDataset.Insert"/> and <link id="TDataset.Delete"/> and after the dataset was opened.
It is suitable for displaying status information or showing a value that needs to be calculated for each record.
</descr>
<seealso>
<link id="TDataset.AfterScroll"/>
<link id="TDataset.Next"/>
<link id="TDataset.Prior"/>
<link id="TDataset.First"/>
<link id="TDataset.Last"/>
<link id="TDataset.Insert"/>
<link id="TDataset.Delete"/>
<link id="TDataset.Open"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BeforeRefresh : TDataSetNotifyEvent -->
<element name="TDataSet.BeforeRefresh">
<short>Event triggered before the data is refreshed.</short>
<descr>
<var>BeforeRefresh</var> is triggered at the start of the <link id="TDataset.Refresh"/> method, after the dataset has been put in browse mode.
If the dataset cannot be put in browse mode, the <var>BeforeRefresh</var> method will not be triggered. If an exception is raised during the
<var>BeforeRefresh</var> method, then the refresh method is cancelled and the dataset remains in the <var>dsBrowse</var> state.
</descr>
<seealso>
<link id="TDataset.Refresh"/>
<link id="TDataset.AfterRefresh"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AfterRefresh : TDataSetNotifyEvent -->
<element name="TDataSet.AfterRefresh">
<short>Event triggered after the data has been refreshed.</short>
<descr>
<var>AfterRefresh</var> is triggered at the end of the <link id="TDataset.Refresh"/> method, after the dataset has refreshed its data and is
again in <var>dsBrowse</var> state. This event can be used to react on changes in data in the current record
</descr>
<seealso>
<link id="TDataset.Refresh"/>
<link id="TDataset.State"/>
<link id="TDataset.BeforeRefresh"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OnCalcFields : TDataSetNotifyEvent -->
<element name="TDataSet.OnCalcFields">
<short>Event triggered when values for calculated fields must be computed.</short>
<descr>
<var>OnCalcFields</var> is triggered whenever the dataset needs to (re)compute the values of any calculated fields in the
dataset. It is called very often, so this event should return as quickly as possible. Only the values of the calculated fields
should be set, no methods of the dataset that change the data or cursor position may be called during the execution of this event handler.
The frequency with which this event is called can be controlled through the <link id="TDataset.AutoCalcFields"/> property.
Note that the value of lookup fields does not need to be calculated in this event, their value is computed automatically
before this event is triggered.
</descr>
<seealso>
<link id="TDataset.AutoCalcFields"/>
<link id="TField.Kind"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OnDeleteError : TDataSetErrorEvent -->
<element name="TDataSet.OnDeleteError">
<short>Event triggered when a delete operation fails.</short>
<descr>
<p>
<var>OnDeleteError</var> is triggered when the <link id="TDataset.Delete"/> method fails to delete the record in the underlying database.
The event handler can be used to indicate what the response to the failed delete should be. To this end, it gets the exception object passed to it (parameter <var>E</var>),
and it can examine this object to return an appropriate action in the <var>DataAction</var> parameter. The following responses are supported:
</p>
<dl>
<dt>daFail</dt><dd><printshort id="TDataAction.daFail"/></dd>
<dt>daAbort</dt><dd><printshort id="TDataAction.daAbort"/></dd>
<dt>daRetry</dt><dd><printshort id="TDataAction.daRetry"/></dd>
</dl>
<p>For more information, see also the description of the <link id="TDatasetErrorEvent"/> event handler type.</p>
</descr>
<seealso>
<link id="TDatasetErrorEvent"/>
<link id="TDataset.Delete"/>
<link id="TDataset.OnEditError"/>
<link id="TDataset.OnPostError"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OnEditError : TDataSetErrorEvent -->
<element name="TDataSet.OnEditError">
<short>Event triggered when an edit operation fails.</short>
<descr>
<p>
<var>OnEditError</var> is triggered when the <link id="TDataset.Edit"/> method fails to put the dataset in edit mode because the underlying database
engine reported an error. The event handler can be used to indicate what the response to the failed edit operation should be.
To this end, it gets the exception object passed to it (parameter <var>E</var>), and it can examine this object to return an
appropriate action in the <var>DataAction</var> parameter. The following responses are supported:
</p>
<dl>
<dt>daFail</dt><dd><printshort id="TDataAction.daFail"/></dd>
<dt>daAbort</dt><dd><printshort id="TDataAction.daAbort"/></dd>
<dt>daRetry</dt><dd><printshort id="TDataAction.daRetry"/></dd>
</dl>
<p>For more information, see also the description of the <link id="TDatasetErrorEvent"/> event handler type.</p>
</descr>
<seealso>
<link id="TDatasetErrorEvent"/>
<link id="TDataset.Edit"/>
<link id="TDataset.OnDeleteError"/>
<link id="TDataset.OnPostError"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OnFilterRecord : TFilterRecordEvent -->
<element name="TDataSet.OnFilterRecord">
<short>Event triggered to filter records.</short>
<descr>
<var>OnFilterRecord</var> can be used to provide event-based filtering for datasets that support it.
This event is only triggered when the <link id="Tdataset.Filtered"/> property is set to <var>True</var>.
The event handler should set the <var>Accept</var> parameter to <var>True</var> if the current record
should be accepted, or to <var>False</var> if it should be rejected. No methods that change the state
of the dataset may be used during this event, and calculated fields or lookup field values are not yet
available.
</descr>
<seealso>
<link id="TDataset.Filter"/>
<link id="TDataset.Filtered"/>
<link id="TDataset.state"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OnNewRecord : TDataSetNotifyEvent -->
<element name="TDataSet.OnNewRecord">
<short>Event triggered when a new record is created.</short>
<descr>
<var>OnNewRecord</var> is triggered by the <link id="TDataset.Append"/> or <link id="TDataset.Insert"/> methods
when the buffer for the new record's data has been allocated. This event can be used to set default value for some
of the fields in the dataset. If an exception is raised during this event handler, the operation is cancelled and
the dataset is put again in browse mode (<link id="TDataset.State"/> is again <var>dsBrowse</var>).
</descr>
<seealso>
<link id="TDataset.Append"/>
<link id="TDataset.Insert"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OnPostError : TDataSetErrorEvent -->
<element name="TDataSet.OnPostError">
<short>Event triggered when a post operation fails.</short>
<descr>
<p>
<var>OnPostError</var> is triggered when the <link id="TDataset.Post"/> method fails to post the changes in the dataset buffer to
the underlying database, because the database engine reported an error. The event handler can be used to indicate what the response
to the failed post operation should be. To this end, it gets the exception object passed to it (parameter <var>E</var>), and it can
examine this object to return an appropriate action in the <var>DataAction</var> parameter. The following responses are supported:
</p>
<dl>
<dt>daFail</dt><dd><printshort id="TDataAction.daFail"/></dd>
<dt>daAbort</dt><dd><printshort id="TDataAction.daAbort"/></dd>
<dt>daRetry</dt><dd><printshort id="TDataAction.daRetry"/></dd>
</dl>
<p>For more information, see also the description of the <link id="TDatasetErrorEvent"/> event handler type.</p>
</descr>
<seealso>
<link id="TDatasetErrorEvent"/>
<link id="TDataset.Post"/>
<link id="TDataset.OnDeleteError"/>
<link id="TDataset.OnEditError"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDataLink
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDataLink">
<short>Data event handling agent for controls</short>
<descr>
<p>
<var>TDataLink</var> is used by GUI controls or datasets in a master-detail relationship to handle data events coming from
a <link id="TDatasource"/> instance. It is a class that exists for component programmers, application coders should never
need to use <var>TDataLink</var> or one of it's descendents.
</p>
<p>
DB-Aware Component coders must use a <var>TDatalink</var> instance to handle all communication with a <link id="TDataset"/> instance,
rather than communicating directly with the dataset. <var>TDataLink</var> contains methods which are called by the various events
triggered by the dataset. Inversely, it has some methods to trigger actions in the dataset.
</p>
<p>
<var>TDatalink</var> is an abstract class; it is never used directly. Instead, a descendent class is used which overrides the various
methods that are called in response to the events triggered by the dataset. Examples are .
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDatasource"/>
<link id="TDetailDatalink"/>
<link id="TMasterDataLink"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create -->
<element name="TDataLink.Create">
<short>Initialize a new instance of <var>TDataLink</var></short>
<descr>
<var>Create</var> calls the inherited constructor and then initializes some fields. In particular, it sets the buffercount to 1.
</descr>
<seealso>
<link id="TDatalink.Destroy"/>
</seealso>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TDataLink.Destroy">
<short>Remove an instance of <var>TDatalink</var> from memory</short>
<descr>
<var>Destroy</var> cleans up the <var>TDatalink</var> instance (in particular, it removes itself from the datasource it is coupled to), and then calls the inherited destructor.
</descr>
<seealso>
<link id="TDatalink.Destroy"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function Edit : Boolean -->
<element name="TDataLink.Edit">
<short>Set the dataset in edit mode, if possible</short>
<descr>
<var>Edit</var> attempts to put the dataset in edit mode. It returns
<var>True</var> if this operation succeeded, <var>False</var> if not.
To this end, it calls the <link id="TDatasource.Edit">Edit</link> method of the <link id="TDataLink.Datasource">DataSource</link> to
which the datalink instance is coupled. If the <link id="TDatasource.AutoEdit"/> property is <var>False</var> then this operation will
not succeed, unless the dataset is already in edit mode. GUI controls should always respect the result of this function, and not allow
the user to edit data if this function returned <var>false</var>.
</descr>
<seealso>
<link id="TDatasource"/>
<link id="TDatalink.Datasource"/>
<link id="TDatasource.Edit"/>
<link id="TDatasource.AutoEdit"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataLink.Edit.Result">
<short><var>True</var> if the dataset is ready for editing.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure UpdateRecord -->
<element name="TDataLink.UpdateRecord">
<short>Called when the data in the dataset must be updated</short>
<descr>
<var>Updaterecord</var> is called when the dataset expects the GUI controls to post any pending changes to
the dataset. This method guards against recursive behaviour: while an <var>UpdateRecord</var> is in progress,
the <link id="TDatalink.RecordChange"/> notification (which could result from writing data to the dataset)
will be blocked.
</descr>
<seealso>
<link id="TDatalink.RecordChange"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function ExecuteAction(Action: TBasicAction) : Boolean; Virtual -->
<element name="TDataLink.ExecuteAction">
<short>Execute action</short>
<descr>
<var>ExecuteAction</var> implements action support. It should never be necessary to call <var>ExecuteAction</var>
from program code, as it is called automatically whenever a target control needs to handle an action. This method
must be overridden in case any additional action must be taken when the action must be executed. The implementation
in <var>TDatalink</var> checks if the action handles the datasource, and then calls <var>Action.ExecuteTarget</var>,
passing it the datasource. If so, it returns <var>True</var>.
</descr>
<seealso>
<link id="TDatalink.UpdateAction"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataLink.ExecuteAction.Result">
<short>Action was executed successfully</short>
</element>
<!-- argument Visibility: default
Declaration: Action: TBasicAction -->
<element name="TDataLink.ExecuteAction.Action">
<short>Action to execute</short>
</element>
<!-- function Visibility: public
Declaration: function UpdateAction(Action: TBasicAction) : Boolean; Virtual -->
<element name="TDataLink.UpdateAction">
<short>Update handler for actions</short>
<descr>
<var>UpdateAction</var> implements action update support. It should never be necessary to call <var>UpdateAction</var>
from program code, as it is called automatically whenever a target control needs to update an action. This method
must be overridden in case any specific action must be taken when the action must be updated. The implementation
in <var>TDatalink</var> checks if the action handles the datasource, and then calls <var>Action.UpdateTarget</var>,
passing it the datasource. If so, it returns <var>True</var>.
</descr>
<seealso>
<link id="TDataLink.ExecuteAction"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataLink.UpdateAction.Result">
<short><var>True</var> if the action handles the datalink's datasource.</short>
</element>
<!-- argument Visibility: default
Declaration: Action: TBasicAction -->
<element name="TDataLink.UpdateAction.Action">
<short>Action to check</short>
</element>
<!-- property Visibility: public
Declaration: Active : Boolean -->
<element name="TDataLink.Active">
<short>Is the link active</short>
<descr>
<var>Active</var> determines whether the events of the dataset are passed on to the control connected to the actionlink.
If it is set to <var>False</var>, then no events are passed between control and dataset. It is set to <link id="TDataset.Active"/>
whenever the <link id="TDatalink.DataSource">DataSource</link> property is set.
</descr>
<seealso>
<link id="TDatalink.Datasource"/>
<link id="TDatalink.ReadOnly"/>
<link id="TDataset.Active"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: ActiveRecord : Integer -->
<element name="TDataLink.ActiveRecord">
<short>Currently active record</short>
<descr>
<var>ActiveRecord</var> returns the index of the active record in the dataset's record buffer for this datalink.
</descr>
<seealso>
<link id="TDatalink.BOF"/>
<link id="TDatalink.EOF"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BOF : Boolean -->
<element name="TDataLink.BOF">
<short>Is the dataset at the first record</short>
<descr>
<var>BOF</var> returns <link id="TDataset.BOF"/> if the dataset is available, <var>True</var> otherwise.
</descr>
<seealso>
<link id="TDatalink.EOF"/>
<link id="TDataset.BOF"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: BufferCount : Integer -->
<element name="TDataLink.BufferCount">
<short>Set to the number of record buffers this datalink needs.</short>
<descr>
<var>BufferCount</var> can be set to the number of buffers that the dataset should manage on behalf of the control
connected to this datalink. By default, this is 1. Controls that must display more than 1 buffer (such as grids)
can set this to a higher value.
</descr>
<seealso>
<link id="TDataset.ActiveBuffer"/>
<link id="TDatalink.ActiveRecord"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataSet : TDataSet -->
<element name="TDataLink.DataSet">
<short>Dataset this datalink is connected to</short>
<descr>
<var>Dataset</var> equals <var>Datasource.Dataset</var> if the datasource is set, or <var>Nil</var> otherwise.
</descr>
<seealso>
<link id="TDatalink.DataSource"/>
<link id="TDataset"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataSource : TDatasource -->
<element name="TDataLink.DataSource">
<short>Datasource this datalink is connected to</short>
<descr>
<var>Datasource</var> should be set to a <link id="TDatasource"/> instance to get access to the dataset it is connected to.
A datalink never points directly to a <link id="TDataset"/> instance, always to a datasource. When the datasource is enabled
or disabled, all <var>TDatalink</var> instances connected to it are enabled or disabled at once.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDatasource"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataSourceFixed : Boolean -->
<element name="TDataLink.DataSourceFixed">
<short>Can the datasource be changed</short>
<descr>
<var>DatasourceFixed</var> can be set to <var>True</var> to prevent changing of the <link id="TDataLink.Datasource">DataSource</link> property.
When lengthy operations are in progress, this can be done to prevent user code (e.g. event handlers) from changing the datasource property which
might interfere with the operation in progress.
</descr>
<seealso>
<link id="TDataLink.DataSource"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Editing : Boolean -->
<element name="TDataLink.Editing">
<short>Is the dataset in edit mode</short>
<descr>
<var>Editing</var> determines whether the dataset is in one of the edit states (dsEdit,dsInsert). It can be set into this mode by calling the <link id="TDatalink.Edit"/> method.
Never attempt to set the dataset in editing mode directly. The <var>Edit</var> method will perform the needed checks prior to setting the dataset in edit mode and will return
<var>True</var> if the dataset was successfully set in the editing state.
</descr>
<seealso>
<link id="TDatalink.Edit"/>
<link id="TDataset.Edit"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Eof : Boolean -->
<element name="TDataLink.Eof">
<short></short>
<descr>
<var>EOF</var> returns <link id="TDataset.EOF"/> if the dataset is available, <var>True</var> otherwise.
</descr>
<seealso>
<link id="TDatalink.BOF"/>
<link id="TDataset.EOF"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: ReadOnly : Boolean -->
<element name="TDataLink.ReadOnly">
<short>Is the link readonly</short>
<descr>
<var>ReadOnly</var> can be set to <var>True</var> to indicate that the link is read-only, i.e. the connected control will not modify the dataset.
Methods as <link id="TDatalink.Edit"/> will check this property and fail if the link is read-only. This setting has no effect on the communication
of dataset events to the datalink: the <link id="TDatalink.Active"/> property can be used to disable delivery of events to the datalink.
</descr>
<seealso>
<link id="TDatalink.Active"/>
<link id="TDatalink.edit"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: RecordCount : Integer -->
<element name="TDataLink.RecordCount">
<short>Number of records in the buffer of the dataset</short>
<descr>
<var>RecordCount</var> returns the number of records in the dataset's buffer. It is limited by the <link id="TDatalink.BufferCount"/> property: <var>RecordCount</var> i
s always less than <var>Buffercount</var>.
</descr>
<seealso>
<link id="TDatalink.BufferCount"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DetailDataSet : TDataSet -->
<element name="TDetailDataLink.DetailDataSet">
<short>Detail dataset in Master-detail relation</short>
<descr>
<var>DetailDataset</var> is the detail dataset in a master-detail relationship between 2 datasets.
<var>DetailDataset</var> is always <var>Nil</var> in <var>TDetailDatalink</var> and is only filled in
in descendent classes like <link id="TMasterDatalink"/>. The master dataset is available through the
regular <link id="TDataLink.DataSource"/> property.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TMasterDatalink"/>
<link id="TDataLink.DataSource"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TMasterDataLink
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TMasterDataLink">
<short>Datalink for Master-Detail relationships between datasets.</short>
<descr>
<p>
<var>TMasterDataLink</var> is a <var>TDatalink</var> descendent which handles master-detail relations.
It can be used in <link id="TDataset"/> descendents that must have master-detail functionality:
the detail dataset creates an instance of <var>TMasterDataLink</var> to point to the master dataset,
which is subsequently available through the <link id="TDataLink.Dataset"/> property.
</p>
<p>
The class also provides functionality for keeping a list of fields that make up the master-detail
functionality, in the <link id="TMasterDatalink.FieldNames"/> and <link id="TMasterDataLink.Fields"/> properties.
</p>
<p>
This class should never be used in application code.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDatalink.DataSource"/>
<link id="TDatalink.DataSet"/>
<link id="TMasterDatalink.FieldNames"/>
<link id="TMasterDataLink.Fields"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(ADataSet: TDataSet); Virtual -->
<element name="TMasterDataLink.Create">
<short>Create a new instance of <var>TMasterDataLink</var></short>
<descr>
<var>Create</var> initializes a new instance of <var>TMasterDataLink</var>. The <var>ADataset</var> parameter
is the detail dataset in the master-detail relation: it is saved in the <link id="TDetailDataLink.DetailDataset">DetailDataset</link>
property. The master dataset must be set through the <link id="TDatalink.DataSource">DataSource</link> property, and is usually
set by the application programmer.
</descr>
<seealso>
<link id="TDetailDataLink.DetailDataset"/>
<link id="TDatalink.Datasource"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ADataSet: TDataSet -->
<element name="TMasterDataLink.Create.ADataSet">
<short>Detail dataset of the master-detail relation.</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TMasterDataLink.Destroy">
<short>Free the datalink instance from memory</short>
<descr>
<var>Destroy</var> cleans up the resources used by <var>TMasterDatalink</var> and then calls the inherited destructor.
</descr>
<seealso>
<link id="TMasterDatalink.Create"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: FieldNames : String -->
<element name="TMasterDataLink.FieldNames">
<short>List of fieldnames that make up the master-detail relationship</short>
<descr>
<var>FieldNames</var> is a semicolon-separated list of fieldnames in the master dataset (<link id="TDatalink.Dataset"/>)
on which the master-detail relationship is based. Setting this property will fill the <link id="TMasterDataLink.Fields"/>
property with the field instances of the master dataset.
</descr>
<seealso>
<link id="TMasterDataLink.Fields"/>
<link id="TDatalink.Dataset"/>
<link id="TDataset.GetFieldList"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Fields : TList -->
<element name="TMasterDataLink.Fields">
<short>List of fields as specified in <var>FieldNames</var></short>
<descr>
<var>Fields</var> is filled with the <link id="TField"/> instances from the master dataset (<link id="TDatalink.Dataset"/>) when
the <link id="TMasterDatalink.FieldNames">FieldNames</link> property is set, and when the master dataset opens.
</descr>
<seealso>
<link id="TField"/>
<link id="TMasterDatalink.FieldNames"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OnMasterChange : TNotifyEvent -->
<element name="TMasterDataLink.OnMasterChange">
<short>Called whenever the master dataset data changes</short>
<descr>
<var>OnMasterChange</var> is called whenever the field values in the master dataset changes, i.e. when it becomes active,
or when the current record changes. If the <link id="TMasterDataLink.Fields"/> list is empty, <link id="TMasterDataLink.OnMasterDisable"/> is called instead.
</descr>
<seealso>
<link id="TMasterDataLink.OnMasterDisable"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: OnMasterDisable : TNotifyEvent -->
<element name="TMasterDataLink.OnMasterDisable">
<short>Called whenever the master dataset is disabled</short>
<descr>
<var>OnMasterDisable</var> is called whenever the master dataset is disabled, or when it is active and the field list is empty.
</descr>
<seealso>
<link id="TMasterDataLink.OnMasterChange"/>
</seealso>
</element>
<!-- procedure type Visibility: default
Declaration: TDataChangeEvent = procedure(Sender: TObject;Field: TField) of object -->
<element name="TDataChangeEvent">
<short>Event handler prototype when a field's data has changed.</short>
<descr>
<var>TDataChangeEvent</var> is the event handler prototype for the <link id="TDatasource.OnDataChange"/> event.
The sender parameter is the <var>TDatasource</var> instance that triggered the event, and the <var>Field</var>
parameter is the field whose data has changed. If the dataset has scrolled, then the <var>Field</var> parameter
is <var>Nil</var>.
</descr>
<seealso>
<link id="TDatasource.OnDataChange"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Sender: TObject -->
<element name="TDataChangeEvent.Sender">
<short>Datasource that triggered the event</short>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="TDataChangeEvent.Field">
<short>Field that changed, or <var>Nil</var> if record changed.</short>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TDataSource.Create">
<short>Create a new instance of <var>TDatasource</var></short>
<descr>
<var>Create</var> initializes a new instance of <var>TDatasource</var>.
It simply allocates some resources and then calls the inherited constructor.
</descr>
<seealso>
<link id="TDatasource.Destroy"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TDataSource.Create.AOwner">
<short>Owner for the new <var>TDatasource</var> instance.</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TDataSource.Destroy">
<short>Remove a <var>TDatasource</var> instance from memory</short>
<descr>
<var>Destroy</var> notifies all <link id="TDataLink"/> instances connected to it that the dataset is no loner available,
and then removes itself from the <var>TDatalink</var> instance. It then cleans up all resources and calls the inherited
constructor.
</descr>
<seealso>
<link id="TDatasource.Create"/>
<link id="TDatalink"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Edit -->
<element name="TDataSource.Edit">
<short>Put the dataset in edit mode, if needed</short>
<descr>
<var>Edit</var> will check <link id="TDatasource.AutoEdit">AutoEdit</link>: if it is <var>True</var>, then it puts the
<link id="TDatasource.Dataset">Dataset</link> it is connected to in edit mode, if it was in browse mode. If <var>AutoEdit</var>
is <var>False</var>, then nothing happens. Application or component code that deals with GUI development should always
attempt to set a dataset in edit mode through this method instead of calling <link id="TDataset.Edit"/> directly.
</descr>
<errors>
An <link id="EDatabaseError"/> exception can occur if the dataset is read-only or fails to set itself in edit mode.
(e.g. unidirectional datasets).
</errors>
<seealso>
<link id="TDatasource.AutoEdit"/>
<link id="TDataset.Edit"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- function Visibility: public
Declaration: function IsLinkedTo(ADataSet: TDataSet) : Boolean -->
<element name="TDataSource.IsLinkedTo">
<short>Check if a dataset is linked to a certain dataset</short>
<descr>
<var>IsLinkedTo</var> checks if it is somehow linked to <var>ADataset</var>: it checks the <link
id="TDatasource.Dataset">Dataset</link> property, and returns <var>True</var> if it is the same.
If not, it continues by checking any detail dataset fields that the dataset possesses (recursively).
This function can be used to detect circular links in e.g. master-detail relationships.
</descr>
<seealso>
<link id="TDatasource.Dataset"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TDataSource.IsLinkedTo.Result">
<short><var>True</var> if the datasource is linked to <var>ADataset</var></short>
</element>
<!-- argument Visibility: default
Declaration: ADataSet: TDataSet -->
<element name="TDataSource.IsLinkedTo.ADataSet">
<short>Dataset to check</short>
</element>
<!-- property Visibility: public
Declaration: State : TDataSetState -->
<element name="TDataSource.State">
<short>State of the dataset</short>
<descr>
<var>State</var> contains the <link id="Tdataset.State">State</link> of the dataset it is connected to, or <var>dsInactive</var> if the dataset property is not set or
the datasource is not enabled. Components connected to a dataset through a datasource property should always check <var>TDatasource.State</var> instead of checking
<link id="TDataset.State"/> directly, to take into account the effect of the <link id="TDatasource.Enabled">Enabled</link> property.
</descr>
<seealso>
<link id="TDataset.State"/>
<link id="TDatasource.Enabled"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: AutoEdit : Boolean -->
<element name="TDataSource.AutoEdit">
<short>Should the dataset be put in edit mode automatically</short>
<descr>
<var>AutoEdit</var> can be set to <var>True</var> to prevent visual controls from putting the dataset in edit mode. Visual controls use the <link id="TDatasource.Edit"/> method to
attempt to put the dataset in edit mode as soon as the user changes something. If <var>AutoEdit</var> is set to <var>False</var> then the <var>Edit</var> method does nothing.
The effect is that the user must explicitly set the dataset in edit mode (by clicking some button or some other action) before the fields can be edited.
</descr>
<seealso>
<link id="TDatasource.Edit"/>
<link id="TDataset.Edit"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DataSet : TDataSet -->
<element name="TDataSource.DataSet">
<short>Dataset this datasource is connected to</short>
<descr>
<var>Dataset</var> must be set by the application programmer to the <link id="TDataset"/> instance for which this datasource is handling events.
Setting it to <var>Nil</var> will disable all controls that are connected to this datasource instance. Once it is set and the datasource is enabled,
the datasource will start sending data events to the controls or components connected to it.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDatasource.Enabled"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Enabled : Boolean -->
<element name="TDataSource.Enabled">
<short>Enable or disable sending of events</short>
<descr>
<var>Enabled</var> is by default set to <var>True</var>: the datasource instance communicates events from the dataset to components connected to
the datasource, and vice versa: components can interact with the dataset. If the <var>Enabled</var> property is set to <var>False</var> then no
events are communicated to connected components: it is as if the dataset property was set to <var>Nil</var>. Reversely, the components cannot
interact with the dataset if the <var>Enabled</var> property is set to <var>False</var>.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDatasource.Dataset"/>
<link id="TDatasource.AutoEdit"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: OnStateChange : TNotifyEvent -->
<element name="TDataSource.OnStateChange">
<short>Called whenever the state of the dataset changes</short>
<descr>
<var>OnStateChange</var> is called whenever the <link id="TDataset.State"/> property changes, and the datasource is enabled. It can be used in application code
to react to state changes: enabling or disabling non-DB-Aware controls, setting empty values etc.
</descr>
<seealso>
<link id="TDatasource.OnUpdateData"/>
<link id="TDatasource.OnStateChange"/>
<link id="TDataset.State"/>
<link id="TDatasource.Enabled"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: OnDataChange : TDataChangeEvent -->
<element name="TDataSource.OnDataChange">
<short>Called whenever data changes in the current record</short>
<descr>
<var>OnDatachange</var> is called whenever a field value changes: if the <var>Field</var> parameter is set, a single field value changed.
If the <var>Field</var> parameter is <var>Nil</var>, then the whole record changed: when the dataset is opened,
when the user scrolls to a new record. This event handler can be set to react to data changes:
to update the contents of non-DB-aware controls for instance. The event is not called when the datasource is not enabled.
</descr>
<seealso>
<link id="TDatasource.OnUpdateData"/>
<link id="TDatasource.OnStateChange"/>
<link id="TDataset.AfterScroll"/>
<link id="TField.OnChange"/>
<link id="TDatasource.Enabled"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: OnUpdateData : TNotifyEvent -->
<element name="TDataSource.OnUpdateData">
<short>Called whenever the data in the dataset must be updated</short>
<descr>
<var>OnUpdateData</var> is called whenever the dataset needs the latest data from the controls: usually just before a <link id="TDataset.Post"/>
operation. It can be used to copy data from non-db-aware controls to the dataset just before the dataset is posting the changes to the underlying
database.
</descr>
<seealso>
<link id="TDatasource.OnDataChange"/>
<link id="TDatasource.OnStateChange"/>
<link id="TDataset.Post"/>
</seealso>
</element>
<!-- "class of" type Visibility: default
Declaration: TDBDatasetClass = Class of TDBDataset -->
<element name="TDBDatasetClass">
<short>Class of <var>TDBDataset</var></short>
<descr>
<var>TDBDatasetClass</var> is the class pointer for <link id="TDBDataset"/>
</descr>
<seealso>
<link id="TDBDataset"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TDBDataset
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDBDataset">
<short>Dataset connected to a database.</short>
<descr>
<p>
<var>TDBDataset</var> is a <var>TDataset</var> descendent which introduces the concept of a database: a central component (<link id="TDatabase"/>)
which represents a connection to a database. This central component is exposed in the <link id="TDBDataset.Database"/> property. When the database
is no longer connected, or is no longer in memory, all <var>TDBDataset</var> instances connected to it are disabled.
</p>
<p>
<var>TDBDataset</var> also introduces the notion of a transaction, exposed in the <link id="TDBDataset.Transaction">Transaction</link> property.
</p>
<p>
<var>TDBDataset</var> is an abstract class, it should never be used directly.
</p>
<p>
Dataset component writers should descend their component from <var>TDBDataset</var> if they wish to introduce a central database connection component.
The database connection logic will be handled automatically by <var>TDBDataset</var>.
</p>
</descr>
<seealso>
<link id="TDatabase"/>
<link id="TDBTransaction"/>
</seealso>
</element>
<!-- destructor Visibility: public
Declaration: destructor destroy; Override -->
<element name="TDBDataset.destroy">
<short>Remove the <var>TDBDataset</var> instance from memory.</short>
<descr>
<var>Destroy</var> will disconnect the <var>TDBDataset</var> from its
<link id="TDBDataset.Database">Database</link> and <link id="TDBDataset.Transaction">Transaction</link>.
After this it calls the inherited destructor.
</descr>
<seealso>
<link id="TDBDataset.Database"/>
<link id="TDatabase"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataBase : TDataBase -->
<element name="TDBDataset.DataBase">
<short>Database this dataset is connected to</short>
<descr>
<p><var>Database</var> should be set to the <link id="TDatabase"/> instance this dataset is connected to.
It can only be set when the dataset is closed.
</p>
<p>
Descendent classes should check in the property setter whether the database instance is of the correct class.
</p>
</descr>
<errors>
If the property is set when the dataset is active, an <link id="EDatabaseError"/> exception will be raised.
</errors>
<seealso>
<link id="TDatabase"/>
<link id="TDBDataset.Transaction"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Transaction : TDBTransaction -->
<element name="TDBDataset.Transaction">
<short>Transaction in which this dataset is running.</short>
<descr>
<p>
<var>Transaction</var> points to a <link id="TDBTransaction"/> component that represents the transaction this
dataset is active in. This property should only be used for databases that support transactions.
</p>
<p>
The property can only be set when the dataset is disabled.
</p>
</descr>
<seealso>
<link id="TDBTransaction"/>
<link id="TDBDataset.Database"/>
</seealso>
</element>
<!-- "class of" type Visibility: default
Declaration: TDBTransactionClass = Class of TDBTransaction -->
<element name="TDBTransactionClass">
<short>Class of <var>TDBTransaction</var></short>
<descr>
<var>TDBTransactionClass</var> is the class pointer for the <link id="TDBTransaction"/> class.
</descr>
<seealso>
<link id="TDBTransaction"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TDBTransaction.Create">
<short>Transaction property</short>
<descr>
<var>Create</var> initializes a new <var>TDBTransaction</var> instance. It sets up the necessary
resources, after having called the inherited constructor.
</descr>
<seealso>
<link id="TDBTransaction.Destroy"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TDBTransaction.Create.AOwner">
<short>Owner for the new <var>TDBTransaction</var> instance.</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor destroy; Override -->
<element name="TDBTransaction.destroy">
<short>Remove a <var>TDBTransaction</var> instance from memory.</short>
<descr>
<var>Destroy</var> first disconnects all connected <link id="TDBDataset"/> instances
and then cleans up the resources allocated in the <link id="TDBTransaction.Create">Create</link>
constructor. After that it calls the inherited destructor.
</descr>
<seealso>
<link id="TDBTransaction.Create"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure CloseDataSets -->
<element name="TDBTransaction.CloseDataSets">
<short>Close all connected datasets</short>
<descr>
<var>CloseDatasets</var> closes all connected datasets (All <link id="TDBDataset"/> instances whose
<link id="TDBDataset.Transaction">Transaction</link> property points to this <var>TDBTransaction</var> instance).
</descr>
<seealso>
<link id="TDBDataset"/>
<link id="TDBDataset.Transaction"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataBase : TDataBase -->
<element name="TDBTransaction.DataBase">
<short>Database this transaction is connected to</short>
<descr>
<var>Database</var> points to the database that this transaction is part of. This property can be set only when
the transaction is not active.
</descr>
<errors>
Setting this property to a new value when the transaction is active will result in an <link id="EDatabaseError"/>
exception.
</errors>
<seealso>
<link id="TDBTransaction.Active"/>
<link id="TDatabase"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Active : Boolean -->
<element name="TDBTransaction.Active">
<short>Is the transaction active or not</short>
<descr>
<var>Active</var> is <var>True</var> if a transaction was started using <link id="TDBTransaction.StartTransaction"/>.
Reversely, setting <var>Active</var> to <var>True</var> will call <var>StartTransaction</var>, setting it to <var>False</var>
will call <link id="TDBTransaction.EndTransaction"/>.
</descr>
<seealso>
<link id="TDBTransaction.StartTransaction"/>
<link id="TDBTransaction.EndTransaction"/>
</seealso>
</element>
<!-- procedure type Visibility: default
Declaration: TLoginEvent = procedure(Sender: TObject;Username: String;
Password: String) of object -->
<element name="TLoginEvent">
<short>Login event handler</short>
<descr>
<var>TLoginEvent</var> is the prototype for the <link id="TCustomConnection.OnLogin"/>
event handler. It gets passed the <var>TCustomConnection</var> instance that is trying to login,
and the initial username and password.
</descr>
<seealso>
<link id="TCustomConnection.OnLogin"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Sender: TObject -->
<element name="TLoginEvent.Sender">
<short><var>TCustomConnection</var> that is attempting a login</short>
</element>
<!-- argument Visibility: default
Declaration: Username: String -->
<element name="TLoginEvent.Username">
<short>Username used to log in</short>
</element>
<!-- argument Visibility: default
Declaration: Password: String -->
<element name="TLoginEvent.Password">
<short>Password used to log in.</short>
</element>
<!--
********************************************************************
#fcl.db.TCustomConnection
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TCustomConnection">
<short>Abstract class for connections to a server</short>
<descr>
<var>TCustomConnection</var> must be used for all database classes that need a connection to a server.
The class introduces some methods and classes to activate the connection (<link id="TCustomConnection.Open">Open</link>)
and to deactivate the connection (<link id="TCustomConnection.Close"/>), plus a property to inspect the state
(<link id="TCustomConnection.Connected">Connected</link>) of the connected.
</descr>
<seealso>
<link id="TCustomConnection.Open"/>
<link id="TCustomConnection.Close"/>
<link id="TCustomConnection.Connected"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Close -->
<element name="TCustomConnection.Close">
<short>Close the connection</short>
<descr>
<p>
<var>Close</var> closes the connection with the server if it was connected.
Calling this method first triggers the <link id="TCustomConnection.BeforeDisconnect">BeforeDisconnect</link> event.
If an exception is raised during the execution of that event handler, the disconnect process is aborted. After calling
this event, the connection is actually closed. After the
connection was closed, the <link id="TCustomConnection.AfterDisconnect">AfterDisconnect</link> event is triggered.
</p>
<p>
Calling the <var>Close</var> method is equivalent to setting the <link id="TCustomConnection.Connected">Connected</link>
property to <var>False</var>.
</p>
<p>
If <var>ForceClose</var> is <var>True</var> then the descendent should ignore errors from the underlying
connection, allowing all datasets to be closed properly.
</p>
</descr>
<errors>
If the connection cannot be broken for some reason, an <link id="EDatabaseError"/> exception will be raised.
</errors>
<seealso>
<link id="TCustomConnection.BeforeDisconnect"/>
<link id="TCustomConnection.AfterDisconnect"/>
<link id="TCustomConnection.Open"/>
<link id="TCustomConnection.Connected"/>
</seealso>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TCustomConnection.Destroy">
<short>Remove the <var>TCustomconnection</var> instance from memory</short>
<descr>
<var>Destroy</var> closes the connection, and then calls the inherited destructor.
</descr>
<errors>
If an exception is raised during the disconnect process, an exception will be raise, and the instance is not
removed from memory.
</errors>
<seealso>
<link id="TCustomConnection.Close"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure Open -->
<element name="TCustomConnection.Open">
<short>Makes the connection to the server</short>
<descr>
<p>
<var>Open</var> establishes the connection with the server if it was not yet connected.
Calling this method first triggers the <link id="TCustomConnection.BeforeConnect">BeforeConnect</link> event.
If an exception is raised during the execution of that event handler, the connect process is aborted.
If <link id="TCustomConnection.LoginPrompt">LoginPrompt</link> is <var>True</var>, the <link id="TCustomConnection.OnLogin">OnLogin</link>
event handler is called. Only after this event, the connection is actually established. After the
connection was established, the <link id="TCustomConnection.AfterConnect">AfterConnect</link> event is triggered.
</p>
<p>
Calling the <var>Open</var> method is equivalent to setting the <link id="TCustomConnection.Connected">Connected</link>
property to <var>True</var>.
</p>
</descr>
<errors>
If an exception is raised during the <var>BeforeConnect</var> or <var>OnLogin</var> handlers, the connection is not actually established.
</errors>
<seealso>
<link id="TCustomConnection.BeforeConnect"/>
<link id="TCustomConnection.LoginPrompt"/>
<link id="TCustomConnection.OnLogin"/>
<link id="TCustomConnection.AfterConnect"/>
<link id="TCustomConnection.Connected"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataSetCount : LongInt -->
<element name="TCustomConnection.DataSetCount">
<short>Number of datasets connected to this connection</short>
<descr>
<var>DatasetCount</var> is the number of datasets connected to this connection component.
The actual datasets are available through the <link id="TCustomConnection.Datasets">Datasets</link>
array property.
As implemented in <var>TCustomConnection</var>, this property is always zero. Descendent classes implement
the actual count.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TCustomConnection.Datasets"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: DataSets[Index: LongInt]: TDataSet -->
<element name="TCustomConnection.DataSets">
<short>Datasets linked to this connection</short>
<descr>
<var>Datasets</var> allows indexed access to the datasets connected to this connection. <var>Index</var> is a zero-based indexed, it's maximum value is <link id="TCustomConnection.DatasetCount">DatasetCount-1</link>.
</descr>
<seealso>
<link id="TCustomConnection.DatasetCount">DatasetCount</link>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Index: LongInt -->
<element name="TCustomConnection.DataSets.Index">
<short>Zero based index, upper bound equals <var>DatasetCount-1</var></short>
</element>
<!-- property Visibility: published
Declaration: Connected : Boolean -->
<element name="TCustomConnection.Connected">
<short>Is the connection established or not</short>
<descr>
<var>Connected</var> is <var>True</var> if the connection to the server is established, <var>False</var> if it is disconnected.
The property can be set to <var>True</var> to establish a connection (equivalent to calling <link id="TCustomConnection.Open"/>,
or to <var>False</var> to break it (equivalent to calling <link id="TCustomConnection.Close"/>.
</descr>
<seealso>
<link id="TCustomConnection.Open"/>
<link id="TCustomConnection.Close"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: LoginPrompt : Boolean -->
<element name="TCustomConnection.LoginPrompt">
<short>Should the <var>OnLogin</var> be triggered</short>
<descr>
<var>LoginPrompt</var> can be set to <var>True</var> if the <var>OnLogin</var> handler should be called when the <var>Open</var>
method is called. If it is not <var>True</var>, then the event handler is not called.
</descr>
<seealso>
<link id="TCustomConnection.OnLogin"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: AfterConnect : TNotifyEvent -->
<element name="TCustomConnection.AfterConnect">
<short>Event triggered after a connection is made.</short>
<descr>
<var>AfterConnect</var> is called after a connection is successfully established in <link id="TCustomConnection.Open"/>. It can be used to open
datasets, or indicate a connection status change.
</descr>
<seealso>
<link id="TCustomConnection.Open"/>
<link id="TCustomConnection.BeforeConnect"/>
<link id="TCustomConnection.OnLogin"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: AfterDisconnect : TNotifyEvent -->
<element name="TCustomConnection.AfterDisconnect">
<short>Event triggered after a connection is closed</short>
<descr>
<var>AfterDisConnect</var> is called after a connection is successfully closed in <link id="TCustomConnection.Close"/>.
It can be used for instance to indicate a connection status change.
</descr>
<seealso>
<link id="TCustomConnection.Close"/>
<link id="TCustomConnection.BeforeDisconnect"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: BeforeConnect : TNotifyEvent -->
<element name="TCustomConnection.BeforeConnect">
<short>Event triggered before a connection is made.</short>
<descr>
<var>BeforeConnect</var> is called before a connection is attempted in <link id="TCustomConnection.Open"/>. It can be used to set connection parameters, or to abort the
establishing of the connection: if an exception is raised during this event, the connection attempt is aborted.
</descr>
<seealso>
<link id="TCustomConnection.Open"/>
<link id="TCustomConnection.AfterConnect"/>
<link id="TCustomConnection.OnLogin"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: BeforeDisconnect : TNotifyEvent -->
<element name="TCustomConnection.BeforeDisconnect">
<short>Event triggered before a connection is closed</short>
<descr>
<var>BeforeDisConnect</var> is called before a connection is closed in <link id="TCustomConnection.Close"/>.
It can be used for instance to check for unsaved changes, to save those changes, or to abort the disconnect
operation: if an exception is raised during the event handler, the disconnect operation is aborted entirely.
</descr>
<seealso>
<link id="TCustomConnection.Close"/>
<link id="TCustomConnection.AfterDisconnect"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: OnLogin : TLoginEvent -->
<element name="TCustomConnection.OnLogin">
<short>Event triggered when a login prompt is shown.</short>
<descr>
<var>OnLogin</var> is triggered when the connection needs a login prompt during the call:
it is triggered when the <link id="TCustomConnection.LoginPrompt">LoginPrompt</link> property is <var>True</var>, after the
<link id="TCustomConnection.BeforeConnect"/> event, but before the connection is actually established.
</descr>
<seealso>
<link id="TCustomConnection.BeforeConnect"/>
<link id="TCustomConnection.LoginPrompt"/>
<link id="TCustomConnection.Open"/>
</seealso>
</element>
<!-- "class of" type Visibility: default
Declaration: TDatabaseClass = Class of TDataBase -->
<element name="TDatabaseClass">
<short>Class pointer for <var>TDatabase</var>.</short>
<descr>
<var>TDatabaseClass</var> is the class pointer for the <link id="TDatabase"/> class.
</descr>
<seealso>
<link id="TDatabase"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TComponent); Override -->
<element name="TDatabase.Create">
<short>Initialize a new <var>TDatabase</var> class instance.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TDatabase</var> class. It allocates some resources
and then calls the inherited constructor.
</descr>
<seealso>
<link id="TDBDataset"/>
<link id="TDBTransaction"/>
<link id="TDatabase.Destroy"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TComponent -->
<element name="TDatabase.Create.AOwner">
<short>Owner for the new <var>TDatabase</var> instance.</short>
</element>
<!-- destructor Visibility: public
Declaration: destructor Destroy; Override -->
<element name="TDatabase.Destroy">
<short>Remove a <var>TDatabase</var> instance from memory.</short>
<descr>
<var>Destroy</var> starts by disconnecting the database (thus closing all datasets and ending all transactions),
then notifies all connected datasets and transactions that it is about to be released.
After this, it releases all resources used by the <var>TDatabase</var> instance
</descr>
<seealso>
<link id="TDatabase.CloseDatasets"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure CloseDataSets -->
<element name="TDatabase.CloseDataSets">
<short>Close all connected datasets</short>
<descr>
<var>CloseDatasets</var> closes all connected datasets. It is called automatically when the connection is closed.
</descr>
<seealso>
<link id="TCustomConnection.Close"/>
<link id="TDatabase.CloseTransactions"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure CloseTransactions -->
<element name="TDatabase.CloseTransactions">
<short>End all transactions</short>
<descr>
<var>CloseTransaction</var> calls <link id="TDBTransaction.EndTransaction"/> on all connected transactions.
It is called automatically when the connection is closed, after all datasets are closed.
</descr>
<seealso>
<link id="TCustomConnection.Close"/>
<link id="TDatabase.CloseDatasets"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure StartTransaction; Virtual; Abstract -->
<element name="TDatabase.StartTransaction">
<short>Start a new transaction.</short>
<descr>
<var>StartTransaction</var> must be implemented by descendent classes to start a new transaction.
This method is provided for Delphi compatibility: new applications should use a <link id="TDBTransaction"/>
component instead and invoke the <link id="TDBTransaction.StartTransaction"/> method.
</descr>
<seealso>
<link id="TDBTransaction"/>
<link id="TDBTransaction.StartTransaction"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure EndTransaction; Virtual; Abstract -->
<element name="TDatabase.EndTransaction">
<short>End an active transaction.</short>
<descr>
<var>EndTransaction</var> must be implemented by descendent classes to end an active transaction.
This method is provided for Delphi compatibility: new applications should use a <link id="TDBTransaction"/>
component instead and invoke the <link id="TDBTransaction.EndTransaction"/> method.
</descr>
<seealso>
<link id="TDBTransaction"/>
<link id="TDBTransaction.EndTransaction"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: TransactionCount : LongInt -->
<element name="TDatabase.TransactionCount">
<short>Number of transaction components connected to this database.</short>
<descr>
<var>TransactionCount</var> is the number of transaction components which are connected to this database instance.
It is the upper bound for the <link id="TDatabase.Transactions"/> array property.
</descr>
<seealso>
<link id="TDatabase.Transactions"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Transactions[Index: LongInt]: TDBTransaction -->
<element name="TDatabase.Transactions">
<short>Indexed access to all transaction components connected to this database.</short>
<descr>
<var>Transactions</var> provides indexed access to the transaction components connected to this database. The
<var>Index</var> is zero based: it runs from 0 to <var>TransactionCount-1</var>.
</descr>
<seealso>
<link id="TDatabase.TransactionCount"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Index: LongInt -->
<element name="TDatabase.Transactions.Index">
<short>Zero based array index</short>
</element>
<!-- property Visibility: public
Declaration: Directory : String -->
<element name="TDatabase.Directory">
<short>Directory for the database</short>
<descr>
<var>Directory</var> is provided for Delphi compatibility: it indicates (for Paradox and dBase based databases)
the directory where the database files are located. It is not used in the Free Pascal implementation of <link id="TDatabase"/>.
</descr>
<seealso>
<link id="TDatabase.Params"/>
<link id="TDatabase.IsSQLBased"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: IsSQLBased : Boolean -->
<element name="TDatabase.IsSQLBased">
<short>Is the database SQL based.</short>
<descr>
<var>IsSQLbased</var> is a read-only property which indicates whether a property is SQL-Based, i.e. whether
the database engine accepts SQL commands.
</descr>
<seealso>
<link id="TDatabase.Params"/>
<link id="TDatabase.Directory"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Connected : Boolean -->
<element name="TDatabase.Connected" link="TCustomConnection.Connected">
<short>Is the database connected</short>
<descr>
<var>Connected</var> is simply promoted to published property from <link id="TCustomConnection.Connected"/>.
</descr>
<seealso>
<link id="TCustomConnection.Connected"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DatabaseName : String -->
<element name="TDatabase.DatabaseName">
<short>Database name or path</short>
<descr>
<var>DatabaseName</var> specifies the path of the database. For directory-based databases this will be the same
as the <link id="TDatabase.Directory">Directory</link> property. For other databases this will be the name of
a known pre-configured connection, or the location of the database file.
</descr>
<seealso>
<link id="TDatabase.Directory"/>
<link id="TDatabase.Params"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: KeepConnection : Boolean -->
<element name="TDatabase.KeepConnection">
<short>Should the connection be kept active</short>
<descr>
<var>KeepConnection</var> is provided for Delphi compatibility, and is not used in the Free Pascal implementation
of <var>TDatabase</var>.
</descr>
<seealso>
<link id="TDatabase.Params"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Params : TStrings -->
<element name="TDatabase.Params">
<short>Connection parameters</short>
<descr>
<var>Params</var> is a catch-all storage mechanism for database connection parameters. It is a list of strings in the form of <var>Name=Value</var> pairs.
Which name/value pairs are supported depends on the <var>TDatabase</var> descendent, but the <var>user_name</var> and <var>password</var> parameters
are commonly used to store the login credentials for the database.
</descr>
<seealso>
<link id="TDatabase.Directory"/>
<link id="TDatabase.DatabaseName"/>
</seealso>
</element>
<!-- alias type Visibility: default
Declaration: TBlobData = String -->
<element name="TBlobData">
<short>Alias type to store blob data</short>
<descr>
<var>TBlobData</var> should never be used directly in application code.
</descr>
<seealso>
<link id="TBlobField"/>
</seealso>
</element>
<!-- array type Visibility: default
Declaration: TParamBinding = Array of Integer -->
<element name="TParamBinding">
<short>Auxiliary type, used when binding parameters.</short>
<descr>
<var>TParamBinding</var> is an auxiliary type used when parsing and binding parameters in SQL statements.
It should never be used directly in application code.
</descr>
<seealso>
<link id="TParams"/>
<link id="TParam"/>
</seealso>
</element>
<!-- enumeration type Visibility: default
Declaration: TParamType = (ptUnknown,ptInput,ptOutput,ptInputOutput,ptResult) -->
<element name="TParamType">
<short>Parameter type</short>
<descr>
<p>
<var>TParamType</var> indicates the kind of parameter represented by a <link id="TParam"/> instance.
it has one of the following values:
</p>
<dl>
<dt>ptUnknown</dt><dd><printshort id="TParamType.ptUnknown"/></dd>
<dt>ptInput</dt><dd><printshort id="TParamType.ptInput"/></dd>
<dt>ptOutput</dt><dd><printshort id="TParamType.ptOutput"/></dd>
<dt>ptInputOutput</dt><dd><printshort id="TParamType.ptInputOutput"/></dd>
<dt>ptResult</dt><dd><printshort id="TParamType.ptResult"/></dd>
</dl>
</descr>
<seealso>
<link id="TParam"/>
<link id="TParam.ParamType"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: ptUnknown -->
<element name="TParamType.ptUnknown">
<short>Unknown type</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ptInput -->
<element name="TParamType.ptInput">
<short>Input parameter</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ptOutput -->
<element name="TParamType.ptOutput">
<short>Output parameter, filled on result</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ptInputOutput -->
<element name="TParamType.ptInputOutput">
<short>Input/output parameter</short>
</element>
<!-- enumeration value Visibility: default
Declaration: ptResult -->
<element name="TParamType.ptResult">
<short>Result parameter</short>
</element>
<!-- set type Visibility: default
Declaration: TParamTypes= Set of (ptUnknown,ptInput,ptOutput,ptInputOutput,ptResult) -->
<element name="TParamTypes">
<short>Set of <var>TParamType</var></short>
<descr>
<var>TParamTypes</var> is defined for completeness: a set of <link id="TParamType"/> values.
</descr>
<seealso>
<link id="TParam.ParamType"/>
<link id="TParamType"/>
</seealso>
</element>
<!-- enumeration type Visibility: default
Declaration: TParamStyle = (psInterbase,psPostgreSQL,psSimulated) -->
<element name="TParamStyle">
<short>Style of parameter</short>
<descr>
<p>
<var>TParamStyle</var> denotes the style in which parameters are specified in a query.
It is used in the <link id="TParams.ParseSQl"/> method, and can have the following values:
</p>
<dl>
<dt>psInterbase</dt><dd><printshort id="TParamStyle.psInterbase"/></dd>
<dt>psPostgreSQL</dt><dd><printshort id="TParamStyle.psPostGreSQL"/></dd>
<dt>psSimulated</dt><dd><printshort id="TParamStyle.psSimulated"/></dd>
</dl>
</descr>
<seealso>
<link id="TParams.ParseSQL"/>
</seealso>
</element>
<!-- enumeration value Visibility: default
Declaration: psInterbase -->
<element name="TParamStyle.psInterbase">
<short>Parameters are specified by a ? character</short>
</element>
<!-- enumeration value Visibility: default
Declaration: psPostgreSQL -->
<element name="TParamStyle.psPostgreSQL">
<short>Parameters are specified by a $N character.</short>
</element>
<!-- enumeration value Visibility: default
Declaration: psSimulated -->
<element name="TParamStyle.psSimulated">
<short>Parameters are specified by a $N character.</short>
</element>
<!--
********************************************************************
#fcl.db.TParams
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TParams">
<short>A collection of parameter values for SQL-based datasets</short>
<descr>
<p>
<var>TParams</var> is a collection of <link id="TParam"/> values. It is used to specify parameter values for parameterized SQL statements,
but is also used to specify parameter values for stored procedures. Its default property is an array of <link id="TParam"/> values.
The class also offers a method to scan a SQL statement for parameter names and replace them with placeholders understood by the
SQL engine: <link id="TParams.ParseSQL"/>.
</p>
<p>
<link id="TDataset"/> itself does not use <var>TParams</var>. The class is provided in the <file>DB</file> unit, so all <var>TDataset</var>
descendents that need some kind of parameterization make use of the same interface. The <link id="TMasterParamsDataLink"/> class can be used
to establish a master-detail relationship between a parameter-aware <var>TDataset</var> instance and another dataset; it will automatically
refresh parameter values when the fields in the master dataset change. To this end, the <link id="TParams.CopyParamValuesFromDataset"/> method
exists.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TMasterParamsDataLink"/>
<link id="TParam"/>
<link id="TParams.ParseSQL"/>
<link id="TParams.CopyParamValuesFromDataset"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TParam
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TParam">
<short>Parameter description class</short>
<descr>
<var>TParam</var> is one item in a <link id="TParams"/> collection. It describes the name (<link id="TParam.Name"/>), type
(<link id="TParam.Paramtype">ParamType</link>) and value (<link id="TParam.Value"/>) of a parameter in a parameterized query
or stored procedure. Under normal circumstances, it should never be necessary to create a <var>TParam</var> instance manually;
the <link id="TDataset"/> descendent that owns the parameters should have created all necessary <var>TParam</var> instances.
</descr>
<seealso>
<link id="TParams"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(ACollection: TCollection); Override; Overload -->
<element name="TParam.Create">
<short>Create a new parameter value</short>
<descr>
<var>Create</var> first calls the inherited create, and then initializes the parameter properties. The first form creates
a default parameter, the second form is a convenience function and initializes a parameter of a certain kind (<var>AParamType</var>),
in which case the owning <var>TParams</var> collection must be specified in <var>AParams</var></descr>
<seealso>
<link id="TParams"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ACollection: TCollection -->
<element name="TParam.Create.ACollection">
<short>Collection this parameter is part of</short>
</element>
<!-- argument Visibility: default
Declaration: AParams: TParams -->
<element name="TParam.Create.AParams">
<short><var>TParams</var> instance this parameter is part of</short>
</element>
<!-- argument Visibility: default
Declaration: AParamType: TParamType -->
<element name="TParam.Create.AParamType">
<short>Parameter type for the new parameter instance</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Assign(Source: TPersistent); Override -->
<element name="TParam.Assign">
<short>Assign one parameter instance to another</short>
<descr>
<var>Assign</var> copies the <var>Name</var>, <var>ParamType</var>, <var>Bound</var>, <var>Value</var>, <var>Size</var>
<var>Precision</var> and <var>NumericScale</var> properties from <var>ASource</var> if it is of type <var>TParam</var>.
If <var>Source</var> is of type <link id="TField"/>, then it is passed to <link id="TParam.AssignField"/>.
If <var>Source</var> is of type <var>TStrings</var>, then it is assigned to <link id="TParams.AsMemo"/>.
</descr>
<errors>
If <var>Source</var> is not of type <var>TParam</var>, <var>TField</var> or <var>TStrings</var>, an exception will be raised.
</errors>
<seealso>
<link id="TField"/>
<link id="TParam.Name"/>
<link id="TParam.Bound"/>
<link id="TParam.NumericScale"/>
<link id="TParam.ParamType"/>
<link id="TParam.value"/>
<link id="TParam.Size"/>
<link id="TParam.AssignField"/>
<link id="Tparam.AsMemo"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Source: TPersistent -->
<element name="TParam.Assign.Source">
<short>Source object to copy value from</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure AssignField(Field: TField) -->
<element name="TParam.AssignField">
<short>Copy value from field instance</short>
<descr>
<var>AssignField</var> copies the <var>Field</var>, <link
id="TField.FieldName">FieldName</link> and <link
id="TField.Value">Value</link> to
the parameter instance. The parameter is bound after this operation.
If <var>Field</var> is <var>Nil</var> then the parameter name and value are cleared.
</descr>
<seealso>
<link id="TParam.assign"/>
<link id="TParam.AssignToField"/>
<link id="TParam.AssignFieldValue"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="TParam.AssignField.Field">
<short>Field instance to copy field name and value from.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure AssignToField(Field: TField) -->
<element name="TParam.AssignToField">
<short>Assign parameter value to field</short>
<descr>
<var>AssignToField</var> copies the parameter <link id="TParam.Value">value</link> to the <var>field</var> instance.
If <var>Field</var> is <var>Nil</var>, nothing happens.
</descr>
<errors>
An <link id="EDatabaseError"/> exception is raised if the field has an unsupported field type
(for types ftCursor, ftArray, ftDataset,ftReference).
</errors>
<seealso>
<link id="TParam.Assign"/>
<link id="TParam.AssignField"/>
<link id="TParam.AssignFromField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="TParam.AssignToField.Field">
<short>Field instance to assign value to.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure AssignFieldValue(Field: TField;const AValue: Variant) -->
<element name="TParam.AssignFieldValue">
<short>Assign field value to the parameter.</short>
<descr>
<var>AssignFieldValue</var> copies only the field type from <var>Field</var> and the value from the <var>AValue</var> parameter.
It sets the <link id="TParam.Bound"/> bound parameter to <var>True</var>. This method is called from <link id="TParam.AssignField"/>.
</descr>
<seealso>
<link id="TField"/>
<link id="TParam.AssignField"/>
<link id="TParam.Bound"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="TParam.AssignFieldValue.Field">
<short>Field to copy parameter type from.</short>
</element>
<!-- argument Visibility: default
Declaration: AValue: Variant -->
<element name="TParam.AssignFieldValue.AValue">
<short>Value to assign to parameter.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure AssignFromField(Field: TField) -->
<element name="TParam.AssignFromField">
<short>Copy field type and value</short>
<descr>
<var>AssignFromField</var> copies the field <link id="TField.Value">value</link> and data type (<link id="TField.DataType"/>)
to the parameter instance. If <var>Field</var> is <var>Nil</var>, nothing happens.
This is the reverse operation of <link id="TParam.AssignToField"/>.
</descr>
<errors>
An <link id="EDatabaseError"/> exception is raised if the field has an unsupported field type
(for types ftCursor, ftArray, ftDataset,ftReference).
</errors>
<seealso>
<link id="TParam.Assign"/>
<link id="TParam.AssignField"/>
<link id="TParam.AssignToField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Field: TField -->
<element name="TParam.AssignFromField.Field">
<short>Field to copy type and value from.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure Clear -->
<element name="TParam.Clear">
<short>Clear the parameter value</short>
<descr>
<var>Clear</var> clears the parameter value, it is set to <var>UnAssigned</var>. The Datatype, parameter type or name are not touched.
</descr>
<seealso>
<link id="TParam.Value"/>
<link id="TParam.Name"/>
<link id="TParam.ParamType"/>
<link id="TParam.DataType"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure GetData(Buffer: Pointer) -->
<element name="TParam.GetData">
<short>Get the parameter value from a memory buffer</short>
<descr>
<var>GetData</var> retrieves the parameter value and stores it in <var>buffer</var>
It uses the same data layout as <link id="TField"/>, and can be used to copy the parameter value to a record buffer.
</descr>
<errors>
Only basic field types are supported. Using an unsupported field type will result in an <link id="EdatabaseError"/> exception.
</errors>
<seealso>
<link id="TParam.SetData"/>
<link id="TField"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Buffer: Pointer -->
<element name="TParam.GetData.Buffer">
<short>Buffer to copy parameter value to.</short>
</element>
<!-- function Visibility: public
Declaration: function GetDataSize : Integer -->
<element name="TParam.GetDataSize">
<short>Return the size of the data.</short>
<descr>
<var>GetDataSize</var> returns the size (in bytes) needed to store the current value of the parameter.
</descr>
<errors>
For an unsupported data type, an <link id="EDatabaseError"/> exception is raised when this function is called.
</errors>
<seealso>
<link id="TParam.GetData"/>
<link id="TParam.SetData"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TParam.GetDataSize.Result">
<short>Size (in bytes) for the current value</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure LoadFromFile(const FileName: String;BlobType: TBlobType) -->
<element name="TParam.LoadFromFile">
<short>Load a parameter value from file</short>
<descr>
<var>LoadFromFile</var> can be used to load a BLOB-type parameter from a file named <var>FileName</var>.
The <var>BlobType</var> parameter can be used to set the exact data type of the parameter: it must be one of the BLOB data types.
This function simply creates a <var>TFileStream</var> instance and passes it to <link id="TParam.LoadFromStream"/>.
</descr>
<errors>
If the specified <var>FileName</var> is not a valid file, or the file is not readable, an exception will occur.
</errors>
<seealso>
<link id="TParam.LoadFromStream"/>
<link id="TBlobType"/>
<link id="TParam.SaveToFile"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: FileName: String -->
<element name="TParam.LoadFromFile.FileName">
<short>Name of existing file to load blob data from.</short>
</element>
<!-- argument Visibility: default
Declaration: BlobType: TBlobType -->
<element name="TParam.LoadFromFile.BlobType">
<short>New value for <var>DataType</var></short>
</element>
<!-- procedure Visibility: public
Declaration: procedure LoadFromStream(Stream: TStream;BlobType: TBlobType) -->
<element name="TParam.LoadFromStream">
<short>Load a parameter value from stream</short>
<descr>
<var>LoadFromStream</var> can be used to load a BLOB-type parameter from a stream.
The <var>BlobType</var> parameter can be used to set the exact data type of the parameter: it must be one of the BLOB data types.
</descr>
<errors>
If the stream does not support taking the <var>Size</var> of the stream, an exception will be raised.
</errors>
<seealso>
<link id="TParam.LoadFromFile"/>
<link id="TParam.SaveToStream"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Stream: TStream -->
<element name="TParam.LoadFromStream.Stream">
<short>Stream to load BLOB data from.</short>
</element>
<!-- argument Visibility: default
Declaration: BlobType: TBlobType -->
<element name="TParam.LoadFromStream.BlobType">
<short>Data type for the parameter</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure SetBlobData(Buffer: Pointer;ASize: Integer) -->
<element name="TParam.SetBlobData">
<short>Set BLOB data</short>
<descr>
<var>SetBlobData</var> reads the value of a BLOB type parameter from a memory buffer:
the data is read from the memory buffer <var>Buffer</var> and is assumed to be <var>Size</var> bytes long.
</descr>
<errors>
No checking is performed on the validity of the data buffer. If the data buffer is invalid or the size is wrong, an exception may occur.
</errors>
<seealso>
<link id="TParam.LoadFromStream"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Buffer: Pointer -->
<element name="TParam.SetBlobData.Buffer">
<short>Memory buffer to load data from</short>
</element>
<!-- argument Visibility: default
Declaration: ASize: Integer -->
<element name="TParam.SetBlobData.ASize">
<short>Size of memory buffer to load data from</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure SetData(Buffer: Pointer) -->
<element name="TParam.SetData">
<short>Set the parameter value from a buffer</short>
<descr>
<var>SetData</var> performs the reverse operation of <link id="TParam.GetData"/>: it reads the parameter value from the memory
area pointed to by <var>Buffer</var>. The size of the data read is determined by <link id="TParam.GetDataSize"/> and the
type of data by <link id="TParam.DataType"/> : it is the same storage mechanism used by <link id="TField"/>, and so can be used to copy
the value from a <link id="TDataset"/> record buffer.
</descr>
<errors>
Not all field types are supported. If an unsupported field type is encountered, an <link id="EDatabaseError"/> exception is raised.
</errors>
<seealso>
<link id="TDataset"/>
<link id="TParam.GetData"/>
<link id="TParam.DataType"/>
<link id="TParam.GetDataSize"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Buffer: Pointer -->
<element name="TParam.SetData.Buffer">
<short>Buffer to read data from</short>
</element>
<!-- property Visibility: public
Declaration: AsBlob : TBlobData -->
<element name="TParam.AsBlob">
<short>Return parameter value as a blob</short>
<descr>
<var>AsBlob</var> returns the parameter value as a blob: currently this is a string. It can be set to set the parameter value.
</descr>
<seealso>
<link id="TParam.AsString"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsBoolean : Boolean -->
<element name="TParam.AsBoolean">
<short>Get/Set parameter value as a boolean value</short>
<descr>
<var>AsBoolean</var> will return the parameter value as a boolean value. If it is written, the value is set to the specified value
and the data type is set to <var>ftBoolean</var>.
</descr>
<seealso>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsCurrency : Currency -->
<element name="TParam.AsCurrency">
<short>Get/Set parameter value as a currency value</short>
<descr>
<var>AsCurrency</var> will return the parameter value as a currency value. If it is written, the value is set to the specified value
and the data type is set to <var>ftCurrency</var>.
</descr>
<seealso>
<link id="TParam.AsFloat"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsDate : TDateTime -->
<element name="TParam.AsDate">
<short>Get/Set parameter value as a date (TDateTime) value</short>
<descr>
<var>AsDate</var> will return the parameter value as a date value. If it is written, the value is set to the specified value
and the data type is set to <var>ftDate</var>.
</descr>
<seealso>
<link id="TParam.AsDateTime"/>
<link id="TParam.AsTime"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsDateTime : TDateTime -->
<element name="TParam.AsDateTime">
<short>Get/Set parameter value as a date/time (TDateTime) value</short>
<descr>
<var>AsDateTime</var> will return the parameter value as a TDateTime value. If it is written, the value is set to the specified value
and the data type is set to <var>ftDateTime</var>.
</descr>
<seealso>
<link id="TParam.AsDate"/>
<link id="TParam.asTime"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsFloat : Double -->
<element name="TParam.AsFloat">
<short>Get/Set parameter value as a floating-point value</short>
<descr>
<var>AsFLoat</var> will return the parameter value as a double floating-point value. If it is written, the value is set to the specified value
and the data type is set to <var>ftFloat</var>.
</descr>
<seealso>
<link id="TParam.AsCurrency"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsInteger : LongInt -->
<element name="TParam.AsInteger">
<short>Get/Set parameter value as an integer (32-bit) value</short>
<descr>
<var>AsInteger</var> will return the parameter value as a 32-bit signed integer value. If it is written, the value is set to the specified value
and the data type is set to <var>ftInteger</var>.
</descr>
<seealso>
<link id="TParam.AsLargeInt"/>
<link id="TParam.AsSmallInt"/>
<link id="TParam.AsWord"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsLargeInt : LargeInt -->
<element name="TParam.AsLargeInt">
<short>Get/Set parameter value as a 64-bit integer value</short>
<descr>
<var>AsLargeInt</var> will return the parameter value as a 64-bit signed integer value. If it is written, the value is set to the specified value
and the data type is set to <var>ftLargeInt</var>.
</descr>
<seealso>
<link id="TParam.asInteger"/>
<link id="TParam.asSmallint"/>
<link id="TParam.AsWord"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsMemo : String -->
<element name="TParam.AsMemo">
<short>Get/Set parameter value as a memo (string) value</short>
<descr>
<var>AsMemo</var> will return the parameter value as a memo (string) value. If it is written, the value is set to the specified value
and the data type is set to <var>ftMemo</var>.
</descr>
<seealso>
<link id="TParam.asString"/>
<link id="TParam.LoadFromStream"/>
<link id="TParam.SaveToStream"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsSmallInt : LongInt -->
<element name="TParam.AsSmallInt">
<short>Get/Set parameter value as a smallint value</short>
<descr>
<var>AsSmallint</var> will return the parameter value as a 16-bit signed integer value. If it is written, the value is set to the specified value
and the data type is set to <var>ftSmallint</var>.
</descr>
<seealso>
<link id="TParam.AsInteger"/>
<link id="TParam.AsLargeInt"/>
<link id="TParam.AsWord"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsString : String -->
<element name="TParam.AsString">
<short>Get/Set parameter value as a string value</short>
<descr>
<var>AsString</var> will return the parameter value as a string value. If it is written, the value is set to the specified value
and the data type is set to <var>ftString</var>.
</descr>
<seealso>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsTime : TDateTime -->
<element name="TParam.AsTime">
<short>Get/Set parameter value as a time (TDateTime) value</short>
<descr>
<var>AsTime</var> will return the parameter value as a time (TDateTime) value. If it is written, the value is set to the specified value
and the data type is set to <var>ftTime</var>.
</descr>
<seealso>
<link id="TParam.AsDate"/>
<link id="TParam.AsDateTime"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsWord : LongInt -->
<element name="TParam.AsWord">
<short>Get/Set parameter value as a word value</short>
<descr>
<var>AsWord</var> will return the parameter value as an integer. If it is written, the value is set to the specified value
and the data type is set to <var>ftWord</var>.
</descr>
<seealso>
<link id="TParam.AsInteger"/>
<link id="TParam.AsLargeInt"/>
<link id="TParam.AsSmallint"/>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Bound : Boolean -->
<element name="TParam.Bound">
<short>Is the parameter value bound (set to fixed value)</short>
<descr>
<var>Bound</var> indicates whether a parameter has received a fixed value: setting the parameter value will set <var>Bound</var> to <var>True</var>.
When creating master-detail relationships, parameters with their <var>Bound</var> property set to <var>True</var> will not receive a value from the
master dataset: their value will be kept. Only parameters where <var>Bound</var> is <var>False</var> will receive a new value from the master dataset.
</descr>
<seealso>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Dataset : TDataSet -->
<element name="TParam.Dataset">
<short>Dataset to which this parameter belongs</short>
<descr>
<var>Dataset</var> is the dataset that owns the <link id="TParams"/> instance of which this <var>TParam</var> instance is a part.
It is <var>Nil</var> if the collection is not set, or is not a <var>TParams</var> instance.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TParams"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: IsNull : Boolean -->
<element name="TParam.IsNull">
<short>Is the parameter empty</short>
<descr>
<var>IsNull</var> is <var>True</var> is the value is empty or not set (Null or UnAssigned).
</descr>
<seealso>
<link id="TParam.Clear"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: NativeStr : String -->
<element name="TParam.NativeStr">
<short>No description available</short>
<descr>
No description available
</descr>
<seealso>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Text : String -->
<element name="TParam.Text">
<short>Read or write the value of the parameter as a string</short>
<descr>
<var>AsText</var> returns the same value as <link id="TParam.AsString"/>, but, when written, does not set the data type: instead, it
attempts to convert the value to the type specified in <link id="TParam.Datatype"/>.
</descr>
<seealso>
<link id="TParam.AsString"/>
<link id="TParam.DataType"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Value : Variant -->
<element name="TParam.Value">
<short>Value as a variant</short>
<descr>
<var>Value</var> returns (or sets) the value as a variant value.
</descr>
<seealso>
<link id="TParam.DataType"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: AsWideString : WideString -->
<element name="TParam.AsWideString">
<short>Get/Set the value as a widestring</short>
<descr>
<var>AsWideString</var> returns the parameter value as a widestring value. Setting the property will set the value of the parameter
and will also set the <link id="TParam.DataType">DataType</link> to <var>ftWideString</var>.
</descr>
<seealso>
<link id="TParam.AsString"/>
<link id="TParam.Value"/>
<link id="TParam.DataType"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: DataType : TFieldType -->
<element name="TParam.DataType">
<short>Data type of the parameter</short>
<descr>
<var>DataType</var> is the current data type of the parameter value. It is set automatically when one of the various <var>AsXYZ</var>
properties is written, or when the value is copied from a field value.
</descr>
<seealso>
<link id="TParam.IsNull"/>
<link id="TParam.Value"/>
<link id="TParam.AssignField"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Name : String -->
<element name="TParam.Name">
<short>Name of the parameter</short>
<descr>
<var>Name</var> is the name of the parameter. The name is usually determined automatically from the SQL statement the parameter is
part of. Each parameter name should appear only once in the collection.
</descr>
<seealso>
<link id="TParam.DataType"/>
<link id="TParam.Value"/>
<link id="TParams.ParamByName"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: NumericScale : Integer -->
<element name="TParam.NumericScale">
<short>Numeric scale</short>
<descr>
<var>NumericScale</var> can be used to store the numerical scale for BCD values. It is currently unused.
</descr>
<seealso>
<link id="TParam.Precision"/>
<link id="TParam.Size"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: ParamType : TParamType -->
<element name="TParam.ParamType">
<short>Type of parameter</short>
<descr>
<p>
<var>ParamTyp</var> specifies the type of parameter: is the parameter value written to the database engine,
or is it received from the database engine, or both ? It can have the following value:
</p>
<dl>
<dt>ptUnknown</dt><dd><printshort id="TParamType.ptUnknown"/></dd>
<dt>ptInput</dt><dd><printshort id="TParamType.ptInput"/></dd>
<dt>ptOutput</dt><dd><printshort id="TParamType.ptOutput"/></dd>
<dt>ptInputOutput</dt><dd><printshort id="TParamType.ptInputOutput"/></dd>
<dt>ptResult</dt><dd><printshort id="TParamType.ptResult"/></dd>
</dl>
<p>
The <var>ParamType</var> property is usually set by the database engine that creates the parameter instances.
</p>
</descr>
<seealso>
<link id="TParam.DataType"/>
<link id="TParam.DataSize"/>
<link id="TParam.Name"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Precision : Integer -->
<element name="TParam.Precision">
<short>Precision of the BCD value</short>
<descr>
<var>Precision</var> can be used to store the numerical precision for BCD values. It is currently unused.
</descr>
<seealso>
<link id="TParam.NumericScale"/>
<link id="TParam.Size"/>
</seealso>
</element>
<element name="TSQLParseOption">
<short>Represents SQL parser options available to the TParams collection</short>
<descr>
TSQLParseOption is an enumerated type with values that represent SQL parser
options available for use in the <var>TParams</var> collection. Value(s) from
TSQLParseOption are stored in the <var>TSQLParseOptions</var> set type, and
passed as an argument to the <var>TParams.ParseSQL</var> method. When a
value from the enumeration is included in the set, the feature or behavior is
enabled while parsing the SQL statement.
</descr>
<seealso>
<link id="TParams.ParseSQL"/>
<link id="TSQLParseOptions"/>
</seealso>
</element>
<element name="TSQLParseOption.spoCreate">
<short>Indicates existing parameters are cleared and re-created, not updated</short>
</element>
<element name="TSQLParseOption.spoEscapeSlash">
<short>Causes the Slash character ('/') to be escaped</short>
</element>
<element name="TSQLParseOption.spoEscapeRepeat">
<short>Causes an escaped character to be repeated</short>
</element>
<element name="TSQLParseOption.spoUseMacro">
<short>Enables macro expansion in a SQL statement</short>
</element>
<element name="TSQLParseOptions">
<short>Set type used to store value(s) from the TSQLParseOption enumeration</short>
<descr>
<p>
<var>TSQLParseOptions</var> is a set type used to store zero or more values
from the <var>TSQLParseOption</var> enumeration. TSQLParseOptions is used
in the <var>TParams.ParseSQL</var> method to indicate the options enabled
when the SQL statement is parsed. The set type can be passed as an argument to
the method.
</p>
<p>
See <link id="TSQLParseOption"/> for information about the enumeration values and their
meanings.
</p>
</descr>
<seealso>
<link id="TParams.ParseSQL"/>
<link id="TSQLParseOption"/>
</seealso>
</element>
<!-- property Visibility: published
Declaration: Size : Integer -->
<element name="TParam.Size">
<short>Size of the parameter</short>
<descr>
<var>Size</var> is the declared size of the parameter. In the current implementation, this parameter is ignored other
than copying it from <link id="TField.DataSize"/> in the <link id="TParam.AssignFieldValue"/> method.
The actual size can be retrieved through the <link id="TParam.Datasize"/> property.
</descr>
<seealso>
<link id="TParam.Datasize"/>
<link id="TField.DataSize"/>
<link id="TParam.AssignFieldValue"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(AOwner: TPersistent); Overload -->
<element name="TParams.Create">
<short>Create a new instance of <var>TParams</var></short>
<descr>
<var>Create</var> initializes a new instance of <var>TParams</var>. It calls the inherited constructor with <link id="TParam"/> as the
collection's item class, and sets <var>AOwner</var> as the owner of the collection. Usually, <var>AOwner</var> will be the dataset that
needs parameters.
</descr>
<seealso>
<link id="#rtl.classes.TCollection.create"/>
<link id="TParam"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: AOwner: TPersistent -->
<element name="TParams.Create.AOwner">
<short>Owner of the collection.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure AddParam(Value: TParam) -->
<element name="TParams.AddParam">
<short>Add a parameter to the collection</short>
<descr>
<var>AddParam</var> adds <var>Value</var> to the collection.
</descr>
<errors>
No checks are done on the <var>TParam</var> instance. If it is <var>Nil</var>, an exception will be raised.
</errors>
<seealso>
<link id="TParam"/>
<link id="#rtl.classes.tcollection.add"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Value: TParam -->
<element name="TParams.AddParam.Value">
<short><var>TParam</var> instance to add to the collection.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure AssignValues(Value: TParams) -->
<element name="TParams.AssignValues">
<short>Copy values from another collection</short>
<descr>
<var>AssignValues</var> examines all <link id="TParam"/> instances in <var>Value</var>, and looks in its own items
for a <var>TParam</var> instance with the same name. If it is found, then the value and type of the parameter are
copied (using <link id="TParam.Assign"/>). If it is not found, nothing is done.
</descr>
<seealso>
<link id="TParam"/>
<link id="TParam.Assign"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Value: TParams -->
<element name="TParams.AssignValues.Value">
<short>Set of parameters to copy values from.</short>
</element>
<!-- function Visibility: public
Declaration: function CreateParam(FldType: TFieldType;const ParamName: String;
ParamType: TParamType) : TParam -->
<element name="TParams.CreateParam">
<short>Create and add a new parameter to the collection</short>
<descr>
<var>CreateParam</var> creates a new <link id="TParam"/> instance with datatype equal to <var>fldType</var>, <var>Name</var>
equal to <var>ParamName</var> and sets its <var>ParamType</var> property to <var>ParamType</var>.
The parameter is then added to the collection.
</descr>
<seealso>
<link id="TParam"/>
<link id="TParam.Name"/>
<link id="TParam.Datatype"/>
<link id="TParam.Paramtype"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TParams.CreateParam.Result">
<short>Newly added <var>TParam</var> instance.</short>
</element>
<!-- argument Visibility: default
Declaration: FldType: TFieldType -->
<element name="TParams.CreateParam.FldType">
<short>Value for the <var>DataType</var> property of the new instance.</short>
</element>
<!-- argument Visibility: default
Declaration: ParamName: String -->
<element name="TParams.CreateParam.ParamName">
<short>Value for the <var>Name</var> property of the new instance.</short>
</element>
<!-- argument Visibility: default
Declaration: ParamType: TParamType -->
<element name="TParams.CreateParam.ParamType">
<short>Value for the <var>ParamType</var> property of the new instance.</short>
</element>
<!-- function Visibility: public
Declaration: function FindParam(const Value: String) : TParam -->
<element name="TParams.FindParam">
<short>Find a parameter with given name</short>
<descr>
<p>
<var>FindParam</var> searches the collection for the <link id="TParam"/> instance with property <var>Name</var> equal to <var>Value</var>.
It will return the last instance with the given name, and will only return one instance. If no match is found, <var>Nil</var> is returned.
</p>
<remark>
A <var>TParams</var> collection can have 2 <var>TParam</var> instances with the same name: no checking for duplicates is done.
</remark>
</descr>
<seealso>
<link id="TParam.Name"/>
<link id="TParams.ParamByName"/>
<link id="TParams.GetParamList"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TParams.FindParam.Result">
<short><var>TParam</var> instance with <var>Name</var> equal to <var>Value</var> or <var>Nil</var>.</short>
</element>
<!-- argument Visibility: default
Declaration: Value: String -->
<element name="TParams.FindParam.Value">
<short>Parameter name to search for.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure GetParamList(List: TList;const ParamNames: String) -->
<element name="TParams.GetParamList">
<short>Fetch a list of <var>TParam</var> instances</short>
<descr>
<var>GetParamList</var> examines the parameter names in the semicolon-separated list <var>ParamNames</var>.
It searches each <var>TParam</var> instance from the names in the list and adds it to <var>List</var>.
</descr>
<errors>
If the <var>ParamNames</var> list contains an unknown parameter name, then an exception is raised.
Whitespace is not discarded.
</errors>
<seealso>
<link id="TParam"/>
<link id="TParam.Name"/>
<link id="TParams.ParamByName"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: List: TList -->
<element name="TParams.GetParamList.List">
<short>List to add <var>TParam</var> instances to.</short>
</element>
<!-- argument Visibility: default
Declaration: ParamNames: String -->
<element name="TParams.GetParamList.ParamNames">
<short>Semicolon-separated list of parameter names.</short>
</element>
<!-- function Visibility: public
Declaration: function IsEqual(Value: TParams) : Boolean -->
<element name="TParams.IsEqual">
<short>Is the list of parameters equal</short>
<descr>
<var>IsEqual</var> compares the parameter count of <var>Value</var> and if it matches, it compares all <var>TParam</var> items
of <var>Value</var> with the items it owns. If all items are equal (all properties match), then <var>True</var> is returned.
The items are compared on index, so the order is important.
</descr>
<seealso>
<link id="TParam"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TParams.IsEqual.Result">
<short><var>True</var> if all items in <var>Value</var> match the own items</short>
</element>
<!-- argument Visibility: default
Declaration: Value: TParams -->
<element name="TParams.IsEqual.Value">
<short>Collection of <var>TParam</var> values.</short>
</element>
<!-- function Visibility: public
Declaration: function ParamByName(const Value: String) : TParam -->
<element name="TParams.ParamByName">
<short>Return a parameter by name</short>
<descr>
<p>
<var>ParamByName</var> searches the collection for the <link id="TParam"/> instance with property <var>Name</var> equal to <var>Value</var>.
It will return the last instance with the given name, and will only return one instance. If no match is found, an exception is raised.
</p>
<remark>
A <var>TParams</var> collection can have 2 <var>TParam</var> instances with the same name: no checking for duplicates is done.
</remark>
</descr>
<seealso>
<link id="TParam.Name"/>
<link id="TParams.FindParam"/>
<link id="TParams.GetParamList"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TParams.ParamByName.Result">
<short><var>TParam</var> instance with <var>Name</var> equal to <var>Value</var>.</short>
</element>
<!-- argument Visibility: default
Declaration: Value: String -->
<element name="TParams.ParamByName.Value">
<short><var>Name</var> to search for.</short>
</element>
<!-- function Visibility: public
Declaration: function ParseSQL(SQL: String;DoCreate: Boolean) : String; Overload -->
<element name="TParams.ParseSQL">
<short>Parse SQL statement, replacing parameter names with SQL parameter placeholders</short>
<descr>
<p>
<var>ParseSQl</var> parses the <var>SQL</var> statement for parameter names in the form <var>:ParamName</var>. It replaces them with a
SQL parameter placeholder. If <var>DoCreate</var> is <var>True</var> then a <var>TParam</var> instance is added to the collection with
the found parameter name.
</p>
<p>
The parameter placeholder is determined by the <var>ParameterStyle</var> property, which can have the following values:
</p>
<dl>
<dt>psInterbase</dt><dd><printshort id="TParamStyle.psInterbase"/></dd>
<dt>psPostgreSQL</dt><dd><printshort id="TParamStyle.psPostGreSQL"/></dd>
<dt>psSimulated</dt><dd><printshort id="TParamStyle.psSimulated"/></dd>
</dl>
<p>
<var>psInterbase</var> is the default.
</p>
<p>If the <var>EscapeSlash</var> parameter is <var>True</var>, then backslash characters are used to quote the next character in the SQL statement.
If it is <var>False</var>, the backslash character is regarded as a normal character.
</p>
<p>
If the <var>EscapeRepeat</var> parameter is <var>True</var> (the default) then embedded quotes in string literals
are escaped by repeating themselves. If it is <var>false</var> then they should be quoted with backslashes.
</p>
<p>
<var>ParamBinding</var>, if specified, is filled with the indexes of the parameter instances in the parameter collection: for each SQL parameter placeholder,
the index of the corresponding <var>TParam</var> instance is returned in the array.
</p>
<p>
<var>ReplaceString</var>, if specified, contains the placeholder used for the parameter names (by default, $). It has effect only when
<var>ParameterStyle</var> equals <var>psSimulated</var>.
</p>
<p>
The function returns the SQL statement with the parameter names replaced by placeholders.
</p>
</descr>
<seealso>
<link id="TParam"/>
<link id="TParam.Name"/>
<link id="TParamStyle"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="TParams.ParseSQL.Result">
<short>SQL statement with parameter names replaced with placeholders</short>
</element>
<!-- argument Visibility: default
Declaration: SQL: String -->
<element name="TParams.ParseSQL.SQL">
<short>SQL statement to scan for parameter names</short>
</element>
<!-- argument Visibility: default
Declaration: DoCreate: Boolean -->
<element name="TParams.ParseSQL.DoCreate">
<short>Set to <var>True</var> if <var>TParam</var> instances must be created for the found parameters.</short>
</element>
<!-- argument Visibility: default
Declaration: EscapeSlash: Boolean -->
<element name="TParams.ParseSQL.EscapeSlash">
<short><var>True</var> if the backslash character acts as an escape token.</short>
</element>
<!-- argument Visibility: default
Declaration: EscapeRepeat: Boolean -->
<element name="TParams.ParseSQL.EscapeRepeat">
<short><var>True</var> if quotes are escaped by specifying them two times.</short>
</element>
<!-- argument Visibility: default
Declaration: ParameterStyle: TParamStyle -->
<element name="TParams.ParseSQL.ParameterStyle">
<short>SQL Placeholder style</short>
</element>
<!-- argument Visibility: default
Declaration: ParamBinding: TParamBinding -->
<element name="TParams.ParseSQL.ParamBinding">
<short>On return, filled with indexes of <var>TParam</var> instances corresponding to the placeholders</short>
</element>
<!-- argument Visibility: default
Declaration: ReplaceString: String -->
<element name="TParams.ParseSQL.ReplaceString">
<short>Placeholder string.</short>
</element>
<element name="TParams.ParseSQL.Options">
<short>Contains the parser options enabled when parsing the SQL statement</short>
</element>
<element name="TParams.ParseSQL.MacroChar">
<short>Character which triggers expansion of a named macro in the SQL statement</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure RemoveParam(Value: TParam) -->
<element name="TParams.RemoveParam">
<short>Remove a parameter from the collection</short>
<descr>
<var>RemoveParam</var> removes the parameter <var>Value</var> from the collection, but does not free the instance.
</descr>
<errors>
<var>Value</var> must be a valid instance, or an exception will be raised.
</errors>
<seealso>
<link id="TParam"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Value: TParam -->
<element name="TParams.RemoveParam.Value">
<short>Parameter to remove from the collection.</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure CopyParamValuesFromDataset(ADataset: TDataSet;
CopyBound: Boolean) -->
<element name="TParams.CopyParamValuesFromDataset">
<short>Copy parameter values from the fields in a dataset.</short>
<descr>
<var>CopyParamValuesFromDataset</var> assigns values to all parameters in the collection
by searching in <var>ADataset</var> for fields with the same name, and assigning the value
of the field to the <var>Tparam</var> instances using <link id="TParam.AssignField"/>.
By default, this operation is only performed on <var>TParam</var> instances with their
<link id="TParam.Bound">Bound</link> property set to <var>False</var>. If <var>CopyBound</var> is true,
then the operation is performed on all <var>TParam</var> instances in the collection.
</descr>
<errors>
If, for some <var>TParam</var> instance, <var>ADataset</var> misses a field with the same name,
an <var>EDatabaseError</var> exception will be raised.
</errors>
<seealso>
<link id="TParam"/>
<link id="TParam.Bound"/>
<link id="TParam.AssignField"/>
<link id="TDataset"/>
<link id="TDataset.FieldByName"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ADataset: TDataSet -->
<element name="TParams.CopyParamValuesFromDataset.ADataset">
<short>Dataset to copy values from</short>
</element>
<!-- argument Visibility: default
Declaration: CopyBound: Boolean -->
<element name="TParams.CopyParamValuesFromDataset.CopyBound">
<short>Copy value also for bound parameters ?</short>
</element>
<!-- property Visibility: public
Declaration: Dataset : TDataSet -->
<element name="TParams.Dataset">
<short>Dataset that owns the <var>TParams</var> instance</short>
<descr>
<var>Dataset</var> is the <link id="TDataset"/> instance that was specified when the <var>TParams</var> instance was created.
</descr>
<seealso>
<link id="TParams.Create"/>
<link id="TDataset"/>
</seealso>
</element>
<!-- property Visibility: public
Declaration: Items[Index: Integer]: TParam; default -->
<element name="TParams.Items">
<short>Indexed access to <var>TParams</var> instances in the collection</short>
<descr>
<var>Items</var> is overridden by <var>TParams</var> so it has the proper type (<var>TParam</var>). The <var>Index</var> runs from 0 to <var>Count-1</var>.
</descr>
<seealso>
<link id="TParams"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Index: Integer -->
<element name="TParams.Items.Index">
<short>Zero-based index to the array</short>
</element>
<!-- property Visibility: public
Declaration: ParamValues[ParamName: String]: Variant -->
<element name="TParams.ParamValues">
<short>Named access to the parameter values.</short>
<descr>
<p>
<var>ParamValues</var> provides access to the parameter values (<link id="TParam.Value"/>) by name. It is equivalent to
reading and writing </p>
<code>
ParamByName(ParamName).Value
</code>
</descr>
<seealso>
<link id="TParam.Value"/>
<link id="TParams.ParamByName"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ParamName: String -->
<element name="TParams.ParamValues.ParamName">
<short>Parameter name to read/write</short>
</element>
<!--
********************************************************************
#fcl.db.TMasterParamsDataLink
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TMasterParamsDataLink">
<short>Class to establish a master-detail relationship between dataset, based on parameters</short>
<descr>
<var>TMasterParamsDataLink</var> is a <link id="TDataLink"/> descendent that can be used to establish
a master-detail relationship between 2 <var>TDataset</var> instances where the detail dataset is
parameterized using a <var>TParams</var> instance. It takes care of closing and opening the detail
dataset and copying the parameter values from the master dataset whenever the data in the master
dataset changes.
</descr>
<seealso>
<link id="TDatalink"/>
<link id="TDataset"/>
<link id="TParams"/>
<link id="TParam"/>
</seealso>
</element>
<!-- constructor Visibility: public
Declaration: constructor Create(ADataSet: TDataSet); Override -->
<element name="TMasterParamsDataLink.Create">
<short>Initialize a new <var>TMasterParamsDataLink</var> instance</short>
<descr>
<var>Create</var> first calls the inherited constructor using <var>ADataset</var>, and then looks for
a property named <var>Params</var> of type <link id="TParams"/> in the published properties of
<var>ADataset</var> and assigns it to the <link id="TMasterParamsDataLink.Params">Params</link> property.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TParams"/>
<link id="TMasterParamsDataLink.Params"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: ADataSet: TDataSet -->
<element name="TMasterParamsDataLink.Create.ADataSet">
<short>Detail dataset</short>
</element>
<!-- procedure Visibility: public
Declaration: procedure RefreshParamNames; Virtual -->
<element name="TMasterParamsDataLink.RefreshParamNames">
<short>Refresh the list of parameter names</short>
<descr>
<var>RefreshParamNames</var> scans the <link id="TMasterParamsDataLink.Params">Params</link> property and
sets the <link id="TMasterDataLink.FieldNames">FieldNames</link> property to the list of parameter names.
</descr>
<seealso>
<link id="TMasterParamsDataLink.Params"/>
<link id="TMasterDataLink.FieldNames"/>
</seealso>
</element>
<!-- procedure Visibility: public
Declaration: procedure CopyParamsFromMaster(CopyBound: Boolean); Virtual -->
<element name="TMasterParamsDataLink.CopyParamsFromMaster">
<short>Copy parameter values from master dataset.</short>
<descr>
<var>CopyParamsFromMaster</var> calls <link id="TParams.CopyParamValuesFromDataset"/>,
passing it the master dataset: it provides the parameters of the detail dataset with
their new values. If <var>CopyBound</var> is <var>false</var>, then only parameters
with their <link id="TParam.Bound">Bound</link> property set to <var>False</var> are copied.
If it is <var>True</var> then the value is set for all parameters.
</descr>
<errors>
If the master dataset does not have a corresponding field for each parameter, then an exception will be raised.
</errors>
<seealso>
<link id="TParams.CopyParamValuesFromDataset"/>
<link id="TParam.Bound"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: CopyBound: Boolean -->
<element name="TMasterParamsDataLink.CopyParamsFromMaster.CopyBound">
<short>Should <var>Bound</var> parameters also get a new value ?</short>
</element>
<!-- property Visibility: public
Declaration: Params : TParams -->
<element name="TMasterParamsDataLink.Params">
<short>Parameters of detail dataset.</short>
<descr>
<var>Params</var> is the <var>TParams</var> instance of the detail dataset.
If the detail dataset contains a property named <var>Params</var> of type <var>TParams</var>,
then it will be set when the <var>TMasterParamsDataLink</var> instance was created.
If the property is not published, or has another name, then the <var>Params</var> property must be set in code.
</descr>
<seealso>
<link id="Tparams"/>
<link id="TMasterParamsDataLink.Create"/>
</seealso>
</element>
<!-- constant Visibility: default
Declaration: FieldTypetoVariantMap : Array[TFieldType] of Integer = (varError,varOleStr,varSmallint,varInteger,varSmallint,varBoolean,varDouble,varCurrency,varCurrency,varDate,varDate,varDate,varOleStr,varOleStr,varInteger,varOleStr,varOleStr,varOleStr,varOleStr,varOleStr,varOleStr,varOleStr,varError,varOleStr,varOleStr,varError,varError,varError,varError,varError,varOleStr,varOleStr,varVariant,varUnknown,varDispatch,varOleStr,varOleStr,varOleStr,varOleStr,varOleStr ) -->
<element name="FieldTypetoVariantMap">
<short>Map field types on variant types</short>
<descr>
<var>FieldTypetoVariantMap</var> contains for each field datatype the variant value type that corresponds to it.
If a field type cannot be expressed by a variant type, then <var>varError</var> is stored in the variant value.
</descr>
<seealso>
<link id="TFieldType"/>
<link id="TField.Value"/>
<link id="TParam.Value"/>
</seealso>
</element>
<!-- constant Visibility: default
Declaration: Fieldtypenames : Array[TFieldType] of String = ('Unknown','String','Smallint','Integer','Word','Boolean','Float','Currency','BCD','Date','Time','DateTime','Bytes','VarBytes','AutoInc','Blob','Memo','Graphic','FmtMemo','ParadoxOle','DBaseOle','TypedBinary','Cursor','FixedChar','WideString','Largeint','ADT','Array','Reference','DataSet','OraBlob','OraClob','Variant','Interface','IDispatch','Guid','TimeStamp','FMTBcd','FixedWideChar','WideMemo' ) -->
<element name="Fieldtypenames">
<short>Human-readable names of field types</short>
<descr>
<var>FieldTypeNames</var> contains the names (in English) for the various field data types.
</descr>
<seealso>
<link id="TFieldType"/>
<link id="TField.DataType"/>
</seealso>
</element>
<!-- constant Visibility: default
Declaration: DefaultFieldClasses : Array[TFieldType] of TFieldClass = (Tfield,TStringField,TSmallIntField,TLongintField,TWordField,TBooleanField,TFloatField,TCurrencyField,TBCDField,TDateField,TTimeField,TDateTimeField,TBytesField,TVarBytesField,TAutoIncField,TBlobField,TMemoField,TGraphicField,TBlobField,TBlobField,TBlobField,TBlobField,nil,TStringField,TWideStringField,TLargeIntField,nil,nil,nil,nil,TBlobField,TMemoField,TVariantField,nil,nil,TGuidField,nil,nil,TWideStringField,TWideMemoField ) -->
<element name="DefaultFieldClasses">
<short>Default field classes to use when creating a new <var>TField</var> instance.</short>
<descr>
<var>DefaultFieldClasses</var> contains the <link id="TField"/> descendent class to use when a <var>TDataset</var>
instance needs to create fields based on the <link id="TFieldDefs"/> field definitions when opening the dataset.
The entries can be set to create customized <var>TField</var> descendents for certain field datatypes in all datasets.
</descr>
<seealso>
<link id="TFieldType"/>
<link id="TField"/>
<link id="TField.DataType"/>
</seealso>
</element>
<!-- constant Visibility: default
Declaration: dsEditModes = [dsEdit,dsInsert,dsSetKey] -->
<element name="dsEditModes">
<short>Edit modes</short>
<descr>
<var>dsEditModes</var> contains the various values of <link id="TDataset.State"/> for which the dataset is in edit mode,
i.e. states in which it is possible to set field values for that dataset.
</descr>
<seealso>
<link id="TDatasetState"/>
<link id="TDataset.State"/>
<link id="TDataset.Edit"/>
<link id="TDataset.Insert"/>
</seealso>
</element>
<!-- constant Visibility: default
Declaration: dsWriteModes = [dsEdit,dsInsert,dsSetKey,dsCalcFields,dsFilter,dsNewValue,dsInternalCalc] -->
<element name="dsWriteModes">
<short>Field write modes</short>
<descr>
<var>dsWriteModes</var> contains the various values of <link id="TDataset.State"/> for which data can be written to
the dataset buffer.
</descr>
<seealso>
<link id="TDatasetState"/>
<link id="TDataset.State"/>
</seealso>
</element>
<!-- procedure Visibility: default
Declaration: procedure DatabaseError(const Msg: String); Overload -->
<element name="DatabaseError">
<short>Raise an <var>EDatabaseError</var> exception.</short>
<descr>
<var>DatabaseError</var> raises an <link id="EDatabaseError"/> exception, passing it <var>Msg</var>.
If <var>Comp</var> is specified, the name of the component is prepended to the message.
</descr>
<seealso>
<link id="DatabaseErrorFmt"/>
<link id="EDatabaseError"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Msg: String -->
<element name="DatabaseError.Msg">
<short>Message to specify for the exception</short>
</element>
<!-- argument Visibility: default
Declaration: Comp: TComponent -->
<element name="DatabaseError.Comp">
<short>Prepend the name of this Component to the message</short>
</element>
<!-- procedure Visibility: default
Declaration: procedure DatabaseErrorFmt(const Fmt: String;Args: Array of const)
; Overload -->
<element name="DatabaseErrorFmt">
<short>Raise an <var>EDatabaseError</var> exception with a formatted message</short>
<descr>
<var>DatabaseErrorFmt</var> raises an <link id="EDatabaseError"/> exception, passing it a
message made by calling <link id="#rtl.sysutils.format"/> with the <var>fmt</var> and <var>Args</var> arguments.
If <var>Comp</var> is specified, the name of the component is prepended to the message.
</descr>
<seealso>
<link id="DatabaseError"/>
<link id="EDatabaseError"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Fmt: String -->
<element name="DatabaseErrorFmt.Fmt">
<short>Formatting string</short>
</element>
<!-- argument Visibility: default
Declaration: Args: Array of const -->
<element name="DatabaseErrorFmt.Args">
<short>Formatting arguments</short>
</element>
<!-- argument Visibility: default
Declaration: Comp: TComponent -->
<element name="DatabaseErrorFmt.Comp">
<short>Prepend the name of this Component to the message</short>
</element>
<!-- function Visibility: default
Declaration: function ExtractFieldName(const Fields: String;var Pos: Integer)
: String -->
<element name="ExtractFieldName">
<short>Extract the field name at position</short>
<descr>
<var>ExtractFieldName</var> returns the string starting at position <var>Pos</var> till the next semicolon (;) character or the end of the string.
On return, <var>Pos</var> contains the position of the first character after the semicolon character (or one more than
the length of the string).
</descr>
<seealso>
<link id="Tfields.GetFieldList"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="ExtractFieldName.Result">
<short>Name of the field</short>
</element>
<!-- argument Visibility: default
Declaration: Fields: String -->
<element name="ExtractFieldName.Fields">
<short>Semicolon-separated list of field names</short>
</element>
<!-- argument Visibility: default
Declaration: Pos: Integer -->
<element name="ExtractFieldName.Pos">
<short>Position to start copying.</short>
</element>
<!-- function Visibility: default
Declaration: function DateTimeRecToDateTime(DT: TFieldType;Data: TDateTimeRec)
: TDateTime -->
<element name="DateTimeRecToDateTime">
<short>Convert <var>TDateTimeRec</var> record to a <var>TDateTime</var> value.</short>
<descr>
<var>DateTimeRecToDateTime</var> examines <var>Data</var> and <var>Dt</var> and uses <var>dt</var> to convert the timestamp in <var>Data</var> to
a <var>TDateTime</var> value.
</descr>
<seealso>
<link id="TFieldType"/>
<link id="TDateTimeRec"/>
<link id="DateTimeToDateTimeRec"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="DateTimeRecToDateTime.Result">
<short><var>TDateTime</var> value corresponding to timestamp in <var>Data</var>.</short>
</element>
<!-- argument Visibility: default
Declaration: DT: TFieldType -->
<element name="DateTimeRecToDateTime.DT">
<short>Datatype of <var>Data</var>.</short>
</element>
<!-- argument Visibility: default
Declaration: Data: TDateTimeRec -->
<element name="DateTimeRecToDateTime.Data">
<short>Timestamp specification in <var>TDateTimeRec</var> formar.</short>
</element>
<!-- function Visibility: default
Declaration: function DateTimeToDateTimeRec(DT: TFieldType;Data: TDateTime)
: TDateTimeRec -->
<element name="DateTimeToDateTimeRec">
<short>Convert <var>TDateTime</var> value to a <var>TDateTimeRec</var> record.</short>
<descr>
<var>DateTimeToDateTimeRec</var> examines <var>Data</var> and <var>Dt</var> and uses <var>dt</var> to convert the date/time value in <var>Data</var> to
a <var>TDateTimeRec</var> record.
</descr>
<errors>
</errors>
<seealso>
<link id="TFieldType"/>
<link id="TDateTimeRec"/>
<link id="DateTimeRecToDateTime"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="DateTimeToDateTimeRec.Result">
<short><var>TDateTimeRec</var> record corresponding to timestamp in <var>Data</var>.</short>
</element>
<!-- argument Visibility: default
Declaration: DT: TFieldType -->
<element name="DateTimeToDateTimeRec.DT">
<short>Datatype for result</short>
</element>
<!-- argument Visibility: default
Declaration: Data: TDateTime -->
<element name="DateTimeToDateTimeRec.Data">
<short>Timestamp specification in <var>TDateTime</var> format.</short>
</element>
<!-- procedure Visibility: default
Declaration: procedure DisposeMem(var Buffer;Size: Integer) -->
<element name="DisposeMem">
<short>Dispose of a heap memory block and <var>Nil</var> the pointer (deprecated)</short>
<descr>
<var>DisposeMem</var> disposes of the heap memory area pointed to by <var>Buffer</var> (<var>Buffer</var> must be of type <var>Pointer</var>).
The <var>Size</var> parameter
indicates the size of the memory area (it is, in fact, ignored by the heap manager). The pointer <var>Buffer</var> is set
to <var>Nil</var>. If <var>Buffer</var> is <var>Nil</var>, then nothing happens. Do not use <var>DisposeMem</var> on objects,
because their destructor will not be called.
</descr>
<errors>
If <var>Buffer</var> is not pointing to a valid heap memory block, then memory corruption may occur.
</errors>
<seealso>
<link id="#rtl.system.FreeMem"/>
<link id="#rtl.sysutils.freeandnil"/>
</seealso>
</element>
<!-- argument Visibility: default
Declaration: Buffer -->
<element name="DisposeMem.Buffer">
<short>Pointer to memory area</short>
</element>
<!-- argument Visibility: default
Declaration: Size: Integer -->
<element name="DisposeMem.Size">
<short>Size of the memory block</short>
</element>
<!-- function Visibility: default
Declaration: function BuffersEqual(Buf1: Pointer;Buf2: Pointer;Size: Integer)
: Boolean -->
<element name="BuffersEqual">
<short>Check whether 2 memory buffers are equal</short>
<descr>
<var>BuffersEqual</var> compares the memory areas pointed to by the <var>Buf1</var>
and <var>Buf2</var> pointers and returns <var>True</var> if the contents are equal.
The memory areas are compared for the first <var>Size</var> bytes. If all bytes in
the indicated areas are equal, then <var>True</var> is returned, otherwise <var>False</var> is returned.
</descr>
<errors>
If <var>Buf1</var> or <var>Buf2</var> do not point to a valid memory area or <var>Size</var> is too large,
then an exception may occur
</errors>
<seealso>
<link id="#rtl.sysutils.Comparemem"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="BuffersEqual.Result">
<short><var>True</var> if the memory areas have the same content.</short>
</element>
<!-- argument Visibility: default
Declaration: Buf1: Pointer -->
<element name="BuffersEqual.Buf1">
<short>Pointer to first memory area.</short>
</element>
<!-- argument Visibility: default
Declaration: Buf2: Pointer -->
<element name="BuffersEqual.Buf2">
<short>Pointer to second memory area</short>
</element>
<!-- argument Visibility: default
Declaration: Size: Integer -->
<element name="BuffersEqual.Size">
<short>Number of bytes to compare.</short>
</element>
<!-- function Visibility: default
Declaration: function SkipComments(var p: PChar;EscapeSlash: Boolean;
EscapeRepeat: Boolean) : Boolean -->
<element name="SkipComments">
<short>Skip SQL comments</short>
<descr>
<p>
<var>SkipComments</var> examines the null-terminated string in <var>P</var> and skips any SQL comment or string literal
found at the start. It returns <var>P</var> the first non-comment or non-string literal position. The <var>EscapeSlash</var> parameter determines whether the
backslash character (\) functions as an escape character (i.e. the following character is not considered a delimiter).
<var>EscapeRepeat</var> must be set to <var>True</var> if the quote character is repeated to indicate itself.
</p>
<p>
The function returns <var>True</var> if a comment was found and skipped, <var>False</var> otherwise.
</p>
</descr>
<errors>
No checks are done on the validity of <var>P</var>.
</errors>
<seealso>
<link id="TParams.ParseSQL"/>
</seealso>
</element>
<!-- function result Visibility: default
Declaration: Result -->
<element name="SkipComments.Result">
<short><var>True</var> if a comment was skipped.</short>
</element>
<!-- argument Visibility: default
Declaration: p: PChar -->
<element name="SkipComments.p">
<short>Pointer to null-terminated string containing a SQL statement.</short>
</element>
<!-- argument Visibility: default
Declaration: EscapeSlash: Boolean -->
<element name="SkipComments.EscapeSlash">
<short>Is a backslash an escape character</short>
</element>
<!-- argument Visibility: default
Declaration: EscapeRepeat: Boolean -->
<element name="SkipComments.EscapeRepeat">
<short>Are repeated quotes considered a single character</short>
</element>
<element name="TField.EditMask">
<short>Specify an edit mask for an edit control</short>
<descr>
<p>
<var>EditMask</var> can be used to specify an edit mask for controls that
allow to edit this field. It has no effect on the field value, and serves
only to ensure that the user can enter only correct data for this field.
</p>
<p>
For more information on valid edit masks, see the documentation of the GUI
controls.
</p>
</descr>
<seealso>
<link id="TDateTimeField.EditMask"/>
<link id="TStringField.EditMask"/>
</seealso>
</element>
<element name="TField.EditMaskPtr">
<short>Alias for EditMask</short>
<descr>
<var>EditMaskPtr</var> is a read-only alias for the <link
id="TField.EditMask">EditMask</link> property. It is not used.
</descr>
<seealso>
<link id="TField.EditMask"/>
</seealso>
</element>
<element name="TDateTimeField.EditMask">
<short>Specify an edit mask for an edit control</short>
<descr>
<p>
<var>EditMask</var> can be used to specify an edit mask for controls that
allow to edit this field. It has no effect on the field value, and serves
only to ensure that the user can enter only correct data for this field.
</p>
<p>
<var>TDateTimeField</var> just changes the visibility of the
<var>EditMark</var> property, it is introduced in <var>TField</var>.
</p>
<p>
For more information on valid edit masks, see the documentation of the GUI
controls.
</p>
</descr>
<seealso>
<link id="TField.EditMask"/>
</seealso>
</element>
<element name="TStringField.EditMask">
<short>Specify an edit mask for an edit control</short>
<descr>
<p>
<var>EditMask</var> can be used to specify an edit mask for controls that
allow to edit this field. It has no effect on the field value, and serves
only to ensure that the user can enter only correct data for this field.
</p>
<p>
<var>TStringField</var> just changes the visibility of the
<var>EditMark</var> property, it is introduced in <var>TField</var>.
</p>
<p>
For more information on valid edit masks, see the documentation of the GUI
controls.
</p>
</descr>
<seealso>
<link id="TField.EditMask"/>
</seealso>
</element>
<element name="TStringField.SetFieldType">
<short>Set the field type</short>
<descr>
<var>SetFieldType</var> is overridden in <link id="TStringField"/>
to check the data type more accurately (<var>ftString</var> and
<var>ftFixedChar</var>).
No extra functionality is added.
</descr>
<seealso>
<link id="TField.DataType"/>
</seealso>
</element>
<element name="TWideStringField.SetFieldType">
<short>Set the field type</short>
<descr>
<var>SetFieldType</var> is overridden in <link id="TWideStringField"/>
to check the data type more accurately (<var>ftWideString</var> and
<var>ftFixedWideChar</var>).
No extra functionality is added.
</descr>
<seealso>
<link id="TField.DataType"/>
</seealso>
</element>
<element name="Tfields.GetEnumerator">
<short>Return an enumerator for the <var>for..in</var> construct</short>
<descr>
<var>GetEnumerator</var> is the implementation of <var>IEnumerable</var> and
returns an instance of <link id="TFieldsEnumerator"/>
</descr>
<seealso>
<link id="TFieldsEnumerator"/>
<link id="#rtl.system.IEnumerable"/>
</seealso>
</element>
<element name="TFieldsEnumerator">
<short>Default enumerator for the fields collection of a dataset.</short>
<descr>
<p>
<var>TFieldsEnumerator</var> implements all the methods of
<var>IEnumerator</var> so a <link id="TFields"/> instance can be used in a
for..in construct. <var>TFieldsEnumerator</var> returns all the fields in
the <var>TFields</var> collection. Therefor the following construct is possible:
</p>
<code>
Var
F : TField;
begin
// ...
For F in MyDataset.Fields do
begin
// F is of type TField.
end;
// ...
</code>
<p>
Do not create an instance of <var>TFieldsEnumerator</var> manually. The
compiler will do all that is needed when it encounters the for..in
construct.
</p>
</descr>
<seealso>
<link id="TField"/>
<link id="TFields"/>
<link id="#rtl.system.IEnumerator"/>
</seealso>
</element>
<element name="TFieldsEnumerator.Create">
<short>Create a new instance of <var>TFieldsEnumerator</var>.</short>
<descr>
<var>Create</var> instantiates a new instance of
<var>TFieldsEnumerator</var>. It stores the <var>AFields</var> reference,
pointing to the <link id="TFields"/> instance that created the enumerator.
It initializes the enumerator position.
</descr>
</element>
<element name="TFieldsEnumerator.MoveNext">
<short>Move the current field to the next field in the collection.</short>
<descr>
<var>MoveNext</var> moves the internal pointer to the next field in the
fields collection, and returns <var>True</var> if the operation was a
success. If no more fields are available, then <var>False</var> is returned.
</descr>
<seealso>
<link id="TFieldsEnumerator.Current"/>
</seealso>
</element>
<element name="TFieldsEnumerator.Current">
<short>Return the current field</short>
<descr>
<var>Current</var> returns the current field. It will return a non-nil value
only after <var>MoveNext</var> returned <var>True</var>.
</descr>
<seealso>
<link id="TFieldsEnumerator.MoveNext"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="EUpdateError.OriginalException">
<short>Originally raised exception</short>
<descr>
<var>OriginalException</var> is the originally raised exception that is
transformed to an <var>EUpdateError</var> exception.
</descr>
<seealso>
<link id="DB.EDatabaseError"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TField.AsBytes">
<short>Retrieve the contents of the field as an array of bytes</short>
<descr>
<var>AsBytes</var> returns the contents of the field as an array of bytes.
For blob data this is the actual blob content.
</descr>
<seealso>
<link id="TBlobField"/>
</seealso>
</element>
<!-- argument Visibility: public -->
<element name="TStringField.SetFieldType.AValue">
<short>Value to set the field type to.</short>
</element>
<!-- argument Visibility: public -->
<element name="TWideStringField.SetFieldType.AValue">
<short>Value to set the field type to.</short>
</element>
<!--
********************************************************************
#fcl.db.TFMTBCDField
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TFMTBCDField">
<short>Fixed precision floating point data field</short>
<descr>
<var>TFMTBCDField</var> is the field created when a data type of
<var>ftFMTBCD</var> is encountered. It represents usually a fixed-precision
floating point data type (BCD : Binary Coded Decimal data) such as the
<var>DECIMAL</var> or <var>NUMERIC</var> field types in an SQL database.
</descr>
<seealso>
<link id="TFloatField"/>
</seealso>
</element>
<!-- constructor Visibility: public -->
<element name="TFMTBCDField.Create">
<short>Create a new instance of the <var>TFMTBCDField</var> class.</short>
<descr>
<var>Create</var> initializes a new instance of the <var>TFMTBCDField</var>
class: it sets the <link id="MinValue"/>, <link id="MaxValue"/>, <link
id="TField.Size">Size</link> (15) and <link id="Precision"/> (2) fields to their
default values.
</descr>
<seealso>
<link id="MinValue"/>
<link id="MaxValue"/>
<link id="TField.Size">Size</link>
<link id="Precision"/>
</seealso>
</element>
<!-- argument Visibility: public -->
<element name="TFMTBCDField.Create.AOwner">
<short>Owner of the field, usually the dataset.</short>
</element>
<!-- function Visibility: public -->
<element name="TFMTBCDField.CheckRange">
<short>Check value if it is in the range defined by MinValue and MaxValue</short>
<descr>
<var>CheckRange</var> checks whether <var>AValue</var> is between <link
id="MinValue"/> and <link id="MaxValue"/> if they are both nonzero.
If either of them is zero, then <var>True</var> is returned. The
<var>MinValue</var> and <var>MaxValue</var> values themselves are also valid values.
</descr>
<errors>
</errors>
<seealso>
<link id="MinValue"/>
<link id="MaxValue"/>
</seealso>
</element>
<!-- function result Visibility: public -->
<element name="TFMTBCDField.CheckRange.Result">
<short><var>True</var> if <var>AValue</var> is in the range [<var>MinValue</var>,<var>MaxValue</var>]</short>
</element>
<!-- argument Visibility: public -->
<element name="TFMTBCDField.CheckRange.AValue">
<short>Value to check</short>
</element>
<!-- property Visibility: public -->
<element name="TFMTBCDField.Value">
<short>The value of the field as a BCD value</short>
<descr>
<var>Value</var> is the value of the field as a BCD (Binary Coded Decimal) value.
</descr>
<seealso>
<link id="TField.AsFloat"/>
<link id="TField.AsCurrency"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TFMTBCDField.Precision">
<short>Total number of digits in the BCD data</short>
<descr>
<var>Precision</var> is the total number of digits in the BCD data.
The maximum precision is 32.
</descr>
<seealso>
<link id="TField.AsFloat"/>
<link id="TField.AsCurrency"/>
<link id="Size"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TFMTBCDField.Currency">
<short>Does the field contain currency data ?</short>
<descr>
<var>Currency</var> determines how the textual representation of the data is
formatted. It has no influence on the actual data itself. If <var>True</var>
it is represented as a currency (monetary value).
If <link id="TField.DisplayFormat">DisplayFormat</link> or
<link id="TField.EditFormat">EditFormat</link> are set, these values are used
instead to format the value.
</descr>
<seealso>
<link id="TField.DisplayFormat"/>
<link id="TField.EditFormat"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TFMTBCDField.MaxValue">
<short>Maximum value for the field</short>
<descr>
<var>MaxValue</var> can be set to a nonzero value to indicate the maximum
value the field may contain. It must be set together with <link
id="MinValue"/> or it will not have any effect.
</descr>
<seealso>
<link id="TFMTBCDField.CheckRange"/>
<link id="MinValue"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TFMTBCDField.MinValue">
<short>Minimum value for the field</short>
<descr>
<var>MinValue</var> can be set to a nonzero value to indicate the maximum
value the field may contain. It must be set together with <link id="MaxValue"/>
or it will not have any effect.
</descr>
<seealso>
<link id="TFMTBCDField.CheckRange"/>
<link id="MaxValue"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TFMTBCDField.Size">
<short>Number of digits after the decimal point</short>
<descr>
<var>Size</var> is the maximum number of digits allowed after the decimal point.
Together with the <link id="Precision"/> property it determines the maximum
allowed range of values for the field. This range can be restricted using
the <link id="MinValue"/> and <link id="MaxValue"/> properties.
</descr>
<seealso>
<link id="MinValue"/>
<link id="MaxValue"/>
<link id="Precision"/>
</seealso>
</element>
<!-- argument Visibility: public -->
<element name="TFieldsEnumerator.Create.AFields">
<short>TFields instance for which the enumerator is created</short>
</element>
<!-- function result Visibility: public -->
<element name="TFieldsEnumerator.MoveNext.Result">
<short>True if there is a next value, false otherwise.</short>
</element>
<!-- function result Visibility: public -->
<element name="TFields.GetEnumerator.Result">
<short><var>TFieldsEnumerator</var> instance used in enumerator.</short>
</element>
<!-- property Visibility: public -->
<element name="TParam.AsFMTBCD">
<short>Parameter value as a BCD value</short>
<descr>
<var>AsFMTBCD</var> can be used to get or set the parameter's value as a BCD
typed value.
</descr>
<seealso>
<link id="AsFloat"/>
<link id="AsCurrency"/>
</seealso>
</element>
<!-- alias type Visibility: default -->
<element name="TRecordBufferBaseType">
<short>Opaque base type for <var>TRecordBuffer</var></short>
<descr>
<var>TRecordBufferBaseType</var> should not be used directly. It just serves
as an (opaque) base type to <link id="TRecordBuffer"/>
</descr>
<seealso>
<link id="TRecordBuffer"/>
</seealso>
</element>
<!-- alias type Visibility: default -->
<element name="TRecordBuffer">
<short>Pointer type for record data buffer</short>
<descr>
<var>TRecordBuffer</var> is the type used by <link id="TDataset"/> to point to a
record's data buffer. It is used in several internal <var>TDataset</var> routines.
</descr>
<seealso>
<link id="TDataset"/>
</seealso>
</element>
<!-- enumeration type Visibility: default -->
<element name="TPSCommandType">
<short>Type of SQL command</short>
<descr>
<var>TPSCommandType</var> is used in the <link id="IProviderSupport.PSGetCommandType"/>
call to determine the type of SQL command that the provider is exposing.
It is meaningless for datasets that are not SQL based.
</descr>
<seealso>
</seealso>
</element>
<!-- enumeration value Visibility: default -->
<element name="TPSCommandType.ctUnknown">
<short>Unknown SQL type or not SQL based</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TPSCommandType.ctQuery">
<short>General SQL statement</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TPSCommandType.ctTable">
<short>Table contents (select * from table)</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TPSCommandType.ctStoredProc">
<short>Stored procedure statement</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TPSCommandType.ctSelect">
<short>SQL SELECT Statement</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TPSCommandType.ctInsert">
<short>SQL INSERT Statement</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TPSCommandType.ctUpdate">
<short>SQL UPDATE statement</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TPSCommandType.ctDelete">
<short>SQL DELETE Statement</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TPSCommandType.ctDDL">
<short>SQL DDL statement</short>
</element>
<!--
********************************************************************
#fcl.db.IProviderSupport
********************************************************************
-->
<!-- interface Visibility: default -->
<element name="IProviderSupport">
<short>Interface for Provider support</short>
<descr>
<var>IProviderSupport</var> is an interface used by Delphi's TProvider (datasnap) technology.
It is currently not used in Free Pascal, but is provided for Delphi
compatibility. The <link id="TDataset"/> class implements all the methods of
this interface for the benefit of descendent classes, but does not publish
the interface in it's declaration.
</descr>
<seealso>
<link id="TDataset"/>
</seealso>
</element>
<!-- procedure Visibility: default -->
<element name="IProviderSupport.PSEndTransaction">
<short>End an active transaction</short>
<descr>
<var>PSEndTransaction</var> ends an active transaction if an transaction is
active. (<link id="PSInTransaction"/> returns <var>True</var>). If
<var>ACommit</var> is <var>True</var> then the transaction is committed,
else it is rolled back.
</descr>
<seealso>
<link id="PSInTransaction"/>
<link id="PSStartTransaction"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSEndTransaction.ACommit">
<short>Should the transaction be committed or rolled back?</short>
</element>
<!-- procedure Visibility: default -->
<element name="IProviderSupport.PSExecute">
<short>Execute the current command-text.</short>
<descr>
<var>PSExecute</var> executes the current SQL statement: the command as it is returned by <link id="PSGetCommandText"/>.
</descr>
<seealso>
<link id="PSGetCommandText"/>
<link id="PSExecuteStatement"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSExecuteStatement">
<short>Execute a SQL statement.</short>
<descr>
<p>
<var>PSExecuteStatement</var> will execute the <var>ASQL</var> SQL statement in the current transaction.
The SQL statement can have parameters embedded in it (in the form <var>:ParamName</var>), values for these
parameters will be taken from <var>AParams</var>. If the SQL statement returns a result-set, then the
result set can be returned in <var>ResultSet</var>. The function returns
<var>True</var> if the statement was executed successful.
</p>
<p>
<var>PSExecuteStatement</var> does not modify the content of
<var>CommandText</var>: <link id="PSGetCommandText"/> returns the same value
before and after a call to <var>PSExecuteStatement</var>.
</p>
</descr>
<seealso>
<link id="PSGetCommandText"/>
<link id="PSSetCommandText"/>
<link id="PSExecuteStatement"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSExecuteStatement.Result">
<short>True if the statement ASQL was executed successfully.</short>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSExecuteStatement.ASQL">
<short>SQL statement to execute (may contain parameters)</short>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSExecuteStatement.AParams">
<short>Parameter values to substitute when executing ASQL</short>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSExecuteStatement.ResultSet">
<short>Pointer to resultset (if any)</short>
</element>
<!-- procedure Visibility: default -->
<element name="IProviderSupport.PSGetAttributes">
<short>Get a list of attributes (metadata)</short>
<descr>
<var>PSGetAttributes</var> returns a set of <var>name=value</var> pairs which is
included in the data packet sent to a client.
</descr>
<seealso>
<link id="PSGetCommandText"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSGetAttributes.List">
<short>List of attributes</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSGetCommandText">
<short>Return the SQL command executed for getting data.</short>
<descr>
<var>PSGetCommandText</var> returns the SQL command that is executed when the <link id="PSExecute"/>
function is called (for a TSQLQuery this would be the SQL property) or when
the dataset is opened.
</descr>
<seealso>
<link id="PSExecute"/>
<link id="PSSetCommandText"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSGetCommandText.Result">
<short>SQL statement</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSGetCommandType">
<short>Return SQL command type</short>
<descr>
<var>PSGetCommandType</var> should return the kind of SQL statement that is
executed by the command (as returned by <link id="PSGetCommandText"/>). The
list of possible command types is enumerated in <link id="TPSCommandType"/>.
</descr>
<seealso>
<link id="PSGetCommandText"/>
<link id="TPSCommandType"/>
<link id="PSExecute"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSGetCommandType.Result">
<short>The kind of SQL command.</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSGetDefaultOrder">
<short>Default order index definition</short>
<descr>
<var>PSGetDefaultOrder</var> should return the index definition from the
list of indexes (as returned by <link id="PSGetIndexDefs"/>) that represents
the default sort order.
</descr>
<seealso>
<link id="PSGetIndexDefs"/>
<link id="PSGetKeyFields"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSGetDefaultOrder.Result">
<short>Index definition for default order</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSGetIndexDefs">
<short>Return a list of index definitions</short>
<descr>
<var>PSGetIndexDefs</var> should return a list of index definitions, limited
to the types of indexes in <var>IndexTypes</var>.
</descr>
<seealso>
<link id="PSGetDefaultOrder"/>
<link id="PSGetKeyFields"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSGetIndexDefs.Result">
<short>The collection of index definitions.</short>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSGetIndexDefs.IndexTypes">
<short>Types of indexes that should be included in the result.</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSGetKeyFields">
<short>Return a list of key fields in the dataset</short>
<descr>
<var>PSGetKeyFields</var> returns a semicolon-separated list of fieldnames that make up the
unique key for a record. Normally, these are the names of the fields that
have <var>pfInKey</var> in their <link id="TField.ProviderOptions">ProviderOptions</link>
property.
</descr>
<seealso>
<link id="PSGetIndexDefs"/>
<link id="PSGetDefaultOrder"/>
<link id="TField.ProviderOptions"/>
<link id="TProviderFlags"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSGetKeyFields.Result">
<short>Semicolon separated list of fieldnames which form the unique key for a record.</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSGetParams">
<short>Get the parameters in the commandtext</short>
<descr>
<var>PSGetParams</var> returns the list of parameters in the command-text
(as returned by <link id="PSGetCommandText"/>). This is usually the
<var>Params</var> property of a <link id="TDataset"/> descendant.
</descr>
<seealso>
<link id="PSGetCommandText"/>
<link id="PSSetParams"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSGetParams.Result">
<short>The list of parameters in the SQL statement</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSGetQuoteChar">
<short>Quote character for quoted strings</short>
<descr>
<var>PSGetQuoteChar</var> returns the quote character needed to enclose
string literals in an SQL statement for the underlying database.
</descr>
<seealso>
<link id="PSGetTableName"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSGetQuoteChar.Result">
<short>The actual quote character</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSGetTableName">
<short>Name of database table which must be updated</short>
<descr>
<var>PSGetTableName</var> returns the name of the table for which update SQL statements must be constructed.
The provider can create and execute SQL statements to update the underlying database
by itself. For this, it uses <var>PSGetTableName</var> as the name of the table to update.
</descr>
<seealso>
<link id="PSGetQuoteChar"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSGetTableName.Result">
<short>Name of database table to update</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSGetUpdateException">
<short>Transform exception to <var>UpdateError</var></short>
<descr>
<var>PSGetUpdateException</var> is called to transform and chain exceptions
that occur during an ApplyUpdates operation. The exception <var>E</var> must
be transformed to an <link id="EUpdateError"/> exception. The previous
<var>EUpdateError</var> exception in the update batch is passed in
<var>Prev</var>.
</descr>
<seealso>
<link id="EUpdateError"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSGetUpdateException.Result">
<short>The new <var>EUpdateError</var>exception</short>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSGetUpdateException.E">
<short>The originally raised exception</short>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSGetUpdateException.Prev">
<short>The previous exception in the applyupdates batch (can be nil).</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSInTransaction">
<short>Is the dataset in an active transaction.</short>
<descr>
<var>PSInTransaction</var> returns <var>True</var> if the dataset is in an
active transaction or <var>False</var> if no transaction is active.
</descr>
<seealso>
<link id="PSEndTransaction"/>
<link id="PSStartTransaction"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSInTransaction.Result">
<short><var>True</var> if a transaction is currently active</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSIsSQLBased">
<short>Is the dataset SQL based</short>
<descr>
<var>PSIsSQLBased</var> returns <var>True</var> if the dataset is SQL based
or not. Note that this is different from <link id="PSIsSQLSupported"/> which
indicates whether SQL statements can be executed using <link id="PSExecuteCommand"/>
</descr>
<seealso>
<link id="PSIsSQLSupported"/>
<link id="PSExecuteCommand"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSIsSQLBased.Result">
<short>True if the dataset is based on an SQL statement</short>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSIsSQLSupported">
<short>Can the dataset support SQL statements</short>
<descr>
<var>PSIsSQLSupported</var> returns <var>True</var> if <link
id="PSExecuteCommand"/> can be used to execute SQL statements on the
underlying database.
</descr>
<seealso>
<link id="PSExecuteCommand"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSIsSQLSupported.Result">
<short>Can SQL statements be executed or not</short>
</element>
<!-- procedure Visibility: default -->
<element name="IProviderSupport.PSReset">
<short>Position the dataset on the first record</short>
<descr>
<var>PSReset</var> repositions the dataset on the first record. For
bi-directional datasets, this usually means that first is called, but for
unidirectional datasets this may result in re-fetching the data from the
underlying database.
</descr>
<seealso>
<link id="TDataset.First"/>
<link id="TDataset.Open"/>
</seealso>
</element>
<!-- procedure Visibility: default -->
<element name="IProviderSupport.PSSetCommandText">
<short>Set the command-text of the dataset</short>
<descr>
<var>PSSetCommandText</var> sets the commandtext (SQL) statement that is executed by
<var>PSExecute</var> or that is used to open the dataset.
</descr>
<seealso>
<link id="PSExecute"/>
<link id="PSGetCommandText"/>
<link id="PSSetParams"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSSetCommandText.CommandText">
<short>New SQL command to be used</short>
</element>
<!-- procedure Visibility: default -->
<element name="IProviderSupport.PSSetParams">
<short>Set the parameters for the command text</short>
<descr>
<var>PSSetParams</var> sets the values of the parameters that should be used
when executing the commandtext SQL statement.
</descr>
<seealso>
<link id="PSSetCommandText"/>
<link id="PSGetParams"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSSetParams.AParams">
<short>Value for the parameters</short>
</element>
<!-- procedure Visibility: default -->
<element name="IProviderSupport.PSStartTransaction">
<short>Start a new transaction</short>
<descr>
<var>PSStartTransaction</var> is used by the provider to start a new transaction.
It will only be called if no transaction was active yet (i.e. <link
id="PSIntransaction"/> returned <var>False</var>).
</descr>
<errors>
</errors>
<seealso>
<link id="PSEndTransaction"/>
<link id="PSIntransaction"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="IProviderSupport.PSUpdateRecord">
<short>Update a record</short>
<descr>
<p>
<var>PSUpdateRecord</var> is called before attempting to update the records
through generated SQL statements. The update to be performed is passed in
<var>UpdateKind</var> parameter. The <var>Delta</var> Dataset's current
record contains all data for the record that must be updated.
</p>
<p>
The function returns <var>True</var> if the update was successfully applied,
<var>False</var> if not. In that case the provider will attempt to update
the record using SQL statements if the dataset allows it.
</p>
</descr>
<seealso>
<link id="PSIsSQLSupported"/>
<link id="PSExecuteCommand"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="IProviderSupport.PSUpdateRecord.Result">
<short><var>True</var> if the record was successfully updated.</short>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSUpdateRecord.UpdateKind">
<short>Type of update to perform.</short>
</element>
<!-- argument Visibility: default -->
<element name="IProviderSupport.PSUpdateRecord.Delta">
<short>Data for the record that must be updated.</short>
</element>
<!-- property Visibility: public -->
<element name="TDataSet.BlockReadSize">
<short>Number of records to read</short>
<descr>
<var>BlockReadSize</var> can be set to a positive number to prevent the
dataset from sending notifications to DB-Aware controls while scrolling
through the data. Setting it to zero will re-enable sending of
notifications, as will putting the dataset in another state (edit etc.).
</descr>
<seealso>
<link id="EnableControls"/>
<link id="DisableControls"/>
</seealso>
</element>
<!-- argument Visibility: public -->
<element name="TCustomConnection.Close.ForceClose">
<short>Ignore errors when closing the connection.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TDataSetState.dsRefreshFields">
<short>Dataset is refreshing field values from server after an update.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TProviderFlag.pfRefreshOnInsert">
<short>This field's value should be refreshed after insert.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TProviderFlag.pfRefreshOnUpdate">
<short>This field's value should be refreshed after update.</short>
</element>
<!-- "class of" type Visibility: default -->
<element name="TFieldDefClass">
<short>Class of <var>TFieldDef</var>.</short>
<descr>
<var>TFieldDefClass</var> is used to be able to customize the actual
<link id="TDataset.FieldDefs"/> items class.
</descr>
<seealso>
<link id="TDataset.FieldDefs"/>
<link id="TFieldDef"/>
</seealso>
</element>
<!-- function result Visibility: public -->
<element name="TFieldDefs.Add.Result">
<short>Add new fieldDef result</short>
</element>
<!-- argument Visibility: public -->
<element name="TFieldDefs.Add.AFieldNo">
<short>Number of the field </short>
</element>
<!-- "class of" type Visibility: default -->
<element name="TFieldDefsClass">
<short>Class of <var>TFieldDefs</var></short>
<descr>
<var>TFieldDefClass</var> is used to be able to customize the actual
<link id="TDataset.FieldDefs"/> class used in a <link id="TDataset"/>
descendent.
</descr>
<seealso>
<link id="TDataset"/>
<link id="TDataset.FieldDefs"/>
<link id="TFieldDefs"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TField.FieldDef">
<short>Fielddef associated with this field</short>
<descr>
<var>FieldDef</var> references the <var>TFieldDef</var> instance to which
this field instance is bound. When a dataset is opened, the <link
id="TDataset.FieldDefs"/> property is filled with field definitions as
returned from the server. After this fields are created, or if they already
exist, are bound to these fielddefs.
</descr>
<seealso>
<link id="TDataset.FieldDefs"/>
</seealso>
</element>
<!-- "class of" type Visibility: default -->
<element name="TFieldsClass">
<short>Class of TFields</short>
<descr>
<var>TFieldsClass</var> is needed to be able to specify the class of fields
used in <link id="TDataset.Fields"/>;
</descr>
<seealso>
<link id="TDataset.Fields"/>
<link id="TFields"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TParam.AsBCD">
<short>Get or set parameter value as BCD value</short>
<descr>
<var>AsBCD</var> can be used to get or set a parameter value as a BCD
encoded floating point value.
</descr>
<seealso>
<link id="TParam.AsFloat"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TParam.AsBytes">
<short>Get or set parameter value as <var>TBytes</var></short>
<descr>
<var>AsBCD</var> can be used to get or set a parameter value as a <var>TBytes</var>
value. This should normally only be used for blob type parameters.
</descr>
<seealso>
<link id="TParam.AsString"/>
</seealso>
</element>
<!-- "class of" type Visibility: default -->
<element name="TParamClass">
<short>Class of <var>TParam</var></short>
<descr>
<var>TParamClass</var> is needed to be able to specify the type of
parameters when instantiating a <link id="TParams"/> collection.
</descr>
<seealso>
</seealso>
</element>
<!--
********************************************************************
#fcl.db.TParamsEnumerator
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TParamsEnumerator">
<short>Enumerator for parameters</short>
<descr>
<var>TParamsEnumerator</var> is a helper class to implement enumeration
(<var>for..in</var>) of parameters. It implements the <var>IEnumerator</var>
interface.
</descr>
<seealso>
<link id="TParams.GetEnumerator"/>
</seealso>
</element>
<!-- constructor Visibility: public -->
<element name="TParamsEnumerator.Create">
<short>Create a new <var>TParamsEnumerator</var> instance</short>
<descr>
<var>Create</var> instantiates a new enumerator for <var>AParams</var>.
</descr>
<seealso>
<link id="TParams.GetEnumerator"/>
</seealso>
</element>
<!-- argument Visibility: public -->
<element name="TParamsEnumerator.Create.AParams">
<short>TParams instance which must be enumerated</short>
</element>
<!-- function Visibility: public -->
<element name="TParamsEnumerator.MoveNext">
<short>Go to next TParam</short>
<descr>
<var>MoveNext</var> will move to the next TParam instance if possible. If it
returns <var>True</var> then <link id="TParamsEnumerator.Current"/> will
return the new current <var>TParam</var>
</descr>
<errors>
</errors>
<seealso>
<link id="TParamsEnumerator.Current"/>
</seealso>
</element>
<!-- function result Visibility: public -->
<element name="TParamsEnumerator.MoveNext.Result">
<short><var>True</var> if there was a next <var>TParam</var>, <var>False</var> if none existed </short>
</element>
<!-- property Visibility: public -->
<element name="TParamsEnumerator.Current">
<short>Current <var>TParam</var> instance</short>
<descr>
<var>Current</var> is the current <var>TParam</var> instance. It is only valid if
<link id="TParamsEnumerator.MoveNext"/> returned true.
</descr>
<seealso>
<link id="TParamsEnumerator.MoveNext"/>
</seealso>
</element>
<!-- argument Visibility: public -->
<element name="TParams.Create.AItemClass">
<short>Item class to use for this <var>TParams</var> instance.</short>
</element>
<!-- function Visibility: public -->
<element name="TParams.GetEnumerator">
<short>Return an enumerator for the parameters</short>
<descr>
<var>GetEnumerator</var> returns an enumerator that loops over all
parameters (as implemented by <link id="TParamsEnumerator"/>)
</descr>
<seealso>
<link id="TParamsEnumerator"/>
</seealso>
</element>
<!-- function result Visibility: public -->
<element name="TParams.GetEnumerator.Result">
<short>The <var>TParamsEnumerator</var> instance.</short>
</element>
<!-- constant Visibility: default -->
<element name="ftBlobTypes">
<short>Constant enumerating all blob types</short>
<descr>
<var>ftBlobTypes</var> is a constant containing all blob field data types.
It is to be preferred over the <link id="TBlobType"/> range, which contains
some non-blob types as well.
</descr>
<seealso>
<link id="TBlobType"/>
</seealso>
</element>
<!-- uses unit Visibility: default -->
<element name="Classes">
<short>Collections and lists</short>
</element>
<!-- uses unit Visibility: default -->
<element name="SysUtils">
<short>Formatting and conversions</short>
</element>
<!-- uses unit Visibility: default -->
<element name="Variants">
<short>Variant support</short>
</element>
<!-- uses unit Visibility: default -->
<element name="FmtBCD">
<short>BCD support</short>
</element>
<!-- uses unit Visibility: default -->
<element name="MaskUtils">
<short>Mask string support</short>
</element>
<!-- argument Visibility: default -->
<element name="TFieldDef.Create.ACodePage">
<short>Codepage for the string field</short>
</element>
<!-- property Visibility: public -->
<element name="TFieldDef.CharSize">
<short>Character size</short>
<descr>
<p>
<var>CharSize</var> is only relevant for for string fields:
it indicates the number of bytes used to represent a single character.
It is calculated from the <link id="TFieldDef.CodePage"/> property and can have the following values:
</p>
<ul>
<li>1 for single-byte string fields</li>
<li>2 for UnicodeString fields</li>
<li>4 for UTF8 strings</li>
</ul>
</descr>
<seealso>
<link id="TFieldDef.CodePage"/>
<link id="TFieldDef.Size"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TFieldDefs.Add.APrecision">
<short>Precision</short>
</element>
<!-- argument Visibility: default -->
<element name="TFieldDefs.Add.AReadOnly">
<short>Read-only field</short>
</element>
<!-- argument Visibility: default -->
<element name="TFieldDefs.Add.ACodePage">
<short>Codepage field</short>
</element>
<!-- property Visibility: public -->
<element name="TField.AsAnsiString">
<short>Return field contents as an ANSI string</short>
<descr>
<var>AsAnsiString</var> returns the field data as an ANSI string (single byte character string).
Note that if the field contains unicode data, some characters may get lost when reading.
</descr>
<seealso>
<link id="TField.AsString"/>
<link id="TField.AsUnicodeString"/>
<link id="TField.AsUTF8String"/>
<link id="TField.CodePage"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TField.AsUnicodeString">
<short>Field contents as a UnicodeString</short>
<descr>
<var>AsUnicodeString</var> returns the field data as a Unicode string (double byte character string).
If the field contains an AnsiString, the data will be converted to unicode according to the
<link id="TField.CodePage">CodePage</link> when reading, and when writing the written data will be converted to single-byte string.
Note that if the field is an ansistring field, some characters may get lost when writing.
</descr>
<seealso>
<link id="TField.AsString"/>
<link id="TField.AsAnsiString"/>
<link id="TField.AsUTF8String"/>
<link id="TField.CodePage"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TField.AsUTF8String">
<short>Field contents as a UTF8 String</short>
<descr>
<var>AsUTF8String</var> returns the field data as a UTF8-Encoded string (single byte character string).
If the field contains an AnsiString, the data will be converted to unicode according to the <link id="TField.CodePage">CodePage</link>.
If the field contains a unicode string, the string is UTF-8 encoded.
When writing the written data will be converted to single-byte string.
Note that if the field is an ansistring field, some characters may get lost when writing.
</descr>
<seealso>
<link id="TField.AsString"/>
<link id="TField.AsUnicodeString"/>
<link id="TField.AsAnsi8String"/>
<link id="TField.CodePage"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TStringField.CodePage">
<short>Codepage of the field string data</short>
<descr>
<var>CodePage</var> is the code page of the string data in the field.
It is determined when the field is initially created from the dataset's data, and cannot be changed while the dataset is active.
</descr>
<seealso>
<link id="TField.AsString"/>
<link id="TField.AsUnicodeString"/>
<link id="TField.AsAnsi8String"/>
<link id="TFieldDef.CodePage"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TMemoField.CodePage">
<short>Codepage of the memo field string data</short>
<descr>
<var>CodePage</var> is the code page of the string data in the field.
It is determined when the field is initially created from the dataset's data, and cannot be changed while the dataset is active.
</descr>
<seealso>
<link id="TField.AsString"/>
<link id="TFieldDef.CodePage"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TParam.AsAnsiString">
<short>Parameter contents as an ANSI string</short>
<descr>
<var>AsAnsiString</var> returns the parameter data as an ANSI string (single byte character string).
Note that if the parameter contains unicode data, some characters may get lost when reading.
</descr>
<seealso>
<link id="TParam.AsString"/>
<link id="TParam.AsUnicodeString"/>
<link id="TParam.AsUTF8String"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TParam.AsUTF8String">
<short>Parameter contents as an UTF8 string</short>
<descr>
<var>AsUTF8String</var> returns the parameter data as an UTF8 string (single byte-encoded unicode string).
</descr>
<seealso>
<link id="TParam.AsString"/>
<link id="TParam.AsUnicodeString"/>
<link id="TParam.AsAnsiString"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TParam.AsUnicodeString">
<short>Parameter contents as a Unicode string</short>
<descr>
<var>AsUTF8String</var> returns the parameter data as a UnicodeString (double byte unicode string).
</descr>
<seealso>
<link id="TParam.AsString"/>
<link id="TParam.AsUTF8String"/>
<link id="TParam.AsAnsiString"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.DB.TDataSetEnumerator
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TDataSetEnumerator">
<short>Enumerator for <var>TDataset</var> records</short>
<descr>
<p>
<var>TDataSetEnumerator</var> is an enumerator for the records in a dataset.
It returns the <link id="TDataset.Fields"/> instance. It navigates from the first till the last record in the dataset.
The following is an example of how this can be used, in conjunction with the field enumerator:
</p>
<code>
var
Rec : TFields;
Fld : TField;
begin
for Rec in MyDataset do
for F in Rec do
Writeln(F.Name,' : ',F.AsString);
</code>
<p>
Note that the current record pointer of the dataset is modified as the loop is traversed.
If the current record is modified by other code while the loop is running, the result may become unpredictable.
Similarly, if 2 enumerators are used simultaneously for the same dataset, the results are unpredictable.
</p>
</descr>
<seealso>
<link id="TDataset"/>
<link id="TFields"/>
<link id="TFieldsEnumerator"/>
</seealso>
</element>
<!-- constructor Visibility: public -->
<element name="TDataSetEnumerator.Create">
<short>Create a new instance of the dataset enumerator</short>
<descr>
<var>Create</var> saves the dataset for later use, and puts the dataset on the firs record.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="TDataset"/>
<link id="TDataset.First"/>
<link id="TFieldsEnumerator"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDataSetEnumerator.Create.ADataSet">
<short>Dataset to enumerate</short>
</element>
<!-- function Visibility: public -->
<element name="TDataSetEnumerator.MoveNext">
<short>Attempts to navigate to the next record</short>
<descr>
<var>MoveNext</var> attempts to navigate to the next record.
It returns <var>True</var> if the attempt was successful, <var>False</var> if not (EOF is true).
</descr>
<seealso>
<link id="TDataset.Next"/>
<link id="TDataset.EOF"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDataSetEnumerator.MoveNext.Result">
<short>True if the move to the next record was succesful</short>
</element>
<!-- property Visibility: public -->
<element name="TDataSetEnumerator.Current">
<short>Current record</short>
<descr>
<var>Current</var> always returns <link id="TDataset.Fields"/>.
</descr>
<seealso>
<link id="TDataset.Fields"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="LoginDialogExProc">
<short>Login dialog callback</short>
<descr>
<var>LoginDialogExProc</var> is a procedural variable that can be set to handle login dialogs:
if a database connection component needs to collect login data (typically when <var>LoginPrompt</var> is <var>True</var>),
then if this callback is set it can e.g. be used to show a dialog used to fetch the data.
</descr>
<seealso>
<link id="TCustomConnection.LoginPrompt"/>
<link id="TCustomConnection.OnLogin"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="LoginDialogExProc.Result">
<short>True if the login data was succesfully returned</short>
</element>
<!-- argument Visibility: default -->
<element name="LoginDialogExProc.ADatabaseName">
<short>Database name to connect to</short>
</element>
<!-- argument Visibility: default -->
<element name="LoginDialogExProc.AUserName">
<short>User name to use for connection</short>
</element>
<!-- argument Visibility: default -->
<element name="LoginDialogExProc.APassword">
<short>Password to use for connection</short>
</element>
<!-- argument Visibility: default -->
<element name="LoginDialogExProc.UserNameReadOnly">
<short>Can the user change the name ?</short>
</element>
<!-- operator Visibility: default -->
<element name="enumerator(TDataSet):TDataSetEnumerator">
<short>Operator to return dataset enumerator</short>
<descr>
This operator allows to use the <link id="TDataSetEnumerator"/> as an enumerator for a <link id="TDataset"/>
</descr>
<seealso>
<link id="TDataSetEnumerator"/>
<link id="TDataset"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="enumerator(TDataSet):TDataSetEnumerator.Result">
<short>The new enumerator</short>
</element>
<!-- argument Visibility: default -->
<element name="enumerator(TDataSet):TDataSetEnumerator.ADataSet">
<short>The dataset for which to return an enumerator</short>
</element>
</module> <!-- db -->
</package>
</fpdoc-descriptions>
|