Term of the Moment

digital gold


Look Up Another Term


Redirected from: parameter switch

Definition: parameter


(1) For the parameters used in AI, see AI weights and biases.

(2) A value passed to a program by the user or by another program in order to activate some option. A parameter may be anything; for example, a file name, coordinate, range of values, money amount or code. Parameters may be required as in parameter-driven software (see below) or they may be optional. Parameters are often entered as values following the program name when it is loaded. For example, in the DOS/Windows command dir /p, the /p parameter modifies the Dir command to pause after every screenful. See parameter driven.

(3) In programming, any value passed to a subroutine or function for processing, and hundreds of parameters are used in today's graphical applications. For example, in the following C function, which creates the text window for the Windows application of this encyclopdia, there are 11 parameters passed to the CreateWindow routine. Some of the parameters call yet other functions for necessary information. When required, programmers can create their own parameters. See default and parameter driven.

 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
 );




Generate a Text Window
The C function example above directs Windows to create the text window in the Windows version of this encyclopedia. If you are using the Windows application right now, this example renders this very same definition.