Alan Freedman -- The Computer Language Company - Computer Desktop Encyclopedia
Computer Desktop Encyclopedia
Longest-Running Tech Reference on the Planet

A CDE Definition

You'll love The Computer Desktop Encyclopedia (CDE) for Tech Term of the Day (TTOD)

LOOK UP ANOTHER TERM


parameter switch

See parameter.



parameter

(1) Any value passed to a program by the user or by another program in order to configure the program for a particular purpose. A parameter may be anything; for example, a file name, a coordinate, a range of values, a money amount or a code of some kind. Parameters may be required as in parameter-driven software (see below) or they may be optional. Parameters are often entered as a series of values following the program name when the program is loaded; for example, a DOS switch defines a parameter. In the command dir /p the /p is a parameter switch that means pause after every screenful.

(2) In programming, a value passed to a subroutine or function for processing. Programming today's graphical applications in languages such as C, C++ and Java requires knowledge of hundreds of parameters.

In the following C function, which creates the text window for the Windows version of this database, there are 11 parameters passed to the CreateWindow routine. Some of them call yet other functions for necessary information. In order to call this routine in a program, the programmer must determine the values for every parameter.


 hWndText = CreateWindow
 (
 "TextWClass",
 NULL,
 WS_CHILD|WS_BORDER|WS_VSCROLL|WS_TABSTOP,
 xChar*23+GetSystemMetrics(SM_CXVSCROLL)+8,
 yChar*4,
 Rect.right-Rect.left+1-xChar*23
    -2*GetSystemMetrics(SM_CXVSCROLL)+5,
 yChar*(Lines+1)+2,
 hWnd,
 IDC_TEXTLIST,
 (HANDLE)hInstance,
 NULL
 );





Personal Use Only

Before/After Your Search Term
BeforeAfter
parallel vs. serialparameter tampering
parallelismparametric
parallelizingparametric data
Parallelsparametric modeling
Parallels Desktopparametric speaker
Parallels Desktop for Macparametric symbol
Parallels Workstationparasite
parameterparasite software
parameter-drivenparasiteware
parameter RAMparavirtualization

Terms By Topic
Click any of the following categories for a list of fundamental terms.
Computer Words You Gotta KnowSystem design
Job categoriesUnix/Linux
Interesting stuffPersonal computers
InternetIndustrial Automation/Process Control
Communications & networkingAssociations/Standards organizations
HistoryDesktop publishing
Audio/VideoGraphics
MainframesSecurity
ProgrammingHealthcare IT
System design