Using Visual Basic 6

Previous chapterContents


Glossary

Active Server Page (ASP) A Web-based application containing a combination of HTML, ActiveX components, and VBScript code. Active Server Pages can be used to dynamically provide different content for different users when viewed through each user's Web browser.

ActiveX A set of technologies based on Microsoft's Component Object Model (COM) for creating reusable binary objects.

ActiveX component (Formerly OLE automation server) A physical file that contains classes from which objects can be defined. ActiveX components generally have file extensions .exe, .dll, or .ocx.

ActiveX control An object that can be placed on a form so that users can interact with applications. ActiveX controls have events, properties, and methods and can be incorporated into other controls. ActiveX controls have an .ocx file extension.

ActiveX Data Objects (ADO) An object model--including data connection, data manipulation, and recordset objects--used for data access. ADO is an OLE DB consumer.

ActiveX DLL An ActiveX in-process component, an object that requires another application's process space. See also ActiveX EXE.

ActiveX document A Visual Basic application that can be viewed within a container application such as Microsoft Internet Explorer (version 3.0 or later) or Microsoft Office Binder. ActiveX documents don't require HTML code in order to be viewed or manipulated.

ActiveX EXE An ActiveX out-of-process component, an object that runs in its own address space. See also ActiveX DLL.

add-in A software component that extends Visual Basic's capability. Some add-ins, such as the Visual Basic Class Builder Utility add-in, are included with Visual Basic; many more are available from third-party sources. Within the IDE, you use the Add-In Manager to install and remove add-ins.

ambient property A property that a child object can assume during runtime. Ambient properties are controlled by a container object and are used so that objects within the container can take characteristics of the container.

ANSI The acronym for American National Standards Institute. ANSI provides a unique integer code for a character set that includes 256 characters. ANSI includes the 128-character ASCII character set and contains international letters, symbols, and fractions.

API The acronym for Application Programming Interface. An API is a set of functions that are exposed by a software module and provide access to the services the module provides. In Windows, the API is a set of core functions that allow direct access to many operating system-provided services, such as window management and printer services. The Windows API consists of three main files: user32.dll, gdi32.dll, and kernel32.dll.

application One or more software components that do some action or provide some service, a compiled Visual Basic project. Other examples of applications include Microsoft Visual Basic and Microsoft Word. Also known as a program.

argument Data sent to a procedure. An argument can be a constant, a variable, or some other expression.

array An indexed group of related data. Elements within an array must be of the same data type (such as all integers or all strings), and each element has a unique, sequential index number.

ASCII The acronym for American Standard Code of Information Interchange. ASCII provides a unique integer code for a character set that includes 128 numbers, letters, and symbols found on a standard U.S. keyboard. A subset of the ANSI character set. In Visual Basic, the ASC function returns the ASCII value of a character.

authentication The process by which the identity of an ActiveX control is proven to a Web browser. During authentication, the Web browser determines that the control meets a predetermined set of criteria, in essence, verifying that the control hasn't been tampered with and that it will behave in the way the control's developer originally intended.

automation server See ActiveX component.

bind To connect an object to a data source. See bound control.

bit The smallest amount of data storage available on a computer. A bit is either 0 or 1.

bookmark A marker for a specific location. A bookmark can be a specific record in a database, a line of code within a project, or a specific Web page.

Boolean A binary data type. Boolean values are 16-bit (2-byte) values that can hold the True or False constants or their equivalents (-1 and 0). The Boolean data type uses the prefix bln but doesn't have a type-declaration character.

bound control A data-aware control attached to a database through a Data control. At runtime, when users manipulate the Data control by changing from one row of the database to the next, the bound control changes to display the data found in the columns of the new row. If users change the data stored in a row, the new data is saved to the database when the users switch to a new row.

breakpoint A specific line within a block of code where program execution automatically stops (during runtime). Breakpoints are user selectable. You can toggled them on and off during design time by pressing F9.

