At the Library page there are some ready-made Functions (UDF), Classes and
Constants that serve a double purpose. First, most of these can be used immediately
and be very useful and second, can be seen as examples in various aspects in
using the CalcIt language. Classes that are wrappers of existing APIs may are
not full implementations (at the moment) and only of the most important of their
Generally I will try to document the Library code with comments inside the
code itself. Here I will present some Classes that can be used immediately with
- ODBC. Wrapper of the ODBC API. Can be
used to access any database that has an ODBC driver.
- CQuery. Uses
ODBC in a more simplified and user friendly interface. Executes prepared statements.
Many CQuery instances can be created in a code with only one Database
Inherits from CQuery and is simpler to use in a code which uses only one
prepared SQL statement
- CODBCForm & CODBCFormGrid. These
two Classes produce a Form where is simple and easy to execute SQL
statements against an ODBC database and see immediately the returned
results. The first Class uses a ctrMEMO
control as output media and the second uses ctrGRID.
- CSocketInit, CSocket, C1Socket. For
sockets programming. Do test and checks in a TCP/IP network.
- CAssoc. Implements associative arrays
using red-black tree algorithm. This kind of arrays it uses a key of any
numeric or alphanumeric value to access the array element. This is in
contrast of Normal Calcit arrays that they use a numeric index which
represents the absolute position of the element in the array.
- CArray. Implements 2D array.
- CDiff. Merges
two text files
- CMemAlloc. Allocates memory using
Win32 API. No need for explicit freeing of the memory.
- CFileIO. File
IO using the Win32API.
- CGDI. Windows GDI import class.
- CTextIO. Reading and Writing text
files in line to line basis.
- CInternet. Accessing
the Internet through HTTP and FTP protocols. Create download scripts. At times more
powerful and useful than a Download Manager.
- CConfig. Save the size and position of
your Forms so the next time you rerun a CalcIt Application this will appear
exactly in the place left the last time. Additionally any other information
can be saved and loaded handling the public variable uinf.