869569019

869569019



86


J. Ruchel, T. Adamczyk

Below is presented an example of building a computational application for varied surveying constructions with the use of geodetic database and the VBA language.

The development of hardware influenced on the programming languages de-velopment; from Iow level language (assembler) to the high level ones (mostly C++). At this moment they are less complicated, incłude many facilities and are morę friendly for normal Computer users.

The Basic language exists sińce 1963. First it was a very simple programming language for beginners. A break-through occurred with launching the Visual Basic 1.0. At the same time the Microsoft Windows operational system was introduced. VB became a visual language in which many programming procedures were executed through graphical arrangement of objects on the application window (form). It did not reąuire writing long source codes defining a proper appearance of the application. In VB a programmer could quickly build a fully working application, taking advantage of a graphic user interface. Visual Basic for Applications (VBA) is a programming language based on VB, implemented in the MS Office applications and many others (including AutoCAD). This version of Visual Basic conduces mostly to automation the work with files through macro commands. The main difference between VB and VBA is that the latter does not allow to create independent com-plex applications of exe type. The codę of a program written in VBA is always placed in a file created by a program supporting VBA - for example in a.mdb or.accdb file of the MS Access database. Such a program reąuires an executable environment i.e. an application handling the given document type to be installed on the programmer's Computer.

2. Building an Event-Type Application (Programme Form and Codę)

An application realized in VB language consists of two parts:

-    graphic user interface, or a system of a window called a form and Controls assigned to this window; in easy tasks instead of the form single Controls can be used, mostly buttons;

-    codę of the application, containing procedures with series of instructions to be executed.

Applications built within VB or VBA are event-type programs. That is, a procedurę is triggered if an appropriate event occurs. As an event should be regarded user activities such as: clicking a mouse button, pressing a proper key, marking with a cursor etc. Events can be also connected with external devices (for example some measuring apparatus) or with time. Occurrence or non-occurrence of an appropriate event conditions the order of the codę execution. That is why a proper order of events is crucial in programming.



Wyszukiwarka

Podobne podstrony:
92 J. Ruchel, T. Adamczyk An example of basie computations can be computing an azimuth. The algo-rit
72 Aleksandra Leśniewska An example of post-interaction notes taken down by the instructor is presen
carving?ce 3THE EXPRESSIVE FACE Having seen an example of a passive expression, and how it is creat
50 (142) 50 • THE PATTERN COLLECTIONCrescent Collar This is an example of random or irregular tattin
Histology Finał Exaw PracticeTest 1 Which of tlie following is an example of Type I Collagen? A Bonę
06 pcx M1-14513IN) 3/3TEMPORARILY SETT1NG UP AND CONNECTING CP-1 PWB ASSEMBLY The following is an ex
IHF PROJECT IS AN EXAMPlf Of EXCEPIIONAl ENVIRONMENjAl SENSieiuiY ano nnovahon ev TRANSFORMATION OF
File0042 4 Study the Look out! box. Find an example of been and gone in the postcard. been and
11396 IMGP5592 % APC •    When the APC gene is mutated and abnormal protein is p
96 T.Z. Dworak, B. Hejmanowska, K. Pyka Hejmanowska B.: An example of multi/hyperspectral data proce
15ddg10 Record New Macro Macro Name: lescription: Cancel An example of a recorded macro that cr
An example of the kind ot PCB components overlay which can be produced using OrCAD/SDT, printed on a
32 Waldemar Piotr Gil Gil W.P., Swiss FinancialReported Standards as an Example of Informational Eff
84 (53) 84•THE PATTERN COLLECTIONCoasters These are an example of random or irregu-lar tatting, some

więcej podobnych podstron