browser An application used to browse content on the Web. Browsers, such as Microsoft Internet Explorer, can show HTML pages, Active Server Pages, and various other types of content.

buffer string A temporary holding location in memory for data that will be parsed or otherwise modified. For example, if an application were to take two string values from a user and then extract a specific section from their sum, each value would be placed in a buffer string. Then these would be concatenated (and placed into another buffer string) before the desired value is parsed from the input data.

Byte An 8-bit data type that can hold numbers in the range of 0-255. The Byte data type uses the prefix byt but doesn't have a type-declaration character. Bytes are the basis for all Visual Basic data types; for example, the Single data type is a 4-byte (32-bit) number.

CAB file Short for cabinet file. A group of files compressed into one larger file to conserve disk space. CAB files are often used to distribute applications. During installation, the Setup program extracts files from the CAB file and copies them to the appropriate location on the hard disk.

call To transfer control of an application to a different procedure. Procedures are sometimes called with the Call keyword.

child object An object contained within another object (its parent). See object.

class A template used to create user-defined objects. A class defines an object's properties and methods. All instances created from the class use the properties and methods defined by the class.

class module A module that defines a class. See module.

code block A selection of code. A code block usually consists of all lines necessary to complete a specific task within the application.

COM The acronym for Component Object Model. A standard by which applications can expose objects to the system for use by other applications and, conversely, by which applications can use objects that have been exposed by other applications.

compile To prepare code for execution. In Visual Basic, code can be compiled into either P-code (which results in faster compilation) or native code (which results in faster execution). The type of compilation can be selected from the Compile page of the Project Properties dialog box.

component object An object that supports automation through exposed properties and methods. Examples of component objects include ActiveX controls, ActiveX documents, and ActiveX code components.

compressed file A file that has been modified to take up less space when stored on the hard drive. Generally, compressed files can't be opened or manipulated until they're decompressed.

concatenate To join two or more strings in an expression.

conditional statement A logical statement involving a comparison, which yields a Boolean (True or False) value.

constant A variable or object whose value doesn't change.

constituent control A control that's encapsulated inside another ActiveX control to provide some of the constituent control's functionality when using the ActiveX control.

context-sensitive help Information about a specific concept or object within in an application that users can easily find. To access context-sensitive help, press Shift+F1 or click the What's This? help (question mark) button; then select the confusing item.

control An object that can be manipulated at design time or runtime to present or change data. Controls are manipulated by changing properties during design time and by calling methods or responding to events during runtime.

control array An indexed group of similar controls that are of the same type and have the same name. Individual elements within the control array are identified by a unique index number.

coolbar A type of toolbar characterized by flat buttons that raise when the mouse pointer moves over them and, when clicked, they depress. This is the type of toolbar found in the Visual Basic IDE. The Coolbar object is used to create user-modifiable coolbars.

Currency A numeric data type particularly suited to store money data. Currency values are 64-bit (8-byte) integers, scaled by 10,000 to provide four digits to the right of the decimal point. Currency values use the prefix cur and the type-declaration character @ (the at sign).

data consumer An object that's bound to a data provider. A data consumer lets programmers connect to a data source and manipulate information within it.

data member Private variable of a class. Data members are seen only by the class that defines them.

data provider A data source that exposes information for data access, such as Microsoft Jet, Microsoft SQL, or Oracle.

data type A set of rules describing a specific set of information, including the allowed range and operations and how information is stored. Data types in Visual Basic include Integer, String, Boolean, and Variant.

Date A numeric data type used to represent dates. Date values are 64-bit (8-byte) floating-point numbers that represent dates from January 1, 100, to December 31, 9999, and times from 0:00:00 to 23:59:59. The Date data type uses the prefix dat but doesn't have a type- declaration character.

DCOM The acronym for Distributed Component Object Model. An extension of COM by which applications can expose objects to computers across a network, and, conversely, by which computers can use objects that have been exposed from across a network.

