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.

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

AUTOREDRAW The AutoRedraw property determines what happens to graphics <strong>and</strong> Printed<br />

material on a form or picture box after another object (for example, another picture box) or<br />

program temporarily obscures part of the form or picture box. If AutoRedraw is True, then<br />

<strong>Visual</strong> <strong>Basic</strong> will restore the graphics <strong>and</strong> Printed material from a copy that it has saved in memory.<br />

If AutoRedraw is False, then <strong>Visual</strong> <strong>Basic</strong> does not keep track of graphics <strong>and</strong> Printed<br />

material that have been obscured, but it does invoke the Paint event of the form or picture box<br />

when the obstruction is removed. Thus, only graphics <strong>and</strong> Printed material generated by the<br />

Paint event will be restored when AutoRedraw is False.<br />

AUTOSIZE If the AutoSize property of a label or picture box is True, <strong>Visual</strong> <strong>Basic</strong> automatically<br />

sets the width <strong>and</strong> height of the label so that the entire caption can be accommodated.<br />

If the AutoSize property is False, the size of the label is not adjusted by <strong>Visual</strong> <strong>Basic</strong>,<br />

<strong>and</strong> captions are clipped if they do not fit.<br />

BACKCOLOR The BackColor property determines the background color of an object. For<br />

a comm<strong>and</strong> button, the background color is only valid when the style property is set to “1-<br />

Graphical.” (Such a comm<strong>and</strong> button can display a picture.) If the BackColor of a form or<br />

picture box is changed while a program is running, all graphics <strong>and</strong> Printed text directly on<br />

the form or picture box are erased. [color]<br />

BACKSTYLE The BackStyle property of a label or shape is opaque (1) by default. The rectangular,<br />

square, circular, or oval region associated with the control is filled with the control’s<br />

background color <strong>and</strong> possibly caption. If the BackStyle is set to transparent (0),<br />

whatever is behind the control remains visible; the background color of the control essentially<br />

becomes “see through.”<br />

BEEP The statement Beep produces a sound of frequency 800 Hz that lasts a fraction of a<br />

second.<br />

BOF When the BOF property of a data control is True, the current record position in the file<br />

is before the first record.<br />

BOOLEAN A variable of type Boolean requires 2 bytes of memory <strong>and</strong> holds either the<br />

value True or False. If boolVar is a Boolean variable, then the statement Print boolVar displays<br />

True when the value is True <strong>and</strong> displays False when the value is False.<br />

BORDERCOLOR The BorderColor property determines the color of a line or shape control.<br />

[color]<br />

BORDERSTYLE The BorderStyle property determines the border style for a form [0-none,<br />

1-fixed single, 2-sizeable (default), 3-fixed double, 4-Fixed ToolWindow, 5-Sizable Tool-<br />

Window], line or shape [0-transparent, 1-solid, 2-dash, 3-dot, 4-dash-dot, 5-dash-dot-dot, 6inside<br />

solid], grid image, label, picture box, <strong>and</strong> text box [0-none, 1-fixed single (default)].<br />

You cannot change the borders of forms <strong>and</strong> text boxes during run time.<br />

BORDERWIDTH The BorderWidth property (with settings from 1 through 8192) determines<br />

the thickness of a line or shape control.<br />

BYTE A variable of type Byte uses a single byte of memory <strong>and</strong> holds a value from 0 to<br />

255.<br />

CALL A statement of the form Call ProcedureName(argList) is used to execute the named<br />

Sub procedure, passing to it the variables <strong>and</strong> values in the list of arguments. Arrays appearing<br />

in the list of arguments should be specified by the array name followed by empty parentheses.<br />

The value of a variable argument may be altered by the Sub procedure unless the<br />

variable is surrounded by parentheses. After the statements in the Sub procedure have been<br />

executed, program execution continues with the statement following Call. Note: The keyword<br />

Call may be omitted. In this case, the parentheses are omitted <strong>and</strong> the statement is written<br />

ProcedureName argList.

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

Saved successfully!

Ooh no, something went wrong!