# PN5_60968

Read Time: 1 minute(s)

# Description

Add a 5th parameter to the LOCATE() function to specify the start position.

# Previous Release Behavior

The jBASE BASIC syntax supports both the LOCATE() function and the LOCATEstatement.

The LOCATEstatement allowed a starting position to be defined.

The LOCATE() function does not allow a starting position to be defined (unless PRIME emulation was being used)

# Current Release Behavior

You can now add the starting position in the LOCATE() function as you can for the LOCATE statement. While this enhancement came from providing compatibility with D3, the change itself is universal and applies to all emulations, not just D3.

The syntax of the LOCATE() funtion was previously:

LOCATE(expression1, expression2{,expression3{,expression4}}; Var{; expression6}) THEN|ELSE statements
1

The syntax of the LOCATE() function is now

LOCATE(expression1, expression2{,expression3{,expression4{,expression5}}}; Var{; expression6}) THEN|ELSE statements
1

Where expression5 indicates the field, value or subvalue from which the search will begin.

Back to 5.7.6 Release Notes