Decimal A numeric data type, ranging from 0 to 28, used to specify the number of digits to the right of the decimal point. Decimal values are 96-bit (12-byte) unsigned integers, so with a scale of 28, the largest possible Decimal value is +/-7.9228162514264337593543950335; with a scale of 0, +/-79,228,162,514,264, 337,593,543,950,335. The Decimal data type must be used with a Variant, uses the prefix dec, and doesn't have a type-declaration character.

deployment The period during which an application is distributed for use by customers or by other applications.

design time The time spent creating forms and writing functions during the creation of an application. Forms and functions can be altered only during design time. See runtime.

designer An object or application that's used as a basis for creating more advanced objects or applications.

destination system The system on which an application will be installed and used.

device independence The concept that software components don't directly control hardware devices. Device- independent software controls hardware by manipulating objects that abstract and expose the functionality of a class of hardware devices.

DLL The acronym for dynamic link library. An executable file containing a set of functions that other applications can call during runtime. DLLs generally don't have a graphical user interface; instead, they're usually accessed by applications without user intervention.

Document Object Model (DOM) A method for storing information so that a document can display its content in a variety of in-place views.

domain name A unique name that identifies an Internet or network server, such as www.mcp.com or www.microsoft.com. Domain names are actually text representations of numeric IP addresses and must be registered with international authorities such as InterNIC.

Double A numerical data type. Double values are 64-bit (8-byte) floating-point number. Double values use the prefix dbl and the type-declaration character # (the pound sign).

dynamic A changing object or expression.

Dynamic HTML (DHTML) A series of extensions to the HTML language that enable an HTML page to be dynamically modified. A group of HTML pages that work together can be used to create a Web-based application. DHTML applications contain objects and events and are processed on the client within the Web browser.

dynaset A recordset that can include data from one or more tables from a database. A dynaset can be used to view or modify data contained in the underlying database.

early binding A technique that an application uses to access an object. In early binding, objects are defined from a specific class. Early binding is often faster than late binding because the application doesn't have to interrogate the object at runtime to determine the object's properties and methods. In Visual Basic, early binding enables the AutoComplete features to work correctly.

Easter egg A hidden signature within an application, included by programmers to demonstrate that they wrote it. Activating Easter eggs often requires a complex set of user actions.

element A single member of an array. Each element of an array is assigned a unique index value, which is used to locate and manipulate specific elements in an array.

encapsulation The act of placing code or data in a location, such as a module or control, that's isolated from the rest of an application. Encapsulation hides both the implementation details and the internal complexity of an object but still enables the application to use functions contained within it.

enterprise computing A computing model in which multiple users access applications and data stored on a server. In an enterprise computing environment, multiple servers and multiple networks can be linked together. This is an advanced form of general networking in which users can share information directly, without the use of a dedicated server.

entry point The starting point in the code of an application. In Visual Basic 6, entry points include a Sub Main procedure or a Form_Load event.

event A signal fired by the operating system in response to a user action. For example, when a user clicks (and holds down) a mouse button, a MouseDown event is sent by the operating system. The active application intercepts this signal and executes the code attached to the MouseDown event.

event-driven programming A method of programming in which blocks of code are run as users do things or as events occur while a program is running. This varies from procedural programming, in which code blocks are contained within a module and called from other procedures.

event procedure The place in a project where code is written to respond to an event. Event procedures are named by joining the object name with the event name, such as cmdButton_Click().

extensibility The capability to extend an object's or application's functionality through the use of a programming language or an add-in.

field A discrete element of a record in a database, a column in a database--for example, a database of music CDs might have many fields, including the CD title, artist name, and CD label.

file A unit of storage on an external storage device such as a hard disk retrievable block of data. Usually stored on a hard drive, files can contain executable programs, word processor documents, or bitmap picture files. In Visual Basic, each form, module, and project are saved as a file.

file handle A structure that identifies and provides access to a file on disk.

File Transfer Protocol (FTP) A method used to transfer files between computers, across a network, or over the Internet by using the TCP/IP network protocol.

