STORE Examples


Example 1:

 

  

STORE

SENDING INTO NDX OF ITEM1,ITEM2,ITEM3

 

 

Variable

PL

FP

LP

Contents

Before:

SENDING

10

4

6

ABCXXX····

 

NDX

4

 

 

···3

 

ITEM1

6

1

6

111111

 

ITEM2

6

1

6

222222

 

ITEM3

6

1

6

333333

 

After:

ITEM3

6

1

3

XXX333

 

All other variables remain unchanged.

 

No Condition Flags are set (all FALSE).

 

Example 2:

 

 

Variable

PL

FP

LP

Contents

Before:

SENDING

10

4

6

ABCXXX····

 

NDX

4

 

 

·5.1

 

ITEM1

6

1

6

111111

 

ITEM2

6

1

6

222222

 

ITEM3

6

1

6

333333

 

After:

All variables remain unchanged.

 

No Condition Flags are set (all FALSE). NDX's value (5) does not correspond to a list item.

 

Example 3:

 

 

Variable

PL

FP

LP

Contents

Before:

SENDING

5

 

 

··333

 

NDX

4

 

 

3.67

 

ITEM1

5

 

 

··111

 

ITEM2

5

 

 

··222

 

ITEM3

5

 

 

····0

 

After:

ITEM3

5

 

 

··333

 

All other variables remain unchanged.

 

No Condition Flags are set (all FALSE).

 

Example 4:

 

  

STORE

SENDING INTO NDX OF ITEM1,,ITEM3

 

 

Variable

PL

FP

LP

Contents

Before:

SENDING

10

4

6

ABCXXX····

 

NDX

4

 

 

·2.0

 

ITEM1

6

1

6

111111

 

ITEM3

6

1

6

333333

 

After:

All variables remain unchanged.

 

No Condition Flags are set (all FALSE). NDX's value (2) does not correspond to a list item.

 

 



PL/B Language Reference SQUEEZE Examples STOREADR Example