19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

428 <strong>Computer</strong> <strong>Programming</strong> <strong>Concepts</strong> <strong>and</strong> <strong>Visual</strong> <strong>Basic</strong><br />

CVAR The function CVar converts strings <strong>and</strong> byte, integer, long integer, single-precision~,<br />

double-precision, <strong>and</strong> currency numbers to variants. If x is any string or number, the value of<br />

CVar(x) is the variant determined by x. [variant]<br />

CVDATE The function CVDate converts a numeric or string expression to an equivalent serial<br />

date. If x is any expression representing a valid date, the value of CVDate(x) is the serial<br />

date determined by x. Valid numeric values are –657434 (January 1, 100 AD.) to 2958465<br />

(December 31, 9999). Valid string expressions either look like one of these valid numeric<br />

values (for example, “19497”corresponding to May 18, 1953) or look like a date (for example,<br />

“10 Feb 1955”, “August 13, 1958”, etc.) [date]<br />

DATABASENAME The value of the DatabaseName property of a data control is the filespec<br />

of the file containing the database.<br />

DATAFIELD After the DataSource property of a data-aware control has been set to bind the<br />

control to a data control, the DataField property is set to a field of the table accessed by the<br />

data control.<br />

DATASOURCE To bind a data-aware control to a data control at design time, set the value<br />

of the DataSource property of the data-aware control to the name of the data control.<br />

DATE The value of the function Date is the current date. If dateStr is a string representing<br />

a date, the statement Date = dateStr changes the date as specified by dateStr.<br />

DATE A variable of type Date requires 8 bytes of memory <strong>and</strong> holds numbers representing<br />

dates from January 1, 100 to December 31, 9999. Literal date values can be assigned to date<br />

variables with statements such as dateVar = #5/12/1999#, dateVar = #5 Jan, 1997#, <strong>and</strong> dateVar<br />

= #February 10, 2004#. However, values of dateVar are displayed in the form<br />

month/day/year (for example, 5/12/99).<br />

DATESERIAL The value of the function DateSerial(year, month, day) is the serial date corresponding<br />

to the given year, month, <strong>and</strong> day. Values from 0 to 9999 are acceptable for year,<br />

with 0 to 99 interpreted as 1900 to 1999. Values of 1 to 12 for month, <strong>and</strong> 1 to 31 for day are<br />

normal, but any integer value is acceptable. Often, numeric expressions are used for month<br />

or day that evaluate to numbers outside these ranges. For example, DateSerial(1993, 2, 10 +<br />

90) is the date 90 days after Feb. 10, 1993. [date]<br />

DATEVALUE The value of the function DateValue(str) is the serial date corresponding to<br />

the date given in str. DateValue recognizes the following date formats: “2-10-1955”,<br />

“2/10/1955”, “February 10, 1955”, “Feb 10, 1955”, “10-Feb-1955”, <strong>and</strong> “10 February 1955”.<br />

For the years 1900 through 1999, the initial “19”is optional. [date]<br />

DAY The function Day extracts the day of the month from a serial date. If d is any valid serial<br />

date, the value of Day(d) is an integer from 1 to 31 giving the day of the month recorded<br />

as part of the date <strong>and</strong> time stored in d. [date]<br />

DBLCLICK The DblClick event applies to combo boxes, file list boxes, forms, frames,<br />

grids, images, labels, list boxes, OLE controls, option buttons, picture boxes, <strong>and</strong> text boxes.<br />

A DblClick event occurs whenever the left mouse button is pressed <strong>and</strong> released twice, in<br />

quick succession, while the mouse cursor is over the control or over a blank area on the form.<br />

Double-clicking on an object will first cause that object’s Click event to occur, followed by<br />

its DblClick event. Note: When you double-click on an item in a drive list box, the item is<br />

automatically assigned to the Path property. When you double-click on an item in a file list<br />

box, the item is automatically assigned to the FileName property.<br />

DEFAULT When the Default property of a comm<strong>and</strong> button is set to True <strong>and</strong> the focus is<br />

on an object that is not another comm<strong>and</strong> button, pressing the enter key has the same effect<br />

as clicking on the button. At most, one comm<strong>and</strong> button on a form can have True as the value<br />

of its Default property.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!