flag A Boolean (True or False) variable used to determine whether a condition has been met or an event has occurred. For example, the flag blnPasswordSet would be set to True when a password is set and to False when the password is cleared.

flat-file database A database file in which every record contains all the information required to describe it. Flat-file databases often contain redundant information. For example, every record in a flat-file database of music CDs would require multiple fields to describe the contact information for the artist's fan club. See also relational database.

focus The state in which an object can receive input from the mouse or keyboard. At any given time, only one object can have focus; this object is usually highlighted with a different color and contains the text cursor, where appropriate.

form The basis of an application's graphical user interface. Forms contain objects with which users manipulate data and otherwise control an application.

Form Designer A part of the Visual Basic 6 Integrated Development Environment. You use the Form Designer to create an application's graphical user interface by placing objects on forms during design time. At runtime, objects appear where they have been placed on the forms.

Form Layout window A part of the Visual Basic 6 Integrated Development Environment (MDI version only). The Form Layout window is used to position an application's forms during design time, visually rather than through code. At runtime, forms appear where they have been placed in the Form Layout window.

function A procedure, beginning with Function functionname() and ending with End Function, that returns a value to the calling procedure when it's complete.

Get A Visual Basic keyword, the part of a Property procedure that gets the value of a property.

global variable A variable that can be accessed from anywhere within a program and maintains its value while the program is being run. Global variables are defined within code modules with the Public keyword.

gotcha A detail that can cause problems when overlooked.

graphical user interface (GUI) A set of forms and objects that enable users to view and manipulate data and otherwise control an application. A graphical user interface is the part of the application that sits between users and an application's underlying procedures.

hard-coding The act of setting a value by directly coding it into the application without allowing for a way to easily change it. For example, the hard-coded statement Set picPictureBox.Picture= LoadPicture("C:\windows\bubbles.bmp") won't work if the file bubbles.bmp is moved from the Windows folder, and it doesn't allow users to change the image loaded into the PictureBox. To avoid this situation, it would be better to define a string variable that contains the image's path and filename and then provide tools (such as an Open common dialog box) to help users search for it.

header A commented section of code at the beginning of a procedure, usually placed before the Sub or Function statement. The header describes the purpose of the procedure, specifies all variables declared within it, and can contain information identifying the developer(s) who wrote it.

help compiler An application used to combine information into a help file.

help context ID A number that defines a position within a help file. The Windows help system uses context IDs to move to new locations within help files as users navigate through the help system.

high-level language A computer language, such as Visual Basic, that can simplify coding by enabling programmers to write code with highly developed functions and keywords. See also low-level language.

hovering The act of holding the mouse pointer over an object. For example, a ToolTip can appear when the pointer hovers over a command button.

HTML The acronym for Hypertext Markup Language. HTML files are plain text files that include data and instructions for presenting it. When viewed with an Internet browser, an HTML file can contain text, multiple colors, and graphics. Using HTML files, which you can link via hyperlinks, is the primary way to display information on the Web.

HTML element A portion of an HTML page, such as a graphic, a CommandButton, or a table, that may or may not be created dynamically using Visual Basic.

HTTP The acronym for Hypertext Transfer Protocol. An Internet protocol used by Web browsers to exchange information and to receive and present data to the browser's user.

hyperlinks References between documents that, when selected by users, call and display other documents.

IDE The acronym for Integrated Development Environment. The IDE includes all the tools necessary to create applications with Visual Basic 6, such as the Form Layout window and the Object Browser.

index A unique number that identifies a single element in an array or a control array.

index (database) A cross-reference of fields across the tables of a database that enables faster retrieval to specific records in the database.

inheritance The act of passing property values from a class to objects created by the class.

initialization The act of setting the value of a variable or expression to a specific starting value.

input box A dialog, created with the InputBox() statement, that waits for users to enter text or click a button. When users close an input box, a string containing the contents of the text box is returned to the calling procedure.

instance A single object created from a class. Also, a variable is an instance of a data type.

