Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


Line

Script

SYNTAX

Line n

DESCRIPTION

The Line script finds line n in the target window. It then makes the target window the new active window.

INPUT

None

OUTPUT

None

STATUS

Line can return the following status codes:

0

no errors

1

syntax error

2

no target window; other error

3

system error

PARAMETERS

n

Specifies a line by integer or regular expression.

OPTIONS

None

EXAMPLES

The following command finds line 123 in the target window and makes the target window the new active window:

Line 123

File and Line commands are part of the error messages produced by many MPW tools. Executing such error messages allows you to jump quickly to the line containing the error. For example, executing the following error message makes Count.c the active window and selects line 75.

### Undefined symbol: length
  File "Count.c"; Line 75

C compiler error messages can do this because File is defined as an alias for the Target command in the MPW Startup file. Thus, the File command opens the specified file as the target window. The Line command then selects the offending line and makes the window the active window.

SEE ALSO

Find

 
 


Last Updated July 2000