SEARCHPATH Examples


The following examples assume an existing path of "c:\plb\data".

Example 1:

 

  

SEARCHPATH

ADD,PATHVAR

 

 

Variable

PL

FP

LP

Contents

Before:

PATHVAR

12

1

12

c:\live\data

 

The search path is modified to be "c:\plb\data;c\live\data". No Condition Flags are set (all FALSE).

 

Example 2:

 

  

SEARCHPATH

GET,PATHVAR

 

 

Variable

PL

FP

LP

Contents

Before:

PATHVAR

12

1

2

c:••••••••••

 

After:

PATHVAR

12

1

11

c:\plb\data

 

No Condition Flags are set (all FALSE).

 

Example 3:

 

  

SEARCHPATH

REMOVE,"C:\WORK\DATA"

 

The OVER condition flag is set because the the current path did not include the specified directory.

 

Example 4:

 

  

SEARCHPATH

SET,"c:\work"

 

No condition flags are set. The path is modified to be "c:\work".

Example 5:

 

SVAR

DIM

150

 

SEARCHPATH

ADD,"c:\temp\subdir|192.168.1.10:3934"

 

 

 

 

MOVE

|192.168.1.10:3934", SVAR

 

SEARCHPATH

CURRENT,SVAR

 

These examples show SEARCHPATH instructions executed at the Data Manager.

 



PL/B Language Reference