Integer A numerical data type. Integer values are 16-bit (2-byte) numbers within the range of -32,768 to 32,767. Integer values use the prefix int and the type-declaration character % (the percent sign).

Integrated Development Environment (IDE) See IDE.

Internet Information Server (IIS) Microsoft's network file and application server. IIS is primarily used to support transmission of HTML pages using the HTTP protocol.

Internet service provider (ISP) A company that provides access to the Internet via a dial-up or direct connection.

interpreted language A language, such as Visual Basic, which doesn't enable compilation to native code. When an application created with an interpreted language is run, the application's code is passed through an interpreter, which modifies the code into a form the computer can understand and execute.

intrinsic ActiveX control An ActiveX control included with Visual Basic, such as the CommonDialog or Winsock control.

intrinsic control Also known as standard controls. A control included with Visual Basic, such as the Label or CommandButton controls. Intrinsic controls can't be removed from the ToolBox.

intrinsic function A predetermined function included with Visual Basic. Examples of intrinsic functions include the type conversion functions, such as CStr(), which usually converts a numeric expression to a string value.

JScript The Microsoft implementation of the JavaScript scripting language.

key field The field in a database table that uniquely describes each record. For example, the key field in a database table of employees might be the employee number. Also known as the primary key.

keycode A constant value that represents a keystroke. Keycodes are sent to the application when a key on the keyboard is pressed; they are used to determine which key the user pressed.

keyword A word (function, constant, or command) recognized by Visual Basic. You can't use keywords to name user-defined structures such as variables or constants (see name collision).

language independent Any file, object, or other structure that can be used by any programming language. For example, the Windows API can be used by Visual Basic, C, or Visual C++.

late binding A method of using an object by an application. In late binding, objects are defined as Object. Late binding is slower than early binding because the application must interrogate the object to determine its properties and methods.

Let A Visual Basic keyword. The part of a Property procedure that assigns a value to a property. Also used to assign a value to a variable, such as Let x = 10.

literal statement Any expression consisting of ASCII characters, enclosed in quotation marks, and used literally in a procedure. For example, if the code MsgBox("This is a button") were contained within the Click event of a command button, a dialog box containing the text This is a button would appear onscreen when the user clicks the button. Also known as a literal or string literal. Literals are also numbers used directly within code.

local variable A variable defined and used only within a specific procedure in an application. Other procedures can't see local variables.

Long A numerical data type. Long (long integer) values are 32-bit (4-byte) numbers within the range of -2,147,483,648 to 2,147,483,647. Long values use the prefix lng and the type-declaration character & (the ampersand).

loose typing Defining and using variables without declaring or following a specific data type, such as when Variant values are used. This can lead to type-mismatch errors at compile time because expressions or values can encounter data types that they don't support. See also strict typing.

low-level language A computer language, such as machine language, that requires a programmer to write code with less developed instructions so that the computer can directly understand.

make To compile code into a standard application (EXE), dynamic link library (DLL), or ActiveX control (OCX).

member functions See method.

menu A list of user-selectable items within a program. Also, a control used to add menus to an application.

menu bar The part of the Visual Basic IDE, located directly below the title bar, that lets you select functions and commands included with the application. By using the Menu Editor, you can add menu bars to applications created with Visual Basic.

message box A dialog, created with the MsgBox() function, that displays a message for users. Message boxes include one or more command buttons that enable users to clear the dialog or respond with an answer to a query. A message box returns an Integer value describing which button was selected.

method A procedure, associated with a class, that manipulates an object. For example, one method of a command button is SetFocus, which moves the focus to the command button that invoked the method.

module A block of code saved as a file with the extension .bas. Modules contain declarations and may or may not contain procedures.

name collision An error that occurs when different structures are named identically. For example, if a variable were named string, a name collision would occur because the word String is a Visual Basic keyword. Name collisions also occur when identically named variables are defined within the same scope.

naming convention A specific style used to reference objects in code. See variable prefix and variable suffix.

native code Binary code that can be directly understood and executed by the computer's processor system. Visual Basic can be set to compile to native code by setting options on the Compile page of the Project Properties dialog.

nesting The act of including Loop or Select Case statements within similar statements. For example, a Do...Loop can be placed within one case of the Select Case statement. Then the repetitive action controlled by the Do...Loop executes only if the proper value is passed to the Select Case statement.

object A discrete combination of code and data, such as a ListBox or CommandButton, that can be manipulated. Objects contain properties and methods and are defined by a class.

Object Browser A part of the Visual Basic IDE, the Object Browser enables you to see all the objects (and all the properties, methods, and events of each object) available for use on the system. To access the Object Browser, press F2, choose Object Browser from the View menu, or click the Object Browser icon on the toolbar.

object-oriented programming (OOP) A programming style and a type of programming language that involves the use of software modules called objects to encapsulate data and processing.

OLE automation server See ActiveX component.

OLE DB A Microsoft technology that allows access to data from various, multiple data sources.

Option Explicit A Visual Basic keyword, the use of which forces each variable or expression in an application to be defined with a specific data type through the use of the Dim, Private, Public, ReDim, or Static keywords. Using Option Explicit can help reduce the likelihood of typographical errors when typing the names of existing variables. If Option Explicit isn't used, undefined variables are automatically defined as Variants.

P-code Code that can't be directly understood and executed by the Windows operating system. In Visual Basic, code compiled to P-code is interpreted to native code at runtime. When you are creating an executable file, you can force Visual Basic to compile to P-code by setting the appropriate options in the Compile tab of the Project Properties dialog box.

parameter A numeric or string value that can be changed to modify an expression.

parse To use string manipulation functions to change user-inputted string information. For example, the string "Microsoft+Visual&Basic&6.0" might be parsed into company ("Microsoft") and application ("Visual Basic 6.0") strings.

pattern wildcards Characters such as the asterisk (*) or question mark (?) that cause a query to broaden its result or that enable an expression to restrict inputted data. For example, a database query on all records containing *ain would return all records that end in ain, such as Spain, train, and so on. SQL databases typically use the percent sign (%) instead of an asterisk.

persistence The concept of keeping an object's data stored in memory or on disk.

pixel The smallest and most commonly used screen-dependent measure of screen distance. Objects on a form, however, generally aren't sized and located via pixels because the number of pixels on a screen varies for different resolutions and for different types of display systems. See twip.

prefix See variable prefix.

primary key The field in a database table that uniquely describes each record. For example, the primary key in a database table of employees might be the employee number. Also known as the key field.

private A Visual Basic keyword. Variables or procedures defined with the Private keyword are available only in the module in which the variable or procedure is defined.

procedural language A programming language, such as Visual Basic, in which data is manipulated by calling procedures rather than proceeding line by line through all code contained in the application.

procedure A block of code that can be called from within an application. A procedure might be used to position objects on a form or to calculate information from a set of user data. Various types of procedures include Functions and Subs.

program See application.

project A set of forms and modules that make up an application while it's being developed into an application.

Properties window A part of the Visual Basic IDE. This window enables you to view and modify all the properties of a given object during design time. It's not available during runtime.

property An attribute of an object as defined by a class. For example, one property of a command button is Caption, which is the text that appears on the button's face.

property bag An object that holds a set of property values and can restore those values to a new invocation of an object.

property procedures Procedures used to view and modify the properties of an object, such as the Let and Get statements. The Get statement returns the value of a private variable of an object, whereas the Let statement modifies the value if the new value is of the correct type.

protocol A formal set of rules that enable two computers to communicate (such as the HTTP or FTP protocols) or a set of rules used to define an action such as argument passing or creation of an object from a class. See File Transfer Protocol (FTP) and Hypertext Transfer Protocol (HTTP).

prototype An application that simulates the behavior of another, more fully developed application. Visual Basic is often used as a prototyping tool, for example, to quickly develop a possible graphical user interface (GUI) for an application before the application is developed.

Public A Visual Basic keyword. Variables defined with the Public keyword can be seen by any procedure of any module contained in the application. If a public variable is defined within a class module, the object name must be specified to use the variable.

query A subset of a database that fits specific criteria. For example, a query might be placed on a music CD database for all jazz CDs. The query would return a recordset that contains only jazz CDs and no classical or rock CDs.

record All the data required to describe one retrievable item in a database and made up of one or more fields. A row in a database. For example, one record in a music CD database would contain all the data necessary to describe the CD, including artist, label, number of songs, and so on.

recordset A set of records from a single database table that meets specific criteria.

recursion The process of a procedure calling itself.

relational database A database file in which records can include pointers to other tables that contain some of the information required to describe the record. Relational databases can be a more efficient means of storing information. For example, a relational database of music CDs would require only one field to describe the contact information for the artist's fan club. This field would hold a pointer to another table containing the fan club information for every artist in the database. Contrast with flat-file database.

robust A term used to describe an application that can trap and react to errors occurring during execution. For example, a robust calculator application won't crash when users try to divide a number by zero. Instead, users see a dialog explaining that numbers can't be divided by zero.

round To change a value to a less precise value. When rounding a value, if the next most precise digit ends with 5 or higher, round up; otherwise, round down. For example, if rounding to the nearest tenth, the value 1.652 would be rounded to 1.7 because the next most precise (one hundredth) digit is 5. If rounding to the nearest one hundredth, 1.652 would be rounded to 1.65. See truncate.

runtime The time when the code is actually running during the creation of an application. Forms and functions can't be altered during runtime. See design time.

scope An attribute of a variable or procedure that determines which sections of which modules recognize it. There are three levels of scope: public, module, and procedure. Variables declared with the Public keyword can be accessed by any module, whereas variables declared within a specific module (with the Private keyword) can be used only within that module. Variables declared within a procedure can be used only in that procedure.

scroll buttons The buttons at the top and bottom of a scrollbar that enable users to move through the data within the object.

scrollbar A window element that enables users to view more available data when all available data can't be displayed within an object at one time.

server side In a Web-based application, the part of the application run by the server instead of the client's Web browser.

server-side components In a Web-based application, the portions of the application located on and run by the server.

Set A Visual Basic keyword. The part of a Property procedure that sets a reference to an object.

Single A numerical data type. Single values are 32-bit (4-byte) floating-point numbers, within the range of -3.402823E38 to -1.4012989E-45 for negative values and 1.401298E45 to 3.402823E38 for positive values. Single variables use the prefix sng and the type-declaration character ! (the exclamation point).

SQL The acronym for Structured Query Language. A set of rules that can control many types of relational databases, including Microsoft Access and SQL Server databases.

standard control See intrinsic control.

standard EXE A traditional executable application. A standard EXE is a self-contained application that doesn't expose objects to the system for use by other objects or applications.

statement A section of code that fully expresses a single declaration or action.

static variable A variable, defined with the Static keyword, that maintains its value between calls to different procedures.

step The act of moving through a section of code line by line. Stepping, used with a breakpoint, is useful in determining which line is causing a problem in code.

strict typing Always declaring and following a specific data type when defining and using variables. This can reduce the number of errors at compile time because expressions or values will encounter only data types that they support. Contrast with loose typing.

String An alphanumeric data type. String values are either variable length (up to 2 billion characters) or fixed length (approximately 64,000 characters); longer strings require more memory. Strings can include numbers, letters, and ASCII symbols. String values use the prefix str and the type-declaration character $ (the dollar sign).

Sub A procedure, beginning with Sub subname() and ending with End Sub, that doesn't return a value to the calling procedure when it's complete.

subclassing The act of modifying the standard behavior of an object provided by Windows. Visual Basic doesn't directly support subclassing.

subscript The index value of an element in an array.

syntax The specific method by which functions or lines of code are written. Important elements of syntax might include spelling, spacing, and punctuation.

system modal A window or dialog that holds control of the entire system until the user responds to it.

table The basic mechanism of data storage in a database, made up of tables and rows. In a relational database, multiple tables might be used to store different categories of related information. For example, in a music CD database, one table might contain only artist information, whereas others might contain label information or fan club information.

toolbar A collection of buttons, contained in a strip or in a dedicated window, that enable users to control an application.

ToolBox A part of the Visual Basic 6 Integrated Development Environment (IDE). The ToolBox contains the objects and controls available for use in an application; objects are dragged from the ToolBox and added to forms during design time.

traverse To move through records in a database, elements in an array, or data contained within an object.

truncate To shorten or reduce a string value. For example, the value This is My String might be truncated to My String. Contrast with round.

twip A screen-independent measure of screen distance equal approximately to 1/1440 of an inch. Objects on a form should be sized and located by using twips instead of pixels so that they appear similarly on various types of display systems.

type The attribute of a variable that determines what kind of data it can contain. Various types of data include Integer, Long, Variant, and String.

typecasting Explicitly converting a variable or expression from one data type to another.

type-declaration character A character added to a variable's name that determines a variable's data type. A type- declaration character can be used as a shorthand way of automatically setting a data type when defining a variable and can be useful when defining a local variable. For example, the type-declaration character of the Integer data type is the percent sign (%), so an Integer variable x could be automatically defined with the statement Dim x%.

type safety The concept of keeping the data type of a variable or expression correct and consistent. In Visual Basic, type safety can be forced through the use of the Option Explicit keyword.

user control A subobject of a control. User controls are properties or methods that can be added to an object.

user-defined data types A data type not intrinsic to Visual Basic and defined by using the Type keyword, a list of declared elements, and the End Type keyword. User-defined data types can contain one or more elements of any data type.

validation The act of ensuring that data is of an appropriate format before it's written to a database.

variable A named storage location that contains data and can be modified during runtime. Variables are generally defined to be a specific data type at design time.

variable prefix A combination of characters added to the beginning of a variable name, used to help describe the variable throughout your code. For example, a global variable used to accept user input might be called gInput; the prefix g indicates that the variable is global. See also naming convention.

variable suffix A combination of characters added to the end of a variable name, used to define and describe the data type the variable holds. For example, a global variable used to accept user input might be called gInput$; the suffix $ indicates that the variable contains a string value. See also naming convention and type-declaration character.

Variant A data type that can be either numeric or alphanumeric. A Variant is automatically created when a variable is not defined to be a specific data type. Variants don't have a type-declaration character.

VBA The acronym for Visual Basic for Applications. Similar to but a subset of the Visual Basic language. VBA is the programming language included with programs such as Access and Excel. In these programs, VBA can be used to create macros.

VBScript A scripting language, similar to but a subset of the Visual Basic language, especially suited to be embedded into HTML files because it must be interpreted by a Web browser. VBScript enables objects to be added to Web pages to accomplish such tasks as password authentication or surveys for data collection.

Visual Basic runtime DLL One of a set of files required to run an application developed in Visual Basic. Automatically installed with Visual Basic, the runtime DLLs must be copied to any machine on which an application is deployed.

watch A variable whose value is tracked during runtime. When a watch is set, it appears in the Watch window (part of the IDE). Watches are updated whenever a breakpoint is reached; thus, changes to values can be seen by placing breakpoints at specific events.

whitespace When coding, the space within the code editor that doesn't contain text, such as blank lines or tab spaces. Whitespace makes it easier to follow the flow of code--especially more complex structures such as nested loops--within a procedure.

Wintel An abbreviation for Windows/Intel, the platform used by most computer users. Wintel refers to a computer running a version of Microsoft Windows running on an Intel processor.

wizard An application, or part of an application, that helps users complete a difficult task. For example, Visual Basic's Data Form Wizard consists of multiple steps, each asking for specific information required to create and bind a form to a database.


Previous chapterContents

© Copyright, Macmillan Computer Publishing. All rights